Bug 1535328
| Summary: | Unable to mock shell to RHEL5 because of wrong parameters order given to usermod | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Peter <peterrraj> | 
| Component: | mock | Assignee: | Miroslav Suchý <msuchy> | 
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | 
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 27 | CC: | aquini, jdisnard, jkeating, mebrown, Michael.Shipper, msimacek, msuchy, praiskup, thomas.swan, williams | 
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | mock-1.4.9-1.fc27 mock-1.4.9-1.fc26 mock-1.4.9-1.el7 | Doc Type: | If docs needed, set a value | 
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-02-20 17:15:08 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: | |||
Already fixed in upstream in commit 90c1361 Wich N-V-R caries the fix? when this update will be available at repositories? mock-1.4.9-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c17daa06f6 mock-1.4.9-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-fdd5d935df mock-1.4.9-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-5d1f3c3e39 mock-1.4.9-1.fc26 has been pushed to the Fedora 26 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-2018-fdd5d935df mock-1.4.9-1.fc27 has been pushed to the Fedora 27 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-2018-c17daa06f6 mock-1.4.9-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-2018-5d1f3c3e39 *** Bug 1544951 has been marked as a duplicate of this bug. *** *** Bug 1539112 has been marked as a duplicate of this bug. *** mock-1.4.9-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. mock-1.4.9-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. mock-1.4.9-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.  | 
Description of problem: Trying to mock shell on RHEL5x32 fails because of wrong parameter order given to usermod Version-Release number of selected component (if applicable): mock-1.4.8-1.fc27.noarch How reproducible: try to mock shell to RHEL5x32 distribution with mock-1.4.8-1.fc27.noarch Steps to Reproduce: 1. mock -r 2015r4-el5-occonnectors-candidate-27669-19963 shell -v 2. 3. Actual results: Fails to start the shell with error "Command failed". Verbose output provided below. Expected results: Start shell Additional info: Works fine with mock-1.4.6-1.fc27.noarch However with mock-1.4.8-1.fc27.noarch it fails: ... DEBUG: configure yum priorities DEBUG: configure yum rhnplugin DEBUG: child environment: None DEBUG: Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'a467b800cf544171a6be540b074027c2', '-D', '/aux1/mock/2015r4-el5-occonnectors-candidate-27669-19963/root', '-a', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"', '--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '/usr/sbin/usermod', '--non-unique', '-u', '1000', 'mockbuild'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False DEBUG: DEBUG: Unsharing. Flags: 134217728 DEBUG: Usage: usermod [options] LOGIN DEBUG: Options: DEBUG: -a, --append append the user to the supplemental GROUPS ...