Server list API does not show scheduled servers that are not assigned to any cell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
After merge of commit [1] command "nova list --all-" started returning list of servers that are assigned to some cell only. Revert of this change makes API return ALL servers including scheduled ones without assigned cells. In case server failed on scheduling step and hasn't been assigned to any cell, then we will never see it using "list servers" API.
But, "list" operation should always show ALL servers.
Steps to reproduce:
1) install latest nova that contains commit [1], not configuring cell service and not creating default cell.
2) create VM
3) run any of following commands:
$ nova list --all-
$ openstack server list --all
$ openstack server show %name-of-server%
$ nova show %name-of-server%
Expected: we see data of server we created on second step.
Actual: our server is absent in "list" command results or "NotFound" error on "show" command using "name" of server.
There can be other approach for reproducing it, but we need to use "pdb" before step where we assign cell to server.
description: | updated |
description: | updated |
Changed in nova: | |
status: | New → Invalid |
Changed in nova: | |
status: | Incomplete → New |
description: | updated |
I'm not able to reproduce the bug. It works fine. I installed latest nova code, created vm and able to list using nova list.