← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1843211] [NEW] network-ip-availabilities' result is not correct when the subnet has no allocation-pool

 

Public bug reported:

Rocky & maybe master:
I create a network and a subnet.
Then, I update the subnet to no-allocation-pool
 openstack subnet set 0f4d5c95-879d-4b2a-90d0-350e09375f80 --no-allocation-pool

Next,I check the availability ips of the network:
  openstack ip availability show 440453b6-d5be-47a8-abed-df7c491e6501
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
| Field                  | Value                                                                                                                                        |
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
| id                     | 440453b6-d5be-47a8-abed-df7c491e6501                                                                                                         |
| name                   | None                                                                                                                                         |
| network_id             | 440453b6-d5be-47a8-abed-df7c491e6501                                                                                                         |
| network_name           | yjfaaa                                                                                                                                       |
| project_id             | 7be52ee6c397430085c1dc3accf4e795                                                                                                             |
| subnet_ip_availability | cidr='6.6.6.0/24', ip_version='4', subnet_id='0f4d5c95-879d-4b2a-90d0-350e09375f80', subnet_name='yjfaaa-sub', total_ips='256', used_ips='3' |
| total_ips              | 256                                                                                                                                          |
| used_ips               | 3                                                                                                                                            |
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+

But I can't create port in the network:
  openstack port create test --network 440453b6-d5be-47a8-abed-df7c491e6501
{"NeutronError": {"message": "No more IP addresses available on network 440453b6-d5be-47a8-abed-df7c491e6501.", "type": "IpAddressGenerationFailure", "detail": ""}}

** Affects: neutron
     Importance: Undecided
         Status: New

** Description changed:

  Rocky & maybe master:
  I create a network and a subnet.
  Then, I update the subnet to no-allocation-pool
-   openstack subnet set 0f4d5c95-879d-4b2a-90d0-350e09375f80 --no-allocation-pool
+  openstack subnet set 0f4d5c95-879d-4b2a-90d0-350e09375f80 --no-allocation-pool
  
  Next,I check the availability ips of the network:
- openstack ip availability show 440453b6-d5be-47a8-abed-df7c491e6501
+   openstack ip availability show 440453b6-d5be-47a8-abed-df7c491e6501
  +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
  | Field                  | Value                                                                                                                                        |
  +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
  | id                     | 440453b6-d5be-47a8-abed-df7c491e6501                                                                                                         |
  | name                   | None                                                                                                                                         |
  | network_id             | 440453b6-d5be-47a8-abed-df7c491e6501                                                                                                         |
  | network_name           | yjfaaa                                                                                                                                       |
  | project_id             | 7be52ee6c397430085c1dc3accf4e795                                                                                                             |
  | subnet_ip_availability | cidr='6.6.6.0/24', ip_version='4', subnet_id='0f4d5c95-879d-4b2a-90d0-350e09375f80', subnet_name='yjfaaa-sub', total_ips='256', used_ips='3' |
  | total_ips              | 256                                                                                                                                          |
  | used_ips               | 3                                                                                                                                            |
  +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
  
  But I can't create port in the network:
- openstack port create test --network 440453b6-d5be-47a8-abed-df7c491e6501
+   openstack port create test --network 440453b6-d5be-47a8-abed-df7c491e6501
  {"NeutronError": {"message": "No more IP addresses available on network 440453b6-d5be-47a8-abed-df7c491e6501.", "type": "IpAddressGenerationFailure", "detail": ""}}

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1843211

Title:
  network-ip-availabilities' result is not correct when the subnet has
  no allocation-pool

Status in neutron:
  New

Bug description:
  Rocky & maybe master:
  I create a network and a subnet.
  Then, I update the subnet to no-allocation-pool
   openstack subnet set 0f4d5c95-879d-4b2a-90d0-350e09375f80 --no-allocation-pool

  Next,I check the availability ips of the network:
    openstack ip availability show 440453b6-d5be-47a8-abed-df7c491e6501
  +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
  | Field                  | Value                                                                                                                                        |
  +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
  | id                     | 440453b6-d5be-47a8-abed-df7c491e6501                                                                                                         |
  | name                   | None                                                                                                                                         |
  | network_id             | 440453b6-d5be-47a8-abed-df7c491e6501                                                                                                         |
  | network_name           | yjfaaa                                                                                                                                       |
  | project_id             | 7be52ee6c397430085c1dc3accf4e795                                                                                                             |
  | subnet_ip_availability | cidr='6.6.6.0/24', ip_version='4', subnet_id='0f4d5c95-879d-4b2a-90d0-350e09375f80', subnet_name='yjfaaa-sub', total_ips='256', used_ips='3' |
  | total_ips              | 256                                                                                                                                          |
  | used_ips               | 3                                                                                                                                            |
  +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+

  But I can't create port in the network:
    openstack port create test --network 440453b6-d5be-47a8-abed-df7c491e6501
  {"NeutronError": {"message": "No more IP addresses available on network 440453b6-d5be-47a8-abed-df7c491e6501.", "type": "IpAddressGenerationFailure", "detail": ""}}

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1843211/+subscriptions


Follow ups