← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1585907] Re: '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'.

 

Bug closed due to lack of activity, please feel free to reopen if
needed.

** Changed in: neutron
       Status: In Progress => Won't Fix

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

Title:
  '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'.

Status in neutron:
  Won't Fix

Bug description:
  In Mitaka,

  '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'.

  The experimental process is as follows:
  Field 'used_ips' of 'net-ip-availability-list' command increased by 1 when subnet added into router.
  [root@localhost devstack]# neutron net-create net_test 
  Created a new network:
  +---------------------------+--------------------------------------+
  | Field                     | Value                                |
  +---------------------------+--------------------------------------+
  | admin_state_up            | True                                 |
  | availability_zone_hints   |                                      |
  | availability_zones        |                                      |
  | created_at                | 2016-05-26T14:44:36                  |
  | description               |                                      |
  | id                        | 83dc21b4-715b-4f74-9db6-012ccf13c8ef |
  | ipv4_address_scope        |                                      |
  | ipv6_address_scope        |                                      |
  | mtu                       | 4950                                 |
  | name                      | net_test                             |
  | provider:network_type     | vxlan                                |
  | provider:physical_network |                                      |
  | provider:segmentation_id  | 1040                                 |
  | qos_policy_id             |                                      |
  | router:external           | False                                |
  | shared                    | False                                |
  | status                    | ACTIVE                               |
  | subnets                   |                                      |
  | tags                      |                                      |
  | tenant_id                 | ee4bd2aeeac74bb3ad2b094fc5292cbf     |
  | 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.1.1.6,end=105.1.1.10
  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-55e4-4cb0-8dcb-cdc7d2c83118        |
  | ip_version        | 4                                           |
  | ipv6_address_mode |                                             |
  | ipv6_ra_mode      |                                             |
  | name              |                                             |
  | network_id        | 83dc21b4-715b-4f74-9db6-012ccf13c8ef        |
  | subnetpool_id     |                                             |
  | tenant_id         | ee4bd2aeeac74bb3ad2b094fc5292cbf            |
  | updated_at        | 2016-05-26T14:46:01                         |
  +-------------------+---------------------------------------------+
  [root@localhost devstack]# ip netns |grep 83dc21b4-715b-4f74-9db6-012ccf13c8ef
  qdhcp-83dc21b4-715b-4f74-9db6-012ccf13c8ef

  [root@localhost devstack]# ip netns exec qdhcp-83dc21b4-715b-4f74-9db6-012ccf13c8ef ifconfig -a
  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
          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<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
          inet 105.1.1.6  netmask 255.255.255.0  broadcast 105.1.1.255
          inet6 fe80::f816:3eff:fe22:54c8  prefixlen 64  scopeid 0x20<link>
          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-availability-list
  +--------------------------------------+-------------------+-----------+----------+
  | network_id                           | network_name      | total_ips | used_ips |
  +--------------------------------------+-------------------+-----------+----------+ |
  | 83dc21b4-715b-4f74-9db6-012ccf13c8ef | net_test          |         5 |        1 | |
  +--------------------------------------+-------------------+-----------+----------+

  [root@localhost devstack]# neutron router-interface-add router_az_01 subnet=63aa67d0-55e4-4cb0-8dcb-cdc7d2c83118
  Added interface cce9d5dd-91ae-4c42-acf7-bd8b654717c0 to router router_az_01.

  [root@localhost devstack]# neutron net-ip-availability-list
  +--------------------------------------+-------------------+-----------+----------+
  | network_id                           | network_name      | total_ips | used_ips |
  +--------------------------------------+-------------------+-----------+----------+ |
  | 83dc21b4-715b-4f74-9db6-012ccf13c8ef | net_test          |         5 |        2 ||
  +--------------------------------------+-------------------+-----------+----------+

  [root@localhost devstack]# neutron router-show router_az_01
  +-------------------------+--------------------------------------+
  | Field                   | Value                                |
  +-------------------------+--------------------------------------+
  | admin_state_up          | True                                 |
  | availability_zone_hints |                                      |
  | availability_zones      | zone-2                               |
  | description             |                                      |
  | distributed             | False                                |
  | external_gateway_info   |                                      |
  | ha                      | False                                |
  | id                      | c42405f9-7599-4a4f-a91d-62651ba04519 |
  | name                    | router_az_01                         |
  | routes                  |                                      |
  | status                  | ACTIVE                               |
  | tenant_id               | ee4bd2aeeac74bb3ad2b094fc5292cbf     |
  +-------------------------+--------------------------------------+
  [root@localhost devstack]# ip netns exec qrouter-c42405f9-7599-4a4f-a91d-62651ba04519 ifconfig -a
  qr-cce9d5dd-91: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
          inet 105.1.1.1  netmask 255.255.255.0  broadcast 105.1.1.255
          inet6 fe80::f816:3eff:fe5d:726  prefixlen 64  scopeid 0x20<link>
          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]#

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



References