Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1455472 - Got "chroot: cannot change root directory to /rootfs" when using docker cmd on nodes
Got "chroot: cannot change root directory to /rootfs" when using docker cmd o...
Status: CLOSED CURRENTRELEASE
Product: OpenShift Container Platform
Classification: Red Hat
Component: Release (Show other bugs)
3.6.0
Unspecified Unspecified
medium Severity urgent
: ---
: ---
Assigned To: Scott Dodson
Gaoyun Pei
aos-scalability-36
: TestBlocker
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-25 05:27 EDT by Yan Du
Modified: 2017-08-16 15 EDT (History)
15 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-07-24 09:01:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description Yan Du 2017-05-25 05:27:22 EDT
Description of problem:

SSH into node and run docker cmd after ocp-3.6 fresh installation, docker path is /usr/local/bin/docker and it coluld not work well:

[root@host-8-174-84 ~]# docker images
chroot: cannot change root directory to /rootfs: No such file or directory

[root@host-8-174-84 ~]# docker ps
chroot: cannot change root directory to /rootfs: No such file or directory

[root@host-8-174-84 ~]# which docker
/usr/local/bin/docker

[root@host-8-175-84 ~]# rpm -qf /usr/local/bin/docker
atomic-openshift-node-3.6.84-1.git.0.ba2ffa1.el7.x86_64

docker works well when using /usr/bin/docker 
[root@host-8-174-84 ~]# /usr/bin/docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE


Version-Release number of selected component (if applicable):
openshift v3.6.84
kubernetes v1.6.1+5115d708d7
etcd 3.1.0
docker-client-1.12.6-16.el7.x86_64
docker-1.12.6-16.el7.x86_64
docker-common-1.12.6-16.el7.x86_64
docker-rhel-push-plugin-1.12.6-16.el7.x86_64
atomic-openshift-docker-excluder-3.6.84-1.git.0.ba2ffa1.el7.noarch


Steps to Reproduce:
1. Setup OCP env
2. SSH into node and run docker cmd


Actual results:
Same as description


Expected results:
docker cmd could work well and the docker path should be /usr/bin/docker
Comment 1 Scott Dodson 2017-05-25 08:58:08 EDT
Broken by this PR, assigning to release team.

https://github.com/openshift/origin/pull/13642
Comment 2 Scott Dodson 2017-05-30 11:47:15 EDT
https://github.com/openshift/origin/pull/14350 has some discussion on the topic and proposed solution
Comment 3 Mike Fiedler 2017-06-01 11:02:27 EDT
Changing sev to urgent - openshift-ansible installs are currently broken.
Comment 4 Scott Dodson 2017-06-01 11:21:17 EDT
(In reply to Mike Fiedler from comment #3)
> Changing sev to urgent - openshift-ansible installs are currently broken.

When you say installs are broken, how are they broken, is there an error?

If the install is failing because of this I'll pick this up and fix it. If it's not actually preventing successful installation I'm going to leave this with the release team as they initiated the breaking change.
Comment 7 Scott Dodson 2017-06-01 13:50:57 EDT
https://github.com/openshift/origin/pull/14441
Comment 9 Gaoyun Pei 2017-06-05 02:36:58 EDT
Still reproducible on atomic-openshift-node-3.6.94-1.git.0.ba4aad2.el7.x86_64
Comment 10 Mike Fiedler 2017-06-05 08:14:11 EDT
Are there any workarounds for this?
Comment 11 Michail Kargakis 2017-06-05 08:20:59 EDT
The fix will be included in the next OCP build which should land today.

As a workaround, use the full path to /usr/bin/docker.
Comment 12 Scott Dodson 2017-06-05 08:29:32 EDT
Or rm /usr/local/bin/docker
Comment 13 Michail Kargakis 2017-06-07 11:34:31 EDT
Should be fixed in v3.6.99-1
Comment 14 Peter Ruan 2017-06-07 19:53:55 EDT
verified with the latest puddle 

oc v3.6.99
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://openshift-120.lab.sjc.redhat.com:8443
openshift v3.6.99
kubernetes v1.6.1+5115d708d7

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