← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1367685] [NEW] neutron port-create returning "No more IP addresses available on network" error when the subnet has two allocation pools with same start and end ipsNo more IP addresses available on network

 

Public bug reported:

neutron port-create returning "No more IP addresses available on network" error when the subnet has two allocation pools with same start and end ipsNo more IP addresses available on network.
On running 'neutron port-list' the port is listed.


 neutron net-create test
Created a new network:
+-----------------+--------------------------------------+
| Field           | Value                                |
+-----------------+--------------------------------------+
| admin_state_up  | True                                 |
| id              | 4151b7e5-7fdd-4975-a5f1-b45ee8a0ae73 |
| name            | test                                 |
| router:external | False                                |
| shared          | False                                |
| status          | ACTIVE                               |
| subnets         |                                      |
| tenant_id       | 5227a52545934d1ca0ad3b3fdb163863     |
+-----------------+--------------------------------------+
ubuntu@oc-ovsvm:~$ neutron subnet-create test 30.0.0.0/24 --allocation-pool start=30.0.0.2,end=30.0.0.2 --allocation-pool start=30.0.0.5,end=30.0.0.5
Created a new subnet:
+-------------------+------------------------------------------+
| Field             | Value                                    |
+-------------------+------------------------------------------+
| allocation_pools  | {"start": "30.0.0.2", "end": "30.0.0.2"} |
|                   | {"start": "30.0.0.5", "end": "30.0.0.5"} |
| cidr              | 30.0.0.0/24                              |
| dns_nameservers   |                                          |
| enable_dhcp       | True                                     |
| gateway_ip        | 30.0.0.1                                 |
| host_routes       |                                          |
| id                | 41b9e7db-3be0-4fa0-954c-6693119ba6ce     |
| ip_version        | 4                                        |
| ipv6_address_mode |                                          |
| ipv6_ra_mode      |                                          |
| name              |                                          |
| network_id        | 4151b7e5-7fdd-4975-a5f1-b45ee8a0ae73     |
| tenant_id         | 5227a52545934d1ca0ad3b3fdb163863         |
+-------------------+------------------------------------------+
ubuntu@oc-ovsvm:~$ 
ubuntu@oc-ovsvm:~$ 
ubuntu@oc-ovsvm:~$ neutron port-create test
Created a new port:
+-----------------------+---------------------------------------------------------------------------------+
| Field                 | Value                                                                           |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up        | True                                                                            |
| allowed_address_pairs |                                                                                 |
| binding:vnic_type     | normal                                                                          |
| device_id             |                                                                                 |
| device_owner          |                                                                                 |
| fixed_ips             | {"subnet_id": "41b9e7db-3be0-4fa0-954c-6693119ba6ce", "ip_address": "30.0.0.2"} |
| id                    | dbb80785-47ae-4a79-89a8-657c667e9bd2                                            |
| mac_address           | fa:16:3e:27:77:6b                                                               |
| name                  |                                                                                 |
| network_id            | 4151b7e5-7fdd-4975-a5f1-b45ee8a0ae73                                            |
| security_groups       | ac026f4e-8b28-4523-88dd-4191c2420aae                                            |
| status                | DOWN                                                                            |
| tenant_id             | 5227a52545934d1ca0ad3b3fdb163863                                                |
+-----------------------+---------------------------------------------------------------------------------+
ubuntu@oc-ovsvm:~$ neutron port-create test
No more IP addresses available on network 4151b7e5-7fdd-4975-a5f1-b45ee8a0ae73. (HTTP 409) (Request-ID: req-23d944f7-1dfd-4c48-add7-7cb4e6cd4905)
ubuntu@oc-ovsvm:~$ neutron port-list
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                       |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
| 88160ad8-27fc-47ac-b225-3e7947f96b98 |      | fa:16:3e:95:16:6b | {"subnet_id": "41b9e7db-3be0-4fa0-954c-6693119ba6ce", "ip_address": "30.0.0.5"} |
| dbb80785-47ae-4a79-89a8-657c667e9bd2 |      | fa:16:3e:27:77:6b | {"subnet_id": "41b9e7db-3be0-4fa0-954c-6693119ba6ce", "ip_address": "30.0.0.2"} |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+

** Affects: neutron
     Importance: Undecided
     Assignee: Numan Siddique (numansiddique)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Numan Siddique (numansiddique)

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

