nova list no IP address info for some instances.
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-
[root@cloud-01 ~]# nova list --all |grep app-server
| d1d09a01-
| 37afa02b-
[root@cloud-01 ~]# nova interface-list d1d09a01-
+------
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------
| ACTIVE | 5b706f6b-
+------
nova --version
7.1.1
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-a3f6ea4cd9 f7), to be sure. And check the logs for errors/warnings related to instance d1d09a01- 7ea6-4c28- af67-a3f6ea4cd9 f7 and something about the network info cache.