Skip to content

[OpenStack] Destroy cluster can not work well since the resource dependency relationship #891

@ghost

Description

Version

$ openshift-install version
openshift-install v0.5.0-master-103-g7980f7d750ebc4f74dd995055563b961f078caf5

Platform (aws|libvirt|openstack):

openstack

What happened?

I am trying to destroy a cluster to clean up the resources, but failed to clean and got the following:

bin/openshift-install destroy cluster --log-level debug --dir install-2018-12-13-10:10:15
DEBUG Deleting openstack networks
DEBUG Deleting openstack security-groups
DEBUG Deleting openstack ports   
DEBUG Deleting openstack containers
DEBUG Deleting openstack servers
DEBUG Deleting openstack subnets
DEBUG Deleting openstack routers
DEBUG Deleting Subnet: 024c47a0-7e49-4187-bc02-8bb5a85c6c24
DEBUG Deleting network: 27d36a4a-3897-4eb1-9a74-12ba296709e0
DEBUG Exiting deleting openstack subnets                        
DEBUG Deleting Security Group: 848b5fb0-2134-4e74-b7a6-2cb81e174dd9
DEBUG Exiting deleting openstack ports
DEBUG goroutine deletePorts complete                      
DEBUG Deleting Security Group: ec199e44-6776-458b-acac-75c5a9789a12
DEBUG Exiting deleting openstack networks                   
DEBUG Deleting Router: 52093478-dcf1-4bcc-9a2c-dbb1e42da880    
DEBUG Exiting deleting openstack servers                                                                                                                                                                          
DEBUG goroutine deleteServers complete
DEBUG Deleting Security Group: fb4af047-126d-4081-ae94-96c60f1f73fb
FATAL Expected HTTP response code [202 204] when accessing [DELETE https://osp-xxxxx:13696/v2.0/routers/52093478-dcf1-4bcc-9a2c-dbb1e42da880], but got 409 instead
{"NeutronError": {"message": "Router 52093478-dcf1-4bcc-9a2c-dbb1e42da880 still has ports", "type": "RouterInUse", "detail": ""}}

What you expected to happen?

All resources should be cleaned without error

How to reproduce it (as minimally and precisely as possible)?

$ bin/openshift-install create cluster --log-level debug --dir=install-`date +%F-%T` 
$ bin/openshift-install destroy cluster --log-level debug --dir install-2018-12-13-10:10:15                                                                                                                                                               

Anything else we need to know?

Enter text here.

References

  • enter text here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions