openstack server list returns an empty list
Bug #1669473 reported by
Mehdi Abaakouk
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
High
|
Matt Riedemann |
Bug Description
Hi,
The telemetry gate is broken since 2 days.
"openstack server list" returns an empty list while one instance is present.
It looks working here according the len of the response:
http://
Then heat delete one of the two instances
Then, we list the instances and got an empty list:
Cheers,
Changed in nova: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Matt Riedemann (mriedem) |
Changed in devstack: | |
assignee: | nobody → Mehdi Abaakouk (sileht) |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Won't Fix |
Changed in devstack: | |
status: | In Progress → Fix Released |
assignee: | Mehdi Abaakouk (sileht) → Matt Riedemann (mriedem) |
importance: | Undecided → High |
no longer affects: | nova |
To post a comment you must log in.
This is pretty odd. The compute API has a cache of the cell mappings and at this point we have cell0:
http:// logs.openstack. org/56/ 439156/ 2/check/ gate-telemetry- dsvm-integratio n-gnocchi- ubuntu- xenial/ d4a6c69/ logs/screen- n-api.txt. gz#_2017- 03-02_09_ 07_05_528
And at this point we have both cell0 and cell1:
http:// logs.openstack. org/56/ 439156/ 2/check/ gate-telemetry- dsvm-integratio n-gnocchi- ubuntu- xenial/ d4a6c69/ logs/screen- n-api.txt. gz#_2017- 03-02_09_ 13_54_642
But given this code:
https:/ /github. com/openstack/ nova/blob/ 68e808623e42442 482e92f0d61a666 7876f29e19/ nova/compute/ api.py# L2524
I don't see how that happens unless you restart nova-api, which I'm not seeing happen in these logs.
We see at this point that we get some instances back:
http:// logs.openstack. org/56/ 439156/ 2/check/ gate-telemetry- dsvm-integratio n-gnocchi- ubuntu- xenial/ d4a6c69/ logs/screen- n-api.txt. gz#_2017- 03-02_09_ 16_25_647
And on that first one we see we process cell0 and cell1:
2017-03-02 09:16:25.115 11780 DEBUG nova.compute.api [req-877073fc- 1f61-4cc4- 95b6-f29c6fe40e a0 admin admin] Skipping already-collected cell0 list _get_instances_ by_filters_ all_cells /opt/stack/ new/nova/ nova/compute/ api.py: 2538 1f61-4cc4- 95b6-f29c6fe40e a0 admin admin] Listing 1000 instances in cell None _get_instances_ by_filters_ all_cells /opt/stack/ new/nova/ nova/compute/ api.py: 2541
2017-03-02 09:16:25.115 11780 DEBUG nova.compute.api [req-877073fc-
But at this point we don't:
http:// logs.openstack. org/56/ 439156/ 2/check/ gate-telemetry- dsvm-integratio n-gnocchi- ubuntu- xenial/ d4a6c69/ logs/screen- n-api.txt. gz#_2017- 03-02_09_ 16_43_150
And we only process cell0:
2017-03-02 09:16:43.121 11781 DEBUG nova.compute.api [req-8fcbfa32- 2138-4e98- a1a7-b6dd4d6355 af admin admin] Skipping already-collected cell0 list _get_instances_ by_filters_ all_cells /opt/stack/ new/nova/ nova/compute/ api.py: 2538
And the instance would be in cell1 but for whatever reason we don't process that one, it's like it's not in the CELLS cache anymore but I don't see how that could happen w/o restarting nova-api.