Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1301953
Summary: | mock builds fail with nspawn, buildroot missing /bin/su | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Matthew Gyurgyik <matthew> | ||||
Component: | mock | Assignee: | Miroslav Suchý <msuchy> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | epel7 | CC: | jdisnard, lslebodn, mebrown, msimacek, msuchy, netwiz, praiskup, ville.skytta, williams | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | mock-1.2.17-1.fc22 mock-1.2.17-1.fc24 mock-1.2.17-1.el6 mock-1.2.17-1.el7 mock-1.2.17-1.fc23 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-03-31 01:53:55 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1468802 | ||||||
Attachments: |
|
Description
Matthew Gyurgyik
2016-01-26 12:41:16 UTC
Fixed in commit: * 00ab711 (HEAD -> devel, origin/devel) do not call /bin/su and rather utilize --user of systemd-nspawn [RHBZ#1301953] Created attachment 1131026 [details]
Verbose log of a build attempt
This change broke my local mock setup. I'm running mock upstream git master in place with this wrapper script in the mock dir:
#!/bin/sh
exec sudo $(dirname $0)/py/mock.py --configdir=/etc/mock "$@"
Verbose build log from a build attempt is attached. The srpm rebuild with "rpmbuild -bs" is the last thing done, according to the log it exits successfully with return code 0, but produces no other output and no srpm, and that's it.
(Forgot to note that I'm running mock on F-23) I think this changes breaks mocks for RHEL6 containers. $ sudo /bin/systemd-nspawn -q -M rhel-6-x86_64 id jenkins uid=10813(jenkins) gid=21373(jenkins) groups=21373(jenkins) $ sudo /bin/systemd-nspawn --user=jenkins -M rhel-6-x86_64 id jenkins Spawning container rhel-6-x86_64 on /var/lib/machines/rhel-6-x86_64. Press ^] three times within 1s to kill container. Container rhel-6-x86_64 failed with error code 1. I think the above behavior is seen because getent initgroups is not supported by RHEL6. On a mailing list thread back in 2014 Lennart stated: "There's nspawn's --user= switch which relies on glibc's "getent" binary to be available in the container, which it will use to resolve the username in the container's context and then change to it." "The getent binary has been part of glibc for a long time, but note that we make use of "getent initgroups" which is a more recent addition..." http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/23419 > I think this changes breaks mocks for RHEL6 containers. Then I would say - lets not support it on RHEL6. :( Mock with nspawn backend still has too many reported and unfixed bugs that it cannot be called stable. I would love to make it stable on recent Fedoras and then go back and eventually make it work on older systems. > The srpm rebuild with "rpmbuild -bs" is the last thing done, according to the log it exits successfully with return code 0, but produces no other output and no srpm, and that's it. Fixed in commit: * 8200ce4 define command that it works with old-chroot too [RHBZ#1301953] mock-1.2.16-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-66229b4649 mock-1.2.16-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-3405d4e45b mock-1.2.16-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a9958aa8eb mock-1.2.16-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-bbb4bfc16f mock-1.2.16-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-25ff2f1000 mock-1.2.16-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-66229b4649 mock-1.2.16-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a9958aa8eb mock-1.2.16-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-25ff2f1000 mock-1.2.16-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-3405d4e45b mock-1.2.16-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-bbb4bfc16f mock-1.2.17-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-bbb4bfc16f mock-1.2.17-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-66229b4649 mock-1.2.17-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-bbb4bfc16f mock-1.2.17-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-66229b4649 mock-1.2.17-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-23c93722c3 mock-1.2.17-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-d4770f601d mock-1.2.17-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-d4770f601d mock-1.2.17-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-23c93722c3 mock-1.2.17-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. mock-1.2.17-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. mock-1.2.16-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a9958aa8eb mock-1.2.17-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a9958aa8eb mock-1.2.17-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. mock-1.2.17-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. mock-1.2.17-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. (In reply to Matthew Gyurgyik from comment #4) > I think this changes breaks mocks for RHEL6 containers. > > $ sudo /bin/systemd-nspawn -q -M rhel-6-x86_64 id jenkins > uid=10813(jenkins) gid=21373(jenkins) groups=21373(jenkins) > > $ sudo /bin/systemd-nspawn --user=jenkins -M rhel-6-x86_64 id jenkins > Spawning container rhel-6-x86_64 on /var/lib/machines/rhel-6-x86_64. > Press ^] three times within 1s to kill container. > Container rhel-6-x86_64 failed with error code 1. > > I think the above behavior is seen because getent initgroups is not > supported by RHEL6. > FYI If systemd want to be more compatible here in container world then they could use "id" for the same purpose which is available even in el5 sh$ getent initgroups test_user test_user 20728 1070 5977 sh$ id -G test_user 20728 5977 1070 I can confirm this update has broken all package building on EL7 hosts in an EL6 mock environment. I've tagged BZ#1468802 as depending on this. |