nova list no IP address info for some instances.

Bug #1731488 reported by MarginHu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

Hi Guys:

"nova list" command output has no IP address info for some instances ,but other have it; I don't know why.

for example,there is no network info for GL-app-server-1 but GL-app-server-2 in "nova list" output , and I can query it has an interface by "nova interface-list",why?

[root@cloud-01 ~]# nova list --all |grep app-server
| d1d09a01-7ea6-4c28-af67-a3f6ea4cd9f7 | GL-app-server-1 | b7b2911d635c4657b5bf875b99e0ca14 | ACTIVE | - | Running | |
| 37afa02b-eed9-4c71-8246-250463a5a9c6 | GL-app-server-2 | b7b2911d635c4657b5bf875b99e0ca14 | ACTIVE | - | Running | ex-eit-test=11.225.11.16 |

[root@cloud-01 ~]# nova interface-list d1d09a01-7ea6-4c28-af67-a3f6ea4cd9f7
+------------+--------------------------------------+--------------------------------------+--------------+-------------------+
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------------+--------------------------------------+--------------------------------------+--------------+-------------------+
| ACTIVE | 5b706f6b-6c52-49f9-9c56-13ff30b61d3c | bf358074-4e27-4b97-8122-c64d8a3ac665 | 11.225.11.13 | fa:16:3e:1f:b7:0b |
+------------+--------------------------------------+--------------------------------------+--------------+-------------------+

nova --version
7.1.1

Revision history for this message
Matt Riedemann (mriedem) wrote :

Which server release are you on? nova --version is the client release.

What does a 'nova show' look like between a server with and without the IP address information in the 'nova list' output?

My guess is that nova list is pulling information out of the nova.instance_info_caches table and the interface-list command is pulling port information directly from neutron, and the instance_info_caches is out of sync with neutron. You could check the nova database for a given instance (like d1d09a01-7ea6-4c28-af67-a3f6ea4cd9f7), to be sure. And check the logs for errors/warnings related to instance d1d09a01-7ea6-4c28-af67-a3f6ea4cd9f7 and something about the network info cache.

Changed in nova:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.