'used_ips' field of 'net-ip-availability-list' command increased by 1 when subnet added into router,In fact, Before subnet added into the router ,'total_ips' of network does not contain 'gateway_ip'.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
In Mitaka,
'used_ips' field of 'net-ip-
The experimental process is as follows:
Field 'used_ips' of 'net-ip-
[root@localhost devstack]# neutron net-create net_test
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| availability_
| availability_zones | |
| created_at | 2016-05-26T14:44:36 |
| description | |
| id | 83dc21b4-
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 4950 |
| name | net_test |
| provider:
| provider:
| provider:
| qos_policy_id | |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| tenant_id | ee4bd2aeeac74bb
| updated_at | 2016-05-26T14:44:36 |
| vlan_transparent | False |
+------
[root@localhost devstack]# neutron subnet-create net_test 105.1.1.0/24 --allocation_pool start=105.
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "105.1.1.6", "end": "105.1.1.10"} |
| cidr | 105.1.1.0/24 |
| created_at | 2016-05-26T14:46:01 |
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 105.1.1.1 |
| host_routes | |
| id | 63aa67d0-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | |
| network_id | 83dc21b4-
| subnetpool_id | |
| tenant_id | ee4bd2aeeac74bb
| updated_at | 2016-05-26T14:46:01 |
+------
[root@localhost devstack]# ip netns |grep 83dc21b4-
qdhcp-83dc21b4-
[root@localhost devstack]# ip netns exec qdhcp-83dc21b4-
lo: flags=73<
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tap99d84483-f1: flags=4163<
inet 105.1.1.6 netmask 255.255.255.0 broadcast 105.1.1.255
inet6 fe80::f816:
ether fa:16:3e:22:54:c8 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 648 (648.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@localhost devstack]# neutron net-ip-
+------
| network_id | network_name | total_ips | used_ips |
+------
| 83dc21b4-
+------
[root@localhost devstack]# neutron router-
Added interface cce9d5dd-
[root@localhost devstack]# neutron net-ip-
+------
| network_id | network_name | total_ips | used_ips |
+------
| 83dc21b4-
+------
[root@localhost devstack]# neutron router-show router_az_01
+------
| Field | Value |
+------
| admin_state_up | True |
| availability_
| availability_zones | zone-2 |
| description | |
| distributed | False |
| external_
| ha | False |
| id | c42405f9-
| name | router_az_01 |
| routes | |
| status | ACTIVE |
| tenant_id | ee4bd2aeeac74bb
+------
[root@localhost devstack]# ip netns exec qrouter-
qr-cce9d5dd-91: flags=4163<
inet 105.1.1.1 netmask 255.255.255.0 broadcast 105.1.1.255
inet6 fe80::f816:
ether fa:16:3e:5d:07:26 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 864 (864.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@localhost devstack]#
Changed in neutron: | |
assignee: | nobody → QunyingRan (ran-qunying) |
Changed in neutron: | |
assignee: | QunyingRan (ran-qunying) → Yan Songming (songmingyan) |
Changed in neutron: | |
assignee: | Yan Songming (songmingyan) → QunyingRan (ran-qunying) |
affects: | neutron → python-neutronclient |
affects: | python-neutronclient → neutron |
tags: | added: usability |
tags: | added: needs-attention |
Changed in neutron: | |
assignee: | QunyingRan (ran-qunying) → nobody |
Would you mind adding a port list showing all of the ports on the network just to be sure another one didn't sneak in there?