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

Bug 1754856

Summary: [IPI][OSP] Destroy cluster fails when cluster installation fails before bootstrap step is completed
Product: OpenShift Container Platform Reporter: David Sanz <dsanzmor>
Component: InstallerAssignee: Eric Duen <eduen>
Installer sub component: OpenShift on OpenStack QA Contact: David Sanz <dsanzmor>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: high CC: juriarte
Version: unspecified   
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-24 13:15:03 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:

Description David Sanz 2019-09-24 08:57:00 UTC
Description of problem:
Destroy cluster fails to delete objects when installation fails before bootstrap process is completed:

13:32:43 [groupg-ipi-osp] Running shell script
13:32:44 + ./openshift-install destroy cluster --log-level debug
13:32:44 level=debug msg="OpenShift Installer v4.2.0"
13:32:44 level=debug msg="Built from commit 1358b443329caffc2207aebafb798d12c10fc169"
13:32:44 level=debug msg="Deleting OpenStack volumes"
13:32:44 level=debug msg="Deleting openstack load balancers"
13:32:44 level=debug msg="Deleting openstack ports"
13:32:44 level=debug msg="Deleting openstack security-groups"
13:32:44 level=debug msg="Deleting openstack routers"
13:32:44 level=debug msg="Deleting openstack containers"
13:32:44 level=debug msg="Deleting openstack subnet-pools"
13:32:44 level=debug msg="Deleting openstack networks"
13:32:44 level=debug msg="Deleting openstack servers"
13:32:44 level=debug msg="Deleting openstack floating ips"
13:32:44 level=debug msg="Deleting openstack trunks"
13:32:44 level=debug msg="Deleting openstack subnets"
13:32:44 level=debug msg="No suitable endpoint could be found in the service catalog."
13:32:44 level=debug msg="Exiting deleting openstack load balancers"
13:32:44 level=debug msg="goroutine deleteLoadBalancers complete"
13:32:44 level=debug msg="Exiting deleting openstack subnet-pools"
13:32:44 level=debug msg="goroutine deleteSubnetPools complete"
13:32:44 level=debug msg="Deleting Trunk: 3328adb3-fe16-45fd-b714-a3adc60edd0d"
13:32:44 level=debug msg="Deleting Floating IP: 0d134ca4-f84e-44a3-9684-f1b80e588e4c"
13:32:44 level=debug msg="Deleting Security Group: aa164589-2cb3-4019-9ceb-ad2723231fe1"
13:32:44 level=debug msg="Deleting Subnet: bf3c51ed-94f7-44be-a7b6-5d4cdd0fac79"
13:32:44 level=debug msg="Deleting object: bootstrap.ign\n"
13:32:44 level=debug msg="Deleting network: 90cb0028-1155-4d0f-bc01-815a403011a4"
13:32:44 level=debug msg="Deleting container: mrnd-13-42-no-sjktn\n"
13:32:44 level=debug msg="Deleting Trunk failed: Expected HTTP response code [] when accessing [DELETE https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13696/v2.0/trunks/3328adb3-fe16-45fd-b714-a3adc60edd0d], but got 409 instead\n{\"NeutronError\": {\"message\": \"Trunk 3328adb3-fe16-45fd-b714-a3adc60edd0d is currently in use.\", \"type\": \"TrunkInUse\", \"detail\": \"\"}}"
13:32:44 level=debug msg="Exiting deleting openstack trunks"
13:32:44 level=debug msg="Deleting Network failed: Expected HTTP response code [] when accessing [DELETE https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13696/v2.0/networks/90cb0028-1155-4d0f-bc01-815a403011a4], but got 409 instead\n{\"NeutronError\": {\"message\": \"Unable to complete operation on network 90cb0028-1155-4d0f-bc01-815a403011a4. There are one or more ports still in use on the network.\", \"type\": \"NetworkInUse\", \"detail\": \"\"}}"
13:32:44 level=debug msg="Exiting deleting openstack networks"
13:32:44 level=debug msg="Deleting Subnet failed: Expected HTTP response code [] when accessing [DELETE https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13696/v2.0/subnets/bf3c51ed-94f7-44be-a7b6-5d4cdd0fac79], but got 409 instead\n{\"NeutronError\": {\"message\": \"Unable to complete operation on subnet bf3c51ed-94f7-44be-a7b6-5d4cdd0fac79: One or more ports have an IP allocation from this subnet.\", \"type\": \"SubnetInUse\", \"detail\": \"\"}}"
13:32:44 level=debug msg="Exiting deleting openstack subnets"
13:32:44 level=debug msg="Deleting Floating IP: bf9ddc83-0f5f-491d-bf47-a5a5088b4a53"
13:32:44 level=debug msg="Deleting Security Group failed: Expected HTTP response code [] when accessing [DELETE https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13696/v2.0/security-groups/aa164589-2cb3-4019-9ceb-ad2723231fe1], but got 409 instead\n{\"NeutronError\": {\"message\": \"Security Group aa164589-2cb3-4019-9ceb-ad2723231fe1 in use.\", \"type\": \"SecurityGroupInUse\", \"detail\": \"\"}}"
13:32:44 level=debug msg="Exiting deleting openstack security-groups"
13:32:44 level=debug msg="Exiting deleting openstack containers"
13:32:44 level=debug msg="goroutine deleteContainers complete"
13:32:44 level=fatal msg="Resource not found"

Version-Release number of the following components:
4.2.0

How reproducible:

Steps to Reproduce:
1.Install cluster and force failure on first step, waiting for bootstrap
2.Destroy cluster
3.Check openstack objects

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

Expected results:
Cluster is destroyed


Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 David Sanz 2019-09-24 13:15:03 UTC

*** This bug has been marked as a duplicate of bug 1754542 ***