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

Bug 1679323

Summary: Cleanup fails when running when running OSP on OCP
Product: OpenShift Container Platform Reporter: Itzik Brown <itbrown>
Component: InstallerAssignee: Luis Tomas Bolivar <ltomasbo>
Installer sub component: openshift-ansible QA Contact: Itzik Brown <itbrown>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: aos-bugs, gcheresh, hasha, jokerman, ltomasbo, mmccomas, oblaut, sdodson, ushkalim
Version: 3.11.0   
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
DNS records were being removed before kuryr-related cleanup tasks were executed and these tasks needed access to the OpenShift API. Thus, the connection to the API was not successful due to the missing DNS record pointing to it. This leads to undeleted resources (subnets, loadbalancers, ...) that were created by kuryr and therefore making the stack delete task to fail. This fix ensures the DNS records are only deleted after the stack has already been deleted.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-14 18:46:46 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:
Attachments:
Description Flags
Uninstall output none

Description Itzik Brown 2019-02-20 21:26:58 UTC
Created attachment 1536862 [details]
Uninstall output

Description of problem:
When Running Openshift on Openstack and running cleanup - it fails.

Version-Release number of the following components:

openshift-ansible-3.11.86-1.git.0.88f83d6.el7.noarch
ansible-2.6.13-1.el7ae.noarch
ansible 2.6.13
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/cloud-user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Sep 12 2018, 05:31:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

How reproducible:
100%

Steps to Reproduce:
1.Run the following

export ANSIBLE_HOST_KEY_CHECKING=False
export ANSIBLE_RETRY_FILES_ENABLED=False
export OPENSHIFT_CLUSTER="openshift.example.com"
source ~/shiftstackrc

ansible-playbook \
    --user openshift \
    -i "/usr/share/ansible/openshift-ansible/playbooks/openstack/inventory.py" \
    -i inventory "/usr/share/ansible/openshift-ansible/playbooks/openstack/openshift-cluster/uninstall.yml" > uninstall.log

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

Expected results:

Additional info:
When moving the task 'Clean DNS entries' to the end of the uninstall playbook at 
/usr/share/ansible/openshift-ansible/playbooks/openstack/openshift-cluster/uninstall.yml the cleanup works

Comment 1 Scott Dodson 2019-02-21 16:28:37 UTC
https://github.com/openshift/openshift-ansible/pull/11222 has merged

Comment 5 Luis Tomas Bolivar 2019-02-28 13:19:13 UTC
*** Bug 1667194 has been marked as a duplicate of this bug. ***

Comment 7 Scott Dodson 2019-02-28 15:10:57 UTC
It's built and available to QE, this should be ON_QA.

Comment 8 shahan 2019-03-01 06:20:33 UTC
itbrown, could you help to verify it ASAP? As you know, the bug has been attached in next coming 3.11.z release errata. Thanks

Comment 9 Itzik Brown 2019-03-04 03:54:39 UTC
Verified with openshift-ansible-3.11.90-1.git.0.ee0870c.el7.noarch

Comment 10 shahan 2019-03-05 09:49:04 UTC
itbrown, please let me know the result once you verified this bug against v3.11.88. Thanks!