Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Neutron takes multiple IPs from allocation pool?

I am testing Liberty on Ubuntu 14.04 using limited pool of IP addresses.

I created public network with this command:

neutron subnet-create public 10.0.0.0/24 --name public   --allocation-pool start=10.0.0.131,end=10.10.10.132   --gateway 10.0.0.1

I expected that the virtual router would take the first free IP address and second adress in the pool would be left for an instance. But for some reason virtual router took the IP of 10.10.10.132. The lower IP was taken by something else.

When checking the Neutron ports I find this port occupied by following:

user@liberty:~$ neutron port-show <port-id>
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                           |
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                            |
| allowed_address_pairs |                                                                                                                 |
| binding:host_id       | liberty                                                                                                         |
| binding:profile       | {}                                                                                                              |
| binding:vif_details   | {"port_filter": true}                                                                                           |
| binding:vif_type      | bridge                                                                                                          |
| binding:vnic_type     | normal                                                                                                          |
| device_id             | dhcpa01befa0-d7d2-5f17-8b2b-284d077d8452-b3bae97e-7461-4f9c-9484-700d0e1d8f79                                   |
| device_owner          | network:dhcp                                                                                                    |
| dns_assignment        | {"hostname": "host-10-0-0-131", "ip_address": "10.0.0.131", "fqdn": "host-10-0-0-131.openstacklocal."} |
| dns_name              |                                                                                                                 |
| extra_dhcp_opts       |                                                                                                                 |
| fixed_ips             | {"subnet_id": "d9eb7061-29d6-4353-8732-ac1c9866b3ee", "ip_address": "10.0.0.131"}                            |
| id                    | bc541362-fb30-40d3-8da8-b1c126de5309                                                                            |
| mac_address           | fa:16:3f:d4:11:6d                                                                                               |
| name                  |                                                                                                                 |
| network_id            | b3bae97e-7461-4f9c-9484-700d0e1d8f79                                                                            |
| port_security_enabled | False                                                                                                           |
| security_groups       |                                                                                                                 |
| status                | ACTIVE                                                                                                          |
| tenant_id             | f0a63ad702da4880a991fadea2cacca6                                                                                |
+-----------------------+-----------------------------------------------------------------------------------------------------------------+

Why is this IP owned by network:dhcp? Is there a way avoid wasting second IP from allocation pool like this?

In the earlier versions of Openstack I have used the virtual router IP was only one that was taken from the allocation pool.

Neutron takes multiple IPs from allocation pool?

I am testing Liberty on Ubuntu 14.04 using limited pool of IP addresses.

I created public network with this command:

neutron subnet-create public 10.0.0.0/24 --name public   --allocation-pool start=10.0.0.131,end=10.10.10.132   --gateway 10.0.0.1

I expected that the virtual router would take the first free IP address and second adress in the pool would be left for an instance. But for some reason virtual router took the IP of 10.10.10.132. The lower IP was taken by something else.

When checking the Neutron ports I find this port occupied by following:

user@liberty:~$ neutron port-show <port-id>
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                           |
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                            |
| allowed_address_pairs |                                                                                                                 |
| binding:host_id       | liberty                                                                                                         |
| binding:profile       | {}                                                                                                              |
| binding:vif_details   | {"port_filter": true}                                                                                           |
| binding:vif_type      | bridge                                                                                                          |
| binding:vnic_type     | normal                                                                                                          |
| device_id             | dhcpa01befa0-d7d2-5f17-8b2b-284d077d8452-b3bae97e-7461-4f9c-9484-700d0e1d8f79                                   |
| device_owner          | network:dhcp                                                                                                    |
| dns_assignment        | {"hostname": "host-10-0-0-131", "ip_address": "10.0.0.131", "fqdn": "host-10-0-0-131.openstacklocal."} |
| dns_name              |                                                                                                                 |
| extra_dhcp_opts       |                                                                                                                 |
| fixed_ips             | {"subnet_id": "d9eb7061-29d6-4353-8732-ac1c9866b3ee", "ip_address": "10.0.0.131"}                            |
| id                    | bc541362-fb30-40d3-8da8-b1c126de5309                                                                            |
| mac_address           | fa:16:3f:d4:11:6d                                                                                               |
| name                  |                                                                                                                 |
| network_id            | b3bae97e-7461-4f9c-9484-700d0e1d8f79                                                                            |
| port_security_enabled | False                                                                                                           |
| security_groups       |                                                                                                                 |
| status                | ACTIVE                                                                                                          |
| tenant_id             | f0a63ad702da4880a991fadea2cacca6                                                                                |
+-----------------------+-----------------------------------------------------------------------------------------------------------------+

At this point I don't have any instances using floating IPs.

Why is this IP owned by network:dhcp? Is there a way avoid wasting second IP from allocation pool like this?

In the earlier versions of Openstack I have used the virtual router IP was only one that was taken from the allocation pool.

Neutron takes multiple IPs from allocation pool?

I am testing Liberty on Ubuntu 14.04 using limited pool of IP addresses.

I created public network with this command:

