Deleted fixed network causes vm failure
Bug #1086464 reported by
JB
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Medium
|
Raildo Mascena de Sousa Filho |
Bug Description
Using Essex 2012.1.3
1) Created fixed ip network 192.168.7.0/24
This created an entry in both fixed_ips and networks.
2) deleted using nova-manage network delete 192.168.7.0/27
3) again created the same network
4) When I launch a VM, I am seeing "Network 1 not found " error.
In the database, nova->networks table, there is no network entry with id =1 and all the entries in fixed_ips for network id=1 are set to deleted="t".
I had to manually delete network and all the entries in fixed_ips in the database. After that I had to recreate the network. Then, it worked.
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | nobody → Raildo Mascena de Sousa Filho (raildo) |
To post a comment you must log in.
Though deleting the fixed network, sets the deleted flag in fixed_ips table to 't', lauching of VM fails because mapping cache does not get cleared. Launching throws this error. manager [req-77dd564a- 3a5a-4c5c- 8c33-5d5a8feb57 ee 7e47b6987962446 5a81e1adad43dbc d2 ccb0ab914f6e49f 2923632ce3b8104 47] [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] Instance failed to spawn manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] Traceback (most recent call last): manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] File "/usr/lib/ python2. 7/dist- packages/ nova/compute/ manager. py", line 617, in _spawn manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] self._legacy_ nw_info( network_ info), block_device_info) manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] File "/usr/lib/ python2. 7/dist- packages/ nova/exception. py", line 114, in wrapped manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] return f(*args, **kw) manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ connection. py", line 918, in spawn manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] block_device_ info=block_ device_ info) manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ connection. py", line 1527, in to_xml manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] rescue, block_device_info) manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ connection. py", line 1410, in _prepare_xml_info manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] nics.append( self.vif_ driver. plug(instance, network, mapping)) manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ vif.py" , line 100, in plug manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] return self._get_ configurations( network, mapping) manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ vif.py" , line 70, in _get_configurations manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] 'ip_address': mapping[ 'ips'][ 0]['ip' ], manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] IndexError: list index out of range manager [instance: 4a1efa1f- c526-4d25- 841c-e4d893379b 50] 3a5a-4c5c- 8c33-5d5a8feb57 ee 7e47b6987962446 5a81e1adad43dbc d2 ccb0a...
2012-12-04 15:24:58 ERROR nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 TRACE nova.compute.
2012-12-04 15:24:58 ERROR nova.utils [req-77dd564a-