Bug 1481952 - Logging in new layer failed as root get "/bin/bash: Permission denied" when upgrade from rhvh-4.x(el7.3)
Summary: Logging in new layer failed as root get "/bin/bash: Permission denied" when u...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-node
Classification: oVirt
Component: Installation & Update
Version: 4.1
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ovirt-4.1.5
: 4.1
Assignee: Ryan Barry
QA Contact: Huijuan Zhao
URL:
Whiteboard:
Depends On:
Blocks: 1476650
TreeView+ depends on / blocked
 
Reported: 2017-08-16 06:54 UTC by Huijuan Zhao
Modified: 2017-08-23 08:02 UTC (History)
13 users (show)

Fixed In Version: imgbased-0.9.44-0.1.el7ev
Clone Of:
Environment:
Last Closed: 2017-08-23 08:02:03 UTC
oVirt Team: Node
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: blocker+
rbarry: devel_ack+
cshao: testing_ack+


Attachments (Terms of Use)
All logs in old layer (sosreport, /tmp/imgbased.log, /var/log) (8.55 MB, application/x-gzip)
2017-08-16 06:54 UTC, Huijuan Zhao
no flags Details
All logs in new layer booting with "selinux=0" (9.53 MB, application/x-gzip)
2017-08-16 06:57 UTC, Huijuan Zhao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 80716 0 ovirt-4.1 MERGED osupdater: go back to using chroot 2017-08-16 15:13:33 UTC
oVirt gerrit 80718 0 master MERGED osupdater: go back to using chroot 2017-08-16 15:13:17 UTC

Description Huijuan Zhao 2017-08-16 06:54:12 UTC
Created attachment 1313963 [details]
All logs in old layer (sosreport, /tmp/imgbased.log, /var/log)

Description of problem:
Logging in new layer failed as root get "/bin/bash: Permission denied" when upgrade from rhvh-4.x(el7.3) to rhvh-4.1-0.20170815.0.

Booting the kernel with selinux=0 solved this problem.

Note: No such issue when upgrade from rhvh-4.1-0.20170808.0(el7.4) to rhvh-4.1-0.20170815.0.


Version-Release number of selected component (if applicable):
From: rhvh-4.0-0.20170307.0
To:   rhvh-4.1-0.20170815.0
      imgbased-0.9.43-0.1.el7ev.noarch

# imgbase layout
rhvh-4.0-0.20170307.0
 +- rhvh-4.0-0.20170307.0+1
rhvh-4.1-0.20170815.0
 +- rhvh-4.1-0.20170815.0+1


How reproducible:
100%


Steps to reproduce:
1. Clean install rhvh-4.0-0.20170307.0
2. Set local repo and upgrade to rhvh-4.1-0.20170815.0:
   #yum update
3. Reboot and log in new layer rhvh-4.1-0.20170815.0 with root in direct console, and ssh rhvh-4.1 with root
4. Reboot and choose new layer rhvh-4.1-0.20170815.0 in boot entry, add "selinux=0" to kernel command, log in rhvh-4.1 with root in direct console, and ssh rhvh-4.1 with root


Actual results:
1. After step 3, log in rhvh-4.1 failed with root both in direct console and ssh.
$ ssh root.10.16
Warning: Permanently added '10.66.10.16' (ECDSA) to the list of known hosts.
root.10.16's password:
Last login: Wed Aug 16 05:40:16 2017
/bin/bash: Permission denied
Connection to 10.66.10.16 closed.

2. After step 4, log in rhvh-4.1 successful with root both in direct console and ssh.


Expected results:
1. After step 3, should log in rhvh-4.1 successful with root both in direct console and ssh.


Additional info:  
1. Also encountered this issue when upgrade from rhvh-4.1-0.20170616.0(el7.3) to rhvh-4.1-0.20170815.0.
But no such issue when upgrade from rhvh-4.1-0.20170808.0(el7.4) to rhvh-4.1-0.20170815.0.
2. No such issue in rhvh-4.1-0.20170808.0, so this is regression issue.

Comment 1 Huijuan Zhao 2017-08-16 06:57:15 UTC
Created attachment 1313964 [details]
All logs in new layer booting with "selinux=0"

Comment 2 Red Hat Bugzilla Rules Engine 2017-08-17 02:48:48 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Huijuan Zhao 2017-08-17 07:20:39 UTC
Test version:
From: rhvh-4.0-0.20170307.0
To:   rhvh-4.1-0.20170816.2
      imgbased-0.9.47-0.1.el7ev.noarch

# imgbase layout
rhvh-4.0-0.20170307.0
 +- rhvh-4.0-0.20170307.0+1
rhvh-4.1-0.20170817.0
 +- rhvh-4.1-0.20170817.0+1


Test steps:
Same as comment 0


Test results:
After step 3, log in rhvh-4.1 successful with root both in direct console and ssh.


So this bug is fixed in imgbased-0.9.47-0.1.el7ev.noarch, change the status to VERIFIED.


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