kops/upup/pkg/fi/cloudup/openstack
Otto Sulin 24dcd840bb Fix OpenStack delete functions
This PR introduces two fixes:
1) Add missing RetryWithBackoff to DeleteInstanceWithID
2) Fix broken retry logic in all other delete functions. In the current implementation, as the first Delete request will almost certainly return nil, the function will return true and the retry will not try again, resulting in assets not getting deleted from OpenStack

Also, the current writeBackoff is pretty aggressive and I introduced a bit less hasty deleteBackoff.

The change has been tested with OpenStack. I verified that all APIs we are hitting will eventually return the 404 (type) we are looking for.
2021-02-17 11:02:12 +02:00
..
BUILD.bazel Remove vendoring of nova floating ip 2020-08-24 06:46:25 +02:00
OWNERS fix OWNERS labels format 2020-03-10 22:47:50 -05:00
apitarget.go Update copyright notices 2019-09-09 14:47:51 -04:00
availability_zone.go Refactor openstackCloud to be mockable, add openstack.MockCloud 2020-07-28 23:29:41 -05:00
cloud.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
cloud_test.go Remove unused mock endpoint 2020-08-24 06:44:29 +02:00
dns.go Refactor openstackCloud to be mockable, add openstack.MockCloud 2020-07-28 23:29:41 -05:00
floatingip.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
image.go Refactor openstackCloud to be mockable, add openstack.MockCloud 2020-07-28 23:29:41 -05:00
instance.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
keypair.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
loadbalancer.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
mock_cloud.go update gophercloud dependency 2021-01-11 14:48:22 +02:00
network.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
port.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
router.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
security_group.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
server_group.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
status.go Upgrade to klog2 2020-08-16 20:56:48 -05:00
subnet.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00
utils.go Refactor openstackCloud to be mockable, add openstack.MockCloud 2020-07-28 23:29:41 -05:00
volume.go Fix OpenStack delete functions 2021-02-17 11:02:12 +02:00