Bug 1655684 - [3.10] uninstall will remove the all the docker related files and reinstall on the same cluster fails
Summary: [3.10] uninstall will remove the all the docker related files and reinstall o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.10.0
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
: 3.10.z
Assignee: Russell Teague
QA Contact: Qin Ping
URL:
Whiteboard:
Depends On: 1635254
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-03 17:03 UTC by Michael Gugino
Modified: 2022-03-13 16:19 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: All docker related packages are not removed during uninstall Consequence: Docker is not reinstalled properly during install causing docker cli tasks to fail. Fix: Added all related docker packages to uninstall Result: Reinstall succeeds after running uninstall playbook
Clone Of: 1635254
Environment:
Last Closed: 2019-02-20 10:11:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0328 0 None None None 2019-02-20 10:11:17 UTC

Comment 1 Michael Gugino 2018-12-03 17:06:57 UTC
3.10.z tracking bug.

Comment 4 Scott Dodson 2019-01-24 14:54:52 UTC
In openshift-ansible-3.10.91-1 and later

Comment 5 sheng.lao 2019-01-25 08:17:04 UTC
1. Reproduce the failure
# rpm -qa |grep openshift-ansible
openshift-ansible-3.10.57-1.git.0.787bf7c.el7.noarch

After the finished playbook uninstall.yml with enabled openshift_uninstall_docker, I check with command:
# rpm -qa |grep docker
docker-1.13.1-88.git07f3374.el7.x86_64

Re-install OCP with commands:
# ansible-playbook -i inventory.yml playbooks/prerequisites.yml 

And get error messages from docker service:
# systemctl status docker
Jan 25 01:48:59 xxxx dockerd-current[65299]: /usr/bin/docker-containerd: line 2: /etc/sysconfig/docker: No such file or directory


2. Verify the Patch
Check in the uninstalled enviroment
# rpm -qa |grep openshift-ansible
openshift-ansible-3.10.104-1.git.0.79f87f7.el7.noarch

# rpm -qa |grep docker
#

Re-install OCP and get the same error:
# systemctl status docker
Jan 25 03:10:24 xxx dockerd-current[47247]: /usr/bin/docker-containerd: line 2: /etc/sysconfig/docker: No such file or directory

# rpm -qf /etc/sysconfig/docker
docker-common-1.13.1-88.git07f3374.el7.x86_64


3. Result: Failed, because installer need to uninstall the rpm of docker-common

Comment 6 Russell Teague 2019-02-04 16:08:49 UTC
Proposed: https://github.com/openshift/openshift-ansible/pull/11109

Comment 8 Qin Ping 2019-02-12 07:29:21 UTC
Verified with:
openshift-ansible-3.10.111-1.git.0.84b2b69.el7.noarch
ansible-2.4.6.0-1.el7ae.noarch

Comment 10 errata-xmlrpc 2019-02-20 10:11:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0328


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