Comment 3 for bug 2012047

Revision history for this message
Marcin Wilk (wilkmarcin) wrote :

Hey Corey,
I just checked with:
- python3-openstackclient 5.8.0-0ubuntu1
- python3-openstackclient 6.0.0-0ubuntu1~cloud0

and it looks like the newer versions are also affected:

 python3-openstackclient 5.8.0-0ubuntu1
(...)
 Starting new HTTP connection (1): 10.5.100.3:9696
http://10.5.100.3:9696 "GET /v2.0/networks/cd275f37-deec-4f0f-9ad3-4816ca52678e HTTP/1.1" 200 765
RESP: [200] Connection: keep-alive Content-Length: 765 Content-Type: application/json Date: Wed, 22 Mar 2023 14:46:37 GMT X-Openstack-Request-Id: req-eed04f66-58e4-48df-b733-91fe086a2176
RESP BODY: {"network":{"id":"cd275f37-deec-4f0f-9ad3-4816ca52678e","name":"ext_net","tenant_id":"d6761dacbb0649189a07a4a1a191a8c0","admin_state_up":true,"mtu":1500,"status":"ACTIVE","subnets":["040a6d57-b6fc-436a-b531-03baf4abb609","3184d8e7-e9be-4071-b1bf-52cca10f28ec"],"shared":false,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"ipv6_address_scope":null,"router:external":true,"description":"","port_security_enabled":true,"dns_domain":"","l2_adjacency":true,"is_default":false,"tags":[],"created_at":"2022-05-06T10:18:25Z","updated_at":"2023-03-22T14:43:07Z","revision_number":27,"project_id":"d6761dacbb0649189a07a4a1a191a8c0","provider:network_type":"flat","provider:physical_network":"physnet1","provider:segmentation_id":null}}
GET call to network for http://10.5.100.3:9696/v2.0/networks/cd275f37-deec-4f0f-9ad3-4816ca52678e used request id req-eed04f66-58e4-48df-b733-91fe086a2176
Attribute [] not found in [<openstack.resource._ComponentManager object at 0x7f9a6d25d750>]: ''.
REQ: curl -g -i -X POST http://10.5.100.3:9696/v2.0/subnets -H "Content-Type: application/json" -H "User-Agent: openstacksdk/0.61.0 keystoneauth1/4.4.0 python-requests/2.25.1 CPython/3.10.6" -H "X-Auth-Token: {SHA256}05006deb621e646b64dc83b8718ec106a32226420306ac5a39f2d84b844d4dff" -d '{"subnet": {"allocation_pools": [{"start": "172.16.4.100", "end": "172.16.4.200"}], "enable_dhcp": false, "gateway_ip": "172.16.4.1", "dns_nameservers": ["8.8.8.8"], "network_id": "cd275f37-deec-4f0f-9ad3-4816ca52678e", "ip_version": 4, "cidr": "172.16.4.0/24", "name": "external-subnet-4"}}'
Failure: Unable to establish connection to http://10.5.100.3:9696/v2.0/subnets: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')). Retrying in 0.5s.
Starting new HTTP connection (2): 10.5.100.3:9696
http://10.5.100.3:9696 "POST /v2.0/subnets HTTP/1.1" 400 221
RESP: [400] Connection: keep-alive Content-Length: 221 Content-Type: application/json Date: Wed, 22 Mar 2023 14:48:07 GMT X-Openstack-Request-Id: req-7e183803-909a-4582-86af-818ec49dac84
RESP BODY: {"NeutronError": {"type": "InvalidInput", "message": "Invalid input for operation: Requested subnet with cidr: 172.16.4.0/24 for network: cd275f37-deec-4f0f-9ad3-4816ca52678e overlaps with another subnet.", "detail": ""}}
POST call to network for http://10.5.100.3:9696/v2.0/subnets used request id req-7e183803-909a-4582-86af-818ec49dac84
BadRequestException: 400: Client Error for url: http://10.5.100.3:9696/v2.0/subnets, Invalid input for operation: Requested subnet with cidr: 172.16.4.0/24 for network: cd275f37-deec-4f0f-9ad3-4816ca52678e overlaps with another subnet.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cliff/app.py", line 407, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python3/dist-packages/osc_lib/command/command.py", line 39, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3/dist-packages/cliff/display.py", line 115, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python3/dist-packages/openstackclient/network/v2/subnet.py", line 380, in take_action
    obj = client.create_subnet(**attrs)
  File "/usr/lib/python3/dist-packages/openstack/network/v2/_proxy.py", line 3989, in create_subnet
    return self._create(_subnet.Subnet, **attrs)
  File "/usr/lib/python3/dist-packages/openstack/proxy.py", line 463, in _create
    return res.create(self, base_path=base_path)
  File "/usr/lib/python3/dist-packages/openstack/resource.py", line 1364, in create
    self._translate_response(response, has_body=has_body)
  File "/usr/lib/python3/dist-packages/openstack/resource.py", line 1177, in _translate_response
    exceptions.raise_from_response(response, error_message=error_message)
  File "/usr/lib/python3/dist-packages/openstack/exceptions.py", line 236, in raise_from_response
    raise cls(
openstack.exceptions.BadRequestException: BadRequestException: 400: Client Error for url: http://10.5.100.3:9696/v2.0/subnets, Invalid input for operation: Requested subnet with cidr: 172.16.4.0/24 for network: cd275f37-deec-4f0f-9ad3-4816ca52678e overlaps with another subnet.
clean_up CreateSubnet: BadRequestException: 400: Client Error for url: http://10.5.100.3:9696/v2.0/subnets, Invalid input for operation: Requested subnet with cidr: 172.16.4.0/24 for network: cd275f37-deec-4f0f-9ad3-4816ca52678e overlaps with another subnet.
END return value: 1

python3-openstackclient 6.0.0-0ubuntu1~cloud0
(...)
Starting new HTTP connection (1): 10.5.100.3:9696
http://10.5.100.3:9696 "GET /v2.0/networks/cd275f37-deec-4f0f-9ad3-4816ca52678e HTTP/1.1" 200 765
RESP: [200] Connection: keep-alive Content-Length: 765 Content-Type: application/json Date: Wed, 22 Mar 2023 14:52:17 GMT X-Openstack-Request-Id: req-af578a71-c4a6-4a85-836d-4455e3b0f280
RESP BODY: {"network":{"id":"cd275f37-deec-4f0f-9ad3-4816ca52678e","name":"ext_net","tenant_id":"d6761dacbb0649189a07a4a1a191a8c0","admin_state_up":true,"mtu":1500,"status":"ACTIVE","subnets":["040a6d57-b6fc-436a-b531-03baf4abb609","3184d8e7-e9be-4071-b1bf-52cca10f28ec"],"shared":false,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"ipv6_address_scope":null,"router:external":true,"description":"","port_security_enabled":true,"dns_domain":"","l2_adjacency":true,"is_default":false,"tags":[],"created_at":"2022-05-06T10:18:25Z","updated_at":"2023-03-22T14:49:44Z","revision_number":29,"project_id":"d6761dacbb0649189a07a4a1a191a8c0","provider:network_type":"flat","provider:physical_network":"physnet1","provider:segmentation_id":null}}
GET call to network for http://10.5.100.3:9696/v2.0/networks/cd275f37-deec-4f0f-9ad3-4816ca52678e used request id req-af578a71-c4a6-4a85-836d-4455e3b0f280
Attribute [] not found in [<openstack.resource._ComponentManager object at 0x7f3addcb2800>]: ''.
REQ: curl -g -i -X POST http://10.5.100.3:9696/v2.0/subnets -H "Content-Type: application/json" -H "User-Agent: openstacksdk/0.61.0 keystoneauth1/4.4.0 python-requests/2.25.1 CPython/3.10.6" -H "X-Auth-Token: {SHA256}f5caea1eddc4867ac0efa21cabf0c796a5e6b147e203bec22b8a5b74dda78c93" -d '{"subnet": {"enable_dhcp": false, "cidr": "172.16.5.0/24", "ip_version": 4, "name": "external-subnet-5", "allocation_pools": [{"start": "172.16.5.100", "end": "172.16.5.200"}], "gateway_ip": "172.16.5.1", "network_id": "cd275f37-deec-4f0f-9ad3-4816ca52678e", "dns_nameservers": ["8.8.8.8"]}}'
Failure: Unable to establish connection to http://10.5.100.3:9696/v2.0/subnets: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')). Retrying in 0.5s.
Starting new HTTP connection (2): 10.5.100.3:9696
http://10.5.100.3:9696 "POST /v2.0/subnets HTTP/1.1" 400 221
RESP: [400] Connection: keep-alive Content-Length: 221 Content-Type: application/json Date: Wed, 22 Mar 2023 14:53:48 GMT X-Openstack-Request-Id: req-9900c366-aca1-484b-95cc-dff4082bfab8
RESP BODY: {"NeutronError": {"type": "InvalidInput", "message": "Invalid input for operation: Requested subnet with cidr: 172.16.5.0/24 for network: cd275f37-deec-4f0f-9ad3-4816ca52678e overlaps with another subnet.", "detail": ""}}
POST call to network for http://10.5.100.3:9696/v2.0/subnets used request id req-9900c366-aca1-484b-95cc-dff4082bfab8
BadRequestException: 400: Client Error for url: http://10.5.100.3:9696/v2.0/subnets, Invalid input for operation: Requested subnet with cidr: 172.16.5.0/24 for network: cd275f37-deec-4f0f-9ad3-4816ca52678e overlaps with another subnet.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cliff/app.py", line 407, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python3/dist-packages/osc_lib/command/command.py", line 39, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3/dist-packages/cliff/display.py", line 115, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python3/dist-packages/openstackclient/network/v2/subnet.py", line 381, in take_action
    obj = client.create_subnet(**attrs)
  File "/usr/lib/python3/dist-packages/openstack/network/v2/_proxy.py", line 3989, in create_subnet
    return self._create(_subnet.Subnet, **attrs)
  File "/usr/lib/python3/dist-packages/openstack/proxy.py", line 463, in _create
    return res.create(self, base_path=base_path)
  File "/usr/lib/python3/dist-packages/openstack/resource.py", line 1364, in create
    self._translate_response(response, has_body=has_body)
  File "/usr/lib/python3/dist-packages/openstack/resource.py", line 1177, in _translate_response
    exceptions.raise_from_response(response, error_message=error_message)
  File "/usr/lib/python3/dist-packages/openstack/exceptions.py", line 236, in raise_from_response
    raise cls(
openstack.exceptions.BadRequestException: BadRequestException: 400: Client Error for url: http://10.5.100.3:9696/v2.0/subnets, Invalid input for operation: Requested subnet with cidr: 172.16.5.0/24 for network: cd275f37-deec-4f0f-9ad3-4816ca52678e overlaps with another subnet.
clean_up CreateSubnet: BadRequestException: 400: Client Error for url: http://10.5.100.3:9696/v2.0/subnets, Invalid input for operation: Requested subnet with cidr: 172.16.5.0/24 for network: cd275f37-deec-4f0f-9ad3-4816ca52678e overlaps with another subnet.
END return value: 1

Kind regards,
Marcin