Bug 1548633 - [quick installer][3.9]Unable to uninstall
Summary: [quick installer][3.9]Unable to uninstall
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.9.0
Assignee: Vadim Rutkovsky
QA Contact: Wenkai Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-24 04:03 UTC by Wenkai Shi
Modified: 2018-03-28 14:30 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-28 14:30:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 0 None None None 2018-03-28 14:30:51 UTC

Description Wenkai Shi 2018-02-24 04:03:53 UTC
Description of problem:
Unable to uninstall cluster which installed by quick installer.

Version-Release number of the following components:
atomic-openshift-utils-3.9.0-0.51.0.git.0.e26400f.el7
ansible-2.4.2.0-2.el7

How reproducible:
100%

Steps to Reproduce:
1. Install OCP by quick installer
# atomic-openshift-installer install
2. Uninstall the cluster
atomic-openshift-installer uninstall
3.

Actual results:
# atomic-openshift-installer uninstall
OpenShift will be uninstalled from the following hosts:

  * master.example.com
  * node.example.com

Do you want to proceed? [y/N]: y
ERROR! Invalid callback for stdout specified: openshift_quick_installer

Expected results:
Should be able to uninstall

Additional info:

Comment 1 Vadim Rutkovsky 2018-02-27 11:25:09 UTC
That's a packaging issue:

[root@ip-172-18-3-90 share]# tail -n 2 /usr/share/atomic-openshift-utils/ansible-quiet.cfg
stdout_callback = openshift_quick_installer
callback_plugins = /usr/share/ansible_plugins/callback_plugins

[root@ip-172-18-3-90 share]# ls -la /usr/share/ansible_plugins/callback_plugins
ls: cannot access /usr/share/ansible_plugins/callback_plugins: No such file or directory

[root@ip-172-18-3-90 share]# mkdir -p /usr/share/ansible_plugins/callback_plugins
[root@ip-172-18-3-90 share]# cp /usr/share/ansible/openshift-ansible/roles/lib_utils/callback_plugins/openshift_quick_installer.py /usr/share/ansible_plugins/callback_plugins
[root@ip-172-18-3-90 share]# atomic-openshift-installer uninstall
OpenShift will be uninstalled from the following hosts:

  * localhost

Do you want to proceed? [y/N]: y
 [WARNING]: Could not match supplied host pattern, ignoring: children

Comment 2 Vadim Rutkovsky 2018-02-27 11:35:11 UTC
Created https://github.com/openshift/openshift-ansible/pull/7300.

It seems its easier to update ansible config than copy the file all over

Comment 4 Wenkai Shi 2018-03-05 05:48:47 UTC
Failed to verify with version atomic-openshift-utils-3.9.2-1.git.0.1a855b3.el7, code merged. Still met same issue.

# tail -n 2 /usr/share/atomic-openshift-utils/ansible-quiet.cfg

stdout_callback = openshift_quick_installer

# atomic-openshift-installer uninstall
OpenShift will be uninstalled from the following hosts:

  * master.example.com
  * node.example.com

Do you want to proceed? [y/N]: y
ERROR! Invalid callback for stdout specified: openshift_quick_installer

# tail -n1 /tmp/ansible.log
2018-03-05 13:47:06,123 p=12656 u=root |  ERROR! Invalid callback for stdout specified: openshift_quick_installer

Comment 5 Vadim Rutkovsky 2018-03-05 12:10:08 UTC
Interesting, not sure why it worked during my tests.

Created https://github.com/openshift/openshift-ansible/pull/7377 to fix - now callback_plugins path would be specified explicitely

Comment 6 Vadim Rutkovsky 2018-03-07 09:42:47 UTC
Fix is available in openshift-ansible-3.9.3-1

Comment 7 Wenkai Shi 2018-03-07 09:46:17 UTC
Verified with version openshift-ansible-3.9.3-1.git.0.e166207.el7, uninstall could working now.

Comment 10 errata-xmlrpc 2018-03-28 14:30:19 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-2018:0489


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