← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1526672] Re: instance ip not updated after subnet-update and reboot

 

The allocation_pools attribute of the subnet only affects the automatic
allocation of IPs for new ports created after the pool is set.  It is
not intended to affect existing or manually created ports.

** Tags added: l3-ipam-dhcp

** Changed in: neutron
       Status: New => 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/1526672

Title:
  instance ip not updated after subnet-update and reboot

Status in neutron:
  Won't Fix

Bug description:
  [Summary]
  Instance ip is not updated after subnet-update allocation-pool, even reboot instance

  [Topo]
  devstack all-in-one node

  [Description and expect result]
  after allocation-pool update, reboot instance should re-discover ip by following dhcp rules.
  subnet-update allocation-pool should clear mapping table.

  [Reproduceable or not]
  reproduceable

  [Recreate Steps]
  1)check devstack network information:
  stack@45-5x:~/devstack$ neutron net-list
  +--------------------------------------+---------+----------------------------------------------------------+
  | id                                   | name    | subnets                                                  |
  +--------------------------------------+---------+----------------------------------------------------------+
  | c746a5d5-fc58-4600-97bf-c4efa93f7934 | public  | 5e41b56f-fd95-46c1-a514-b918c68eb9bc                     |
  |                                      |         | d611f012-7c65-4b49-9fec-fcb7013f7fad                     |
  | 1159f483-6d87-496f-b3a3-97b8043e865d | private | 99ad1ec2-7424-4d05-9969-8fda3249e932 fdab:b2d9:97c5::/64 |
  |                                      |         | 8e537f68-fa87-4a2a-8536-8a3c3417fd2e 10.0.0.0/24         |
  | 7ba41081-66c1-422e-9aee-861c2e664473 | ext-net | 8295a105-c11e-4e41-91d0-da5fe9d60c33                     |
  +--------------------------------------+---------+----------------------------------------------------------+

  
  2)use private to provide  our instance ip, boot instance with this network. instance ip is 10.0.0.3
  stack@45-5x:~/devstack$ nova boot --flavor 1 --image cirros-0.3.4-x86_64-uec --availability-zone nova  --nic net-id=1159f483-6d87-496f-b3a3-97b8043e865d  linwwu
  stack@45-5x:~/devstack$ nova list
  +--------------------------------------+--------+--------+------------+-------------+--------------------------------------------------------+
  | ID                                   | Name   | Status | Task State | Power State | Networks                                               |
  +--------------------------------------+--------+--------+------------+-------------+--------------------------------------------------------+
  | d87fc01f-3ea4-4f14-90f9-f83cd3625e8c | linwwu | ACTIVE | -          | Running     | private=fdab:b2d9:97c5:0:f816:3eff:fefd:dc05, 10.0.0.3 |
  +--------------------------------------+--------+--------+------------+-------------+--------------------------------------------------------+

  
  3)check private network subnet information. ip starts from 10.0.0.2-30 and gateway is 10.0.0.1
  stack@45-5x:~/devstack$ neutron subnet-show  8e537f68-fa87-4a2a-8536-8a3c3417fd2e
  +-------------------+-------------------------------------------+
  | Field             | Value                                     |
  +-------------------+-------------------------------------------+
  | allocation_pools  | {"start": "10.0.0.2", "end": "10.0.0.30"} |
  | cidr              | 10.0.0.0/24                               |
  | dns_nameservers   | 8.8.8.8                                   |
  | enable_dhcp       | True                                      |
  | gateway_ip        | 10.0.0.1                                  |
  | host_routes       |                                           |
  | id                | 8e537f68-fa87-4a2a-8536-8a3c3417fd2e      |
  | ip_version        | 4                                         |
  | ipv6_address_mode |                                           |
  | ipv6_ra_mode      |                                           |
  | name              | private-subnet                            |
  | network_id        | 1159f483-6d87-496f-b3a3-97b8043e865d      |
  | subnetpool_id     |                                           |
  | tenant_id         | 4fe5daa4e5c544b58efdab002314f3e2          |
  +-------------------+-------------------------------------------+

  4)update subnet allocation-pool, and check subnet details. ip range changed to 10.0.0.100-110
  neutron subnet-update --allocation-pool start=10.0.0.100,end=10.0.0.110 --dns-nameserver 8.8.8.8  8e537f68-fa87-4a2a-8536-8a3c3417fd2e
  stack@45-59:~/devstack$ neutron subnet-show 8e537f68-fa87-4a2a-8536-8a3c3417fd2e
  +-------------------+----------------------------------------------+
  | Field             | Value                                        |
  +-------------------+----------------------------------------------+
  | allocation_pools  | {"start": "10.0.0.100", "end": "10.0.0.110"} |
  | cidr              | 10.0.0.0/24                                  |
  | dns_nameservers   | 8.8.8.8                                      |
  | enable_dhcp       | True                                         |
  | gateway_ip        | 10.0.0.1                                     |
  | host_routes       |                                              |
  | id                | 8e537f68-fa87-4a2a-8536-8a3c3417fd2e         |
  | ip_version        | 4                                            |
  | ipv6_address_mode |                                              |
  | ipv6_ra_mode      |                                              |
  | name              | private-subnet                               |
  | network_id        | 1159f483-6d87-496f-b3a3-97b8043e865d         |
  | subnetpool_id     |                                              |
  | tenant_id         | 4fe5daa4e5c544b58efdab002314f3e2             |
  +-------------------+----------------------------------------------+

  5)reboot our instance and wait for long time. its ip is  always not changed.
  stack@45-5x:~/devstack$ nova list
  +--------------------------------------+--------+--------+------------+-------------+--------------------------------------------------------+
  | ID                                   | Name   | Status | Task State | Power State | Networks                                               |
  +--------------------------------------+--------+--------+------------+-------------+--------------------------------------------------------+
  | d87fc01f-3ea4-4f14-90f9-f83cd3625e8c | linwwu | ACTIVE | -          | Running     | private=fdab:b2d9:97c5:0:f816:3eff:fefd:dc05, 10.0.0.3 |
  +--------------------------------------+--------+--------+------------+-------------+--------------------------------------------------------+
  stack@45-5x:~/devstack$ nova stop linwwu
  Request to stop server linwwu has been accepted.
  stack@45-5x:~/devstack$ nova start linwwu
  Request to start server linwwu has been accepted.
  stack@45-5x:~/devstack$ nova list
  +--------------------------------------+--------+--------+------------+-------------+--------------------------------------------------------+
  | ID                                   | Name   | Status | Task State | Power State | Networks                                               |
  +--------------------------------------+--------+--------+------------+-------------+--------------------------------------------------------+
  | d87fc01f-3ea4-4f14-90f9-f83cd3625e8c | linwwu | ACTIVE | -          | Running     | private=fdab:b2d9:97c5:0:f816:3eff:fefd:dc05, 10.0.0.3 |
  +--------------------------------------+--------+--------+------------+-------------+--------------------------------------------------------+

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


References