nova list still shows error'ed network after interface-delete of an error'ed interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Cyril Roelandt |
Bug Description
I am using the latest quantum and nova code from github. I created a VM with three interfaces. One interface failed to be created. When I delete the interface that had a port state of "error" (50350ce9...) with `nova interface-delete` `nova list` still shows it under "Networks"
The interface that I deleted that had state active (64f1911e...) did not show up in nova list after I deleted it.
I expected nova list to only show one interface under the "Networks" section after I deleted two of the three.
(The below is probably unreadable, so I also pasted at http://
$ nova interface-list jaybuff-test
+------
| Port State | Port ID | Net ID | IP addresses | MAC Address |
+------
| ACTIVE | 64f1911e-
| ACTIVE | cd82324e-
| ERROR | 50350ce9-
+------
$ nova interface-detach jaybuff-test cd82324e-
$ nova interface-detach jaybuff-test 50350ce9-
$ nova interface-list jaybuff-test
+------
| Port State | Port ID | Net ID | IP addresses | MAC Address |
+------
| ACTIVE | 64f1911e-
+------
$ nova list
+------
| ID | Name | Status | Networks |
+------
| 199cafd5-
+------
description: | updated |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: low-hanging-fruit |
Changed in nova: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-3 → 2013.2 |
It looks like this isn't related to the fact that the port was in error state. I found this in the log on the compute node any time I run interface- {attach, delete} :
2013-07-03 00:12:23,360 (nova.network.api): ERROR api update_ instance_ cache_with_ nw_info Failed storing info cache csi/share/ csi-nova. venv/lib/ python2. 6/site- packages/ nova/network/ api.py" , line 84, in update_ instance_ cache_with_ nw_info csi/share/ csi-nova. venv/lib/ python2. 6/site- packages/ nova/db/ api.py" , line 818, in instance_ info_cache_ update info_cache_ update( context, instance_uuid, values) csi/share/ csi-nova. venv/lib/ python2. 6/site- packages/ nova/cmd/ compute. py", line 50, in __call__ DBNotAllowed( 'nova-compute' )
Traceback (most recent call last):
File "/usr/local/
cache)
File "/usr/local/
return IMPL.instance_
File "/usr/local/
raise exception.
DBNotAllowed: nova-compute