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.
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
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