Title:
  neutron port-create returning "No more IP addresses available on
  network" error when the subnet has two allocation pools with same
  start and end ipsNo more IP addresses available on network

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  neutron port-create returning "No more IP addresses available on network" error when the subnet has two allocation pools with same start and end ipsNo more IP addresses available on network.
  On running 'neutron port-list' the port is listed.

  
   neutron net-create test
  Created a new network:
  +-----------------+--------------------------------------+
  | Field           | Value                                |
  +-----------------+--------------------------------------+
  | admin_state_up  | True                                 |
  | id              | 4151b7e5-7fdd-4975-a5f1-b45ee8a0ae73 |
  | name            | test                                 |
  | router:external | False                                |
  | shared          | False                                |
  | status          | ACTIVE                               |
  | subnets         |                                      |
  | tenant_id       | 5227a52545934d1ca0ad3b3fdb163863     |
  +-----------------+--------------------------------------+
  ubuntu@oc-ovsvm:~$ neutron subnet-create test 30.0.0.0/24 --allocation-pool start=30.0.0.2,end=30.0.0.2 --allocation-pool start=30.0.0.5,end=30.0.0.5
  Created a new subnet:
  +-------------------+------------------------------------------+
  | Field             | Value                                    |
  +-------------------+------------------------------------------+
  | allocation_pools  | {"start": "30.0.0.2", "end": "30.0.0.2"} |
  |                   | {"start": "30.0.0.5", "end": "30.0.0.5"} |
  | cidr              | 30.0.0.0/24                              |
  | dns_nameservers   |                                          |
  | enable_dhcp       | True                                     |
  | gateway_ip        | 30.0.0.1                                 |
  | host_routes       |                                          |
  | id                | 41b9e7db-3be0-4fa0-954c-6693119ba6ce     |
  | ip_version        | 4                                        |
  | ipv6_address_mode |                                          |
  | ipv6_ra_mode      |                                          |
  | name              |                                          |
  | network_id        | 4151b7e5-7fdd-4975-a5f1-b45ee8a0ae73     |
  | tenant_id         | 5227a52545934d1ca0ad3b3fdb163863         |
  +-------------------+------------------------------------------+
  ubuntu@oc-ovsvm:~$ 
  ubuntu@oc-ovsvm:~$ 
  ubuntu@oc-ovsvm:~$ neutron port-create test
  Created a new port:
  +-----------------------+---------------------------------------------------------------------------------+
  | Field                 | Value                                                                           |
  +-----------------------+---------------------------------------------------------------------------------+
  | admin_state_up        | True                                                                            |
  | allowed_address_pairs |                                                                                 |
  | binding:vnic_type     | normal                                                                          |
  | device_id             |                                                                                 |
  | device_owner          |                                                                                 |
  | fixed_ips             | {"subnet_id": "41b9e7db-3be0-4fa0-954c-6693119ba6ce", "ip_address": "30.0.0.2"} |
  | id                    | dbb80785-47ae-4a79-89a8-657c667e9bd2                                            |
  | mac_address           | fa:16:3e:27:77:6b                                                               |
  | name                  |                                                                                 |
  | network_id            | 4151b7e5-7fdd-4975-a5f1-b45ee8a0ae73                                            |
  | security_groups       | ac026f4e-8b28-4523-88dd-4191c2420aae                                            |
  | status                | DOWN                                                                            |
  | tenant_id             | 5227a52545934d1ca0ad3b3fdb163863                                                |
  +-----------------------+---------------------------------------------------------------------------------+
  ubuntu@oc-ovsvm:~$ neutron port-create test
  No more IP addresses available on network 4151b7e5-7fdd-4975-a5f1-b45ee8a0ae73. (HTTP 409) (Request-ID: req-23d944f7-1dfd-4c48-add7-7cb4e6cd4905)
  ubuntu@oc-ovsvm:~$ neutron port-list
  +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
  | id                                   | name | mac_address       | fixed_ips                                                                       |
  +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
  | 88160ad8-27fc-47ac-b225-3e7947f96b98 |      | fa:16:3e:95:16:6b | {"subnet_id": "41b9e7db-3be0-4fa0-954c-6693119ba6ce", "ip_address": "30.0.0.5"} |
  | dbb80785-47ae-4a79-89a8-657c667e9bd2 |      | fa:16:3e:27:77:6b | {"subnet_id": "41b9e7db-3be0-4fa0-954c-6693119ba6ce", "ip_address": "30.0.0.2"} |
  +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+

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


Follow ups

References