yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #51646
[Bug 1586881] [NEW] If the subnet of a network is dhcp disabled, Executing 'net-ip-availability-list' returns None, Even if the subnets configures address pool
Public bug reported:
In MitaKa,
If the subnet of a network is dhcp disabled,Executing 'net-ip-availability-list' returns None,
Even if the subnets configures address pool
Test process is as follows:
1)Created a network with a subnet,the subnet is dhcp disabled
[root@localhost devstack]# neutron net-create 111
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2016-05-30T10:29:29 |
| description | |
| id | 28588880-4710-4083-87f6-e781cd3bf132 |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 4950 |
| name | 111 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1060 |
| qos_policy_id | |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
| updated_at | 2016-05-30T10:29:29 |
| vlan_transparent | False |
+---------------------------+--------------------------------------+
[root@localhost devstack]# neutron subnet-create 111 1.1.1.0/24 --allocation_pool start=1.1.1.11,end=1.1.1.20 --disable-dhcp
Created a new subnet:
+-------------------+------------------------------------------+
| Field | Value |
+-------------------+------------------------------------------+
| allocation_pools | {"start": "1.1.1.11", "end": "1.1.1.20"} |
| cidr | 1.1.1.0/24 |
| created_at | 2016-05-30T10:30:01 |
| description | |
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | 1.1.1.1 |
| host_routes | |
| id | a2973dec-3009-4f91-8540-54ab02ea55ca |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | |
| network_id | 28588880-4710-4083-87f6-e781cd3bf132 |
| subnetpool_id | |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
| updated_at | 2016-05-30T10:30:01 |
+-------------------+------------------------------------------+
[root@localhost devstack]# neutron net-show 111
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | zone-1 |
| created_at | 2016-05-30T10:29:29 |
| description | |
| id | 28588880-4710-4083-87f6-e781cd3bf132 |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 4950 |
| name | 111 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1060 |
| qos_policy_id | |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | a2973dec-3009-4f91-8540-54ab02ea55ca |
| tags | |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
| updated_at | 2016-05-30T10:29:29 |
| vlan_transparent | False |
+---------------------------+--------------------------------------+
[root@localhost devstack]# neutron port-list |grep
a2973dec-3009-4f91-8540-54ab02ea55ca
2) Executing command 'net-ip-availability-list' with 'network-id'
specified,returned none
neutron net-ip-availability-list --network-id
28588880-4710-4083-87f6-e781cd3bf132
[root@localhost devstack]# neutron port-create 111 --name 111_port
Created a new port:
+-----------------------+---------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| created_at | 2016-05-30T10:31:31 |
| description | |
| device_id | |
| device_owner | |
| dns_name | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "a2973dec-3009-4f91-8540-54ab02ea55ca", "ip_address": "1.1.1.11"} |
| id | 6b97e6a4-f92c-411c-9af2-f25e7e6cea03 |
| mac_address | fa:16:3e:1c:08:fc |
| name | 111_port |
| network_id | 28588880-4710-4083-87f6-e781cd3bf132 |
| qos_policy_id | |
| security_groups | caa73180-408d-40d0-a603-d19afbfa8a1c |
| status | DOWN |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
| updated_at | 2016-05-30T10:31:31 |
+-----------------------+---------------------------------------------------------------------------------+
3)Created a port for the network
[root@localhost devstack]# neutron port-list |grep a2973dec-3009-4f91-8540-54ab02ea55ca
| 6b97e6a4-f92c-411c-9af2-f25e7e6cea03 | 111_port | fa:16:3e:1c:08:fc | {"subnet_id": "a2973dec-3009-4f91-8540-54ab02ea55ca", "ip_address": "1.1.1.11"} |
[root@localhost devstack]#
4)Executing command 'net-ip-availability-list' with 'network-id'
specified,returned the network's ip availability list
neutron net-ip-availability-list --network-id 28588880-4710-4083-87f6-e781cd3bf132
+--------------------------------------+--------------+-----------+----------+
| network_id | network_name | total_ips | used_ips |
+--------------------------------------+--------------+-----------+----------+
| 28588880-4710-4083-87f6-e781cd3bf132 | 111 | 10 | 1 |
+--------------------------------------+--------------+-----------+----------+
[root@localhost devstack]#
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1586881
Title:
If the subnet of a network is dhcp disabled,Executing 'net-ip-
availability-list' returns None, Even if the subnets configures
address pool
Status in neutron:
New
Bug description:
In MitaKa,
If the subnet of a network is dhcp disabled,Executing 'net-ip-availability-list' returns None,
Even if the subnets configures address pool
Test process is as follows:
1)Created a network with a subnet,the subnet is dhcp disabled
[root@localhost devstack]# neutron net-create 111
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2016-05-30T10:29:29 |
| description | |
| id | 28588880-4710-4083-87f6-e781cd3bf132 |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 4950 |
| name | 111 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1060 |
| qos_policy_id | |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
| updated_at | 2016-05-30T10:29:29 |
| vlan_transparent | False |
+---------------------------+--------------------------------------+
[root@localhost devstack]# neutron subnet-create 111 1.1.1.0/24 --allocation_pool start=1.1.1.11,end=1.1.1.20 --disable-dhcp
Created a new subnet:
+-------------------+------------------------------------------+
| Field | Value |
+-------------------+------------------------------------------+
| allocation_pools | {"start": "1.1.1.11", "end": "1.1.1.20"} |
| cidr | 1.1.1.0/24 |
| created_at | 2016-05-30T10:30:01 |
| description | |
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | 1.1.1.1 |
| host_routes | |
| id | a2973dec-3009-4f91-8540-54ab02ea55ca |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | |
| network_id | 28588880-4710-4083-87f6-e781cd3bf132 |
| subnetpool_id | |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
| updated_at | 2016-05-30T10:30:01 |
+-------------------+------------------------------------------+
[root@localhost devstack]# neutron net-show 111
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | zone-1 |
| created_at | 2016-05-30T10:29:29 |
| description | |
| id | 28588880-4710-4083-87f6-e781cd3bf132 |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 4950 |
| name | 111 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1060 |
| qos_policy_id | |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | a2973dec-3009-4f91-8540-54ab02ea55ca |
| tags | |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
| updated_at | 2016-05-30T10:29:29 |
| vlan_transparent | False |
+---------------------------+--------------------------------------+
[root@localhost devstack]# neutron port-list |grep
a2973dec-3009-4f91-8540-54ab02ea55ca
2) Executing command 'net-ip-availability-list' with 'network-id'
specified,returned none
neutron net-ip-availability-list --network-id
28588880-4710-4083-87f6-e781cd3bf132
[root@localhost devstack]# neutron port-create 111 --name 111_port
Created a new port:
+-----------------------+---------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| created_at | 2016-05-30T10:31:31 |
| description | |
| device_id | |
| device_owner | |
| dns_name | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "a2973dec-3009-4f91-8540-54ab02ea55ca", "ip_address": "1.1.1.11"} |
| id | 6b97e6a4-f92c-411c-9af2-f25e7e6cea03 |
| mac_address | fa:16:3e:1c:08:fc |
| name | 111_port |
| network_id | 28588880-4710-4083-87f6-e781cd3bf132 |
| qos_policy_id | |
| security_groups | caa73180-408d-40d0-a603-d19afbfa8a1c |
| status | DOWN |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
| updated_at | 2016-05-30T10:31:31 |
+-----------------------+---------------------------------------------------------------------------------+
3)Created a port for the network
[root@localhost devstack]# neutron port-list |grep a2973dec-3009-4f91-8540-54ab02ea55ca
| 6b97e6a4-f92c-411c-9af2-f25e7e6cea03 | 111_port | fa:16:3e:1c:08:fc | {"subnet_id": "a2973dec-3009-4f91-8540-54ab02ea55ca", "ip_address": "1.1.1.11"} |
[root@localhost devstack]#
4)Executing command 'net-ip-availability-list' with 'network-id'
specified,returned the network's ip availability list
neutron net-ip-availability-list --network-id 28588880-4710-4083-87f6-e781cd3bf132
+--------------------------------------+--------------+-----------+----------+
| network_id | network_name | total_ips | used_ips |
+--------------------------------------+--------------+-----------+----------+
| 28588880-4710-4083-87f6-e781cd3bf132 | 111 | 10 | 1 |
+--------------------------------------+--------------+-----------+----------+
[root@localhost devstack]#
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1586881/+subscriptions
Follow ups