Remove openstacksdk workaround for floating IP

This removes the openstacksdk workaround for the
resource_key bug for dns floating IP [1].

[1] https://review.opendev.org/c/openstack/openstacksdk/+/903879

Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/903879
Change-Id: If269cbc261849e2a3daf7a9ab76476b4d91d0e3c
This commit is contained in:
Tobias Urdin 2023-12-18 13:16:18 +01:00
parent d64f3c03fd
commit 8bc4637947
2 changed files with 7 additions and 13 deletions

View File

@ -243,19 +243,8 @@ def update_dns_floatingip(request, **kwargs):
if data.get('ttl', None):
build_kwargs['ttl'] = data['ttl']
# TODO(tobias-urdin): Bug in openstacksdk
# https://review.opendev.org/c/openstack/openstacksdk/+/903879
obj = conn.dns._get_resource(_fip.FloatingIP, fip_id,
**build_kwargs)
obj.resource_key = None
has_body = True
if build_kwargs['ptrdname'] is None:
has_body = False
fip = obj.commit(conn.dns, has_body=has_body)
# Update to this when bug is fixed.
#fip = conn.dns.update_floating_ip(
# fip_id, **build_kwargs)
fip = conn.dns.update_floating_ip(
fip_id, **build_kwargs)
return fip.to_dict()

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
TODO: update this!
The designate dashboard now requires a minimum openstacksdk version of x.x.x