neutron subnet-create public 10.0.0.0/24 --name public   --allocation-pool start=10.0.0.131,end=10.10.10.132   --gateway 10.0.0.1

I expected that the virtual router would take the first free IP address and second adress in the pool would be left for an instance. But for some reason virtual router took the IP of 10.10.10.132. The lower IP was taken by something else.

When checking the Neutron ports I find this port occupied by following:

user@liberty:~$ neutron port-show <port-id>
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                           |
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                            |
| allowed_address_pairs |                                                                                                                 |
| binding:host_id       | liberty                                                                                                         |
| binding:profile       | {}                                                                                                              |
| binding:vif_details   | {"port_filter": true}                                                                                           |
| binding:vif_type      | bridge                                                                                                          |
| binding:vnic_type     | normal                                                                                                          |
| device_id             | dhcpa01befa0-d7d2-5f17-8b2b-284d077d8452-b3bae97e-7461-4f9c-9484-700d0e1d8f79                                   |
| device_owner          | network:dhcp                                                                                                    |
| dns_assignment        | {"hostname": "host-10-0-0-131", "ip_address": "10.0.0.131", "fqdn": "host-10-0-0-131.openstacklocal."} |
| dns_name              |                                                                                                                 |
| extra_dhcp_opts       |                                                                                                                 |
| fixed_ips             | {"subnet_id": "d9eb7061-29d6-4353-8732-ac1c9866b3ee", "ip_address": "10.0.0.131"}                            |
| id                    | bc541362-fb30-40d3-8da8-b1c126de5309                                                                            |
| mac_address           | fa:16:3f:d4:11:6d                                                                                               |
| name                  |                                                                                                                 |
| network_id            | b3bae97e-7461-4f9c-9484-700d0e1d8f79                                                                            |
| port_security_enabled | False                                                                                                           |
| security_groups       |                                                                                                                 |
| status                | ACTIVE                                                                                                          |
| tenant_id             | f0a63ad702da4880a991fadea2cacca6                                                                                |
+-----------------------+-----------------------------------------------------------------------------------------------------------------+

At this point I don't have any instances using floating IPs.

Why is this IP owned by network:dhcp? Is there a way avoid wasting second IP from allocation pool like this?

In the earlier versions of Openstack I have used the virtual router IP was only one that was taken from the allocation pool.

EDIT: The private 10.0.0.x addresses are just example. In reality those would be public addresses.

Neutron takes multiple IPs from allocation pool?

I am testing Liberty on Ubuntu 14.04 using limited pool of IP addresses.

I created public network with this command:

neutron subnet-create public 10.0.0.0/24 --name public   --allocation-pool start=10.0.0.131,end=10.10.10.132 start=10.0.0.131,end=10.0.0.132   --gateway 10.0.0.1

I expected that the virtual router would take the first free IP address and second adress in the pool would be left for an instance. But for some reason virtual router took the IP of 10.10.10.132. The lower IP was taken by something else.

When checking the Neutron ports I find this port occupied by following:

user@liberty:~$ neutron port-show <port-id>
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                           |
+-----------------------+-----------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                            |
| allowed_address_pairs |                                                                                                                 |
| binding:host_id       | liberty                                                                                                         |
| binding:profile       | {}                                                                                                              |
| binding:vif_details   | {"port_filter": true}                                                                                           |
| binding:vif_type      | bridge                                                                                                          |
| binding:vnic_type     | normal                                                                                                          |
| device_id             | dhcpa01befa0-d7d2-5f17-8b2b-284d077d8452-b3bae97e-7461-4f9c-9484-700d0e1d8f79                                   |
| device_owner          | network:dhcp                                                                                                    |
| dns_assignment        | {"hostname": "host-10-0-0-131", "ip_address": "10.0.0.131", "fqdn": "host-10-0-0-131.openstacklocal."} |
| dns_name              |                                                                                                                 |
| extra_dhcp_opts       |                                                                                                                 |
| fixed_ips             | {"subnet_id": "d9eb7061-29d6-4353-8732-ac1c9866b3ee", "ip_address": "10.0.0.131"}                            |
| id                    | bc541362-fb30-40d3-8da8-b1c126de5309                                                                            |
| mac_address           | fa:16:3f:d4:11:6d                                                                                               |
| name                  |                                                                                                                 |
| network_id            | b3bae97e-7461-4f9c-9484-700d0e1d8f79                                                                            |
| port_security_enabled | False                                                                                                           |
| security_groups       |                                                                                                                 |
| status                | ACTIVE                                                                                                          |
| tenant_id             | f0a63ad702da4880a991fadea2cacca6                                                                                |
+-----------------------+-----------------------------------------------------------------------------------------------------------------+

At this point I don't have any instances using floating IPs.

Why is this IP owned by network:dhcp? Is there a way avoid wasting second IP from allocation pool like this?

In the earlier versions of Openstack I have used the virtual router IP was only one that was taken from the allocation pool.

EDIT: The private 10.0.0.x addresses are just example. In reality those would be public addresses.

EDIT2: Fixed typing erros in IP addresses.