Bug 1535328 - Unable to mock shell to RHEL5 because of wrong parameters order given to usermod
Summary: Unable to mock shell to RHEL5 because of wrong parameters order given to usermod
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 27
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1539112 1544951 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-17 06:49 UTC by Peter
Modified: 2018-02-27 20:40 UTC (History)
10 users (show)

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:
Clone Of:
Environment:
Last Closed: 2018-02-20 17:15:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter 2018-01-17 06:49:58 UTC
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
...

Comment 1 Miroslav Suchý 2018-01-22 12:48:02 UTC
Already fixed in upstream in commit 90c1361

Comment 2 Rafael Aquini 2018-02-08 23:10:14 UTC
Wich N-V-R caries the fix? when this update will be available at repositories?

Comment 3 Fedora Update System 2018-02-12 20:24:22 UTC
mock-1.4.9-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c17daa06f6

Comment 4 Fedora Update System 2018-02-12 20:24:40 UTC
mock-1.4.9-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-fdd5d935df

Comment 5 Fedora Update System 2018-02-12 20:24:59 UTC
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

Comment 6 Fedora Update System 2018-02-13 16:21:51 UTC
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

Comment 7 Fedora Update System 2018-02-13 16:41:31 UTC
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

Comment 8 Fedora Update System 2018-02-13 18:17:37 UTC
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

Comment 9 Miroslav Suchý 2018-02-14 11:51:48 UTC
*** Bug 1544951 has been marked as a duplicate of this bug. ***

Comment 10 Miroslav Suchý 2018-02-14 12:21:08 UTC
*** Bug 1539112 has been marked as a duplicate of this bug. ***

Comment 11 Fedora Update System 2018-02-20 17:15:08 UTC
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.

Comment 12 Fedora Update System 2018-02-27 16:53:31 UTC
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.

Comment 13 Fedora Update System 2018-02-27 20:40:00 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.