Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1655684

Summary: [3.10] uninstall will remove the all the docker related files and reinstall on the same cluster fails
Product: OpenShift Container Platform Reporter: Michael Gugino <mgugino>
Component: InstallerAssignee: Russell Teague <rteague>
Installer sub component: openshift-ansible QA Contact: Qin Ping <piqin>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: low CC: aos-bugs, gpei, jialiu, jmalde, jokerman, klaas, mgugino, mmccomas, pdwyer, piqin, sdodson, sgaikwad, tripletrk
Version: 3.10.0   
Target Milestone: ---   
Target Release: 3.10.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
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
Story Points: ---
Clone Of: 1635254 Environment:
Last Closed: 2019-02-20 10:11:10 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:
Bug Depends On: 1635254    
Bug Blocks:    

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