Bug 2032295
Summary: | [RHOSP 16.1] [ipv6 undercloud] undercloud update fails when you have ipv6 undercloud with enable_routed_networks=false in undercloud.conf; during stack update router interface port is tried to be re-created with the same ip | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Punit Kundal <pkundal> |
Component: | openstack-tripleo-heat-templates | Assignee: | Harald Jensås <hjensas> |
Status: | CLOSED ERRATA | QA Contact: | David Rosenfeld <drosenfe> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 16.1 (Train) | CC: | abhijadh, hjensas, jhardee, jparoly, kurathod, mburns, morazi, sbaker, skaplons, sputhenp |
Target Milestone: | z9 | Keywords: | Triaged |
Target Release: | 16.1 (Train on RHEL 8.2) | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openstack-tripleo-heat-templates-11.3.2-1.20220125223751.29a02c1.el8ost | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-12-07 20:29:17 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
Punit Kundal
2021-12-14 11:12:24 UTC
File \"/var/lib/heat-config/heat-config-script/713d1890-8f6c-4a76-ba57-b91194a3ce85\", line 129, in _neutron_subnet_update File \"/usr/lib/python3.6/site-packages/openstack/network/v2/_proxy.py\", line 3469, in update_subnet return self._update(_subnet.Subnet, subnet, **attrs) File \"/usr/lib/python3.6/site-packages/openstack/proxy.py\", line 46, in check return method(self, expected, actual, *args, **kwargs) File \"/usr/lib/python3.6/site-packages/openstack/proxy.py\", line 393, in _update return res.commit(self, base_path=base_path) File \"/usr/lib/python3.6/site-packages/openstack/resource.py\", line 1402, in commit retry_on_conflict=retry_on_conflict) File \"/usr/lib/python3.6/site-packages/openstack/resource.py\", line 1428, in _commit self._translate_response(response, has_body=has_body) File \"/usr/lib/python3.6/site-packages/openstack/resource.py\", line 1107, in _translate_response exceptions.raise_from_response(response, error_message=error_message) File \"/usr/lib/python3.6/site-packages/openstack/exceptions.py\", line 229, in raise_from_response http_status=http_status, request_id=request_id openstack.exceptions.ConflictException: ConflictException: 409: Client Error for url: http://[2001:db8:88ec:9fb3::10]:9696/v2.0/subnets/6dfcdafe-042d-4014-99ba-d4dcdf740e02, Current gateway ip 2001:db8:88ec:9fb3::5 already in use by port e3259023-707e-4d2f-82f0-63e24fa7af5f. Unable to update. The code that fails is[1], this method: def _neutron_subnet_update(sdk, subnet_id, cidr, gateway, host_routes, allocation_pools, name, dns_nameservers): try: if netaddr.IPNetwork(cidr).version == 6: subnet = sdk.network.update_subnet( subnet_id, name=name, gateway_ip=gateway, allocation_pools=allocation_pools, dns_nameservers=_get_nameservers_for_version(dns_nameservers, 6)) else: subnet = sdk.network.update_subnet( subnet_id, name=name, gateway_ip=gateway, host_routes=host_routes, allocation_pools=allocation_pools, dns_nameservers=_get_nameservers_for_version(dns_nameservers, 4)) print('INFO: Subnet updated %s' % subnet) except Exception: print('ERROR: Update of subnet %s failed.' % name) raise I guess we need to only set the gateway_ip if it was changed in the update request to avoid neutron attempting to create a router port. @skaplons, wdyt? [1] https://opendev.org/openstack/tripleo-heat-templates/src/branch/master/extraconfig/post_deploy/undercloud_ctlplane_network.py#L124-L147 We will backport this to 16.1, but the fix is actually in 16.2 so if you've switched to deploying with 16.2 then we can change the target of this bug and change its state. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat OpenStack 16.1.9 (openstack-tripleo-heat-templates) security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8796 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |