← Back to team overview

registry team mailing list archive

[Bug 638449] [NEW] Cannot update the flat network IP address list

 

Public bug reported:

The network node code in trunk that handles adding the flat network ips
to the redis db does not allow for updates once the ip list has been
created initially.

nova/network/service.py:167
  
        if not redis.exists('ips') and not len(redis.keys('instances:*')):
            for fixed_ip in FLAGS.flat_network_ips:
		redis.sadd('ips', fixed_ip)


I understand that if the ip list already exists in redis it should not necessarily be appended to.. but the whole set should be able to be deleted and updated if the ip list provided by the configuration does not match the one in redis.

To reproduce:

1) Create a list of ips for a flat network:

--flat_network_ips=192.168.10.220,192.168.10.221,...

2) Start network node with this flag

3) Verify ips=... set creation in redis.

<some time later, presumably a few seconds is fine>

3) stop network node, and create a new ip list:

--flat_network_ips=10.1.1.1,10.1.1.2,....

4) restart network node

5) Verify that ips=... set has not changed.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
Cannot update the flat network IP address list
https://bugs.launchpad.net/bugs/638449
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



Follow ups

References