Is there a limit on the number of VMs returned by "openstack server list --all-projects" ?

Albert Braden Albert.Braden at synopsys.com
Fri Dec 20 17:40:41 UTC 2019


Running Rocky with a single cell; we have VMs that do not show up in "openstack server list -all-projects"

I can see them with "openstack server show" or with "openstack server list -all-projects -host" or by sourcing the credentials for their project and then "openstack server list"

If there is a limit on the number of results, that would explain it. Is anyone else seeing this? Here's an example:

UUID: d3302d8d-3747-4665-b044-863c8d8a6855
Hostname: us01bctest-centos-57241-5
IP: 10.195.72.66
Project: vgcloud
Network: vg-network

root at us01odc-p02-ctrl1:~# source admin-openrc
root at us01odc-p02-ctrl1:~# openstack server list --all-projects|grep 10.195.72.66
root at us01odc-p02-ctrl1:~# source vg-openrc
root at us01odc-p02-ctrl1:~# openstack server list|grep 10.195.72.66
| d3302d8d-3747-4665-b044-863c8d8a6855 | us01bctest-centos-57241-5   | ACTIVE  | vg-network=10.195.72.66  | QSC-P-CentOS6.6-19P1-v4   | s1.16cx120g         |
root at us01odc-p02-ctrl1:~# source admin-openrc
root at us01odc-p02-ctrl1:~# openstack server show d3302d8d-3747-4665-b044-863c8d8a6855
+-------------------------------------+----------------------------------------------------------------------------------------------------------------+
| Field                               | Value                                                                                                          |
+-------------------------------------+----------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                                                                                         |
| OS-EXT-AZ:availability_zone         | nova                                                                                                           |
| OS-EXT-SRV-ATTR:host                | us01-p02-hv017                                                                                                 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | us01-p02-hv017.internal.synopsys.com                                                                           |
| OS-EXT-SRV-ATTR:instance_name       | instance-000002b6                                                                                              |
| OS-EXT-STS:power_state              | Running                                                                                                        |
| OS-EXT-STS:task_state               | None                                                                                                           |
| OS-EXT-STS:vm_state                 | active                                                                                                         |
| OS-SRV-USG:launched_at              | 2019-11-02T01:20:12.000000                                                                                     |
| OS-SRV-USG:terminated_at            | None                                                                                                           |
| accessIPv4                          |                                                                                                                |
| accessIPv6                          |                                                                                                                |
| addresses                           | vg-network=10.195.72.66                                                                                        |
| config_drive                        |                                                                                                                |
| created                             | 2019-11-02T01:15:45Z                                                                                           |
| flavor                              | s1.16cx120g (3cfd8fbc-55da-4c1d-a717-ed86d3a0219f)                                                             |
| hostId                              | bf015a3f08917dfc7d7b4d9e429cbe714fcdd11ab788086062fe0eab                                                       |
| id                                  | d3302d8d-3747-4665-b044-863c8d8a6855                                                                           |
| image                               | QSC-P-CentOS6.6-19P1-v4 (91497018-7b42-4448-aa2a-4c08fc9621ac)                                                 |
| key_name                            | None                                                                                                           |
| name                                | us01bctest-centos-57241-5                                                                                      |
| progress                            | 0                                                                                                              |
| project_id                          | 0b591e0864d04e6b8b6afa18a5a4a638                                                                               |
| properties                          | BU='SCE', Farm='bctest', FarmProject='bnormal', Owner='joelg', Workspace='us01bctest-centos', project='BCTest' |
| security_groups                     | name='default'                                                                                                 |
| status                              | ACTIVE                                                                                                         |
| updated                             | 2019-11-02T01:20:12Z                                                                                           |
| user_id                             | 0df75a295783f2f7c3843642f3a170f500bbeb4c69806bfd53e166b772617bf4                                               |
| volumes_attached                    |                                                                                                                |
+-------------------------------------+----------------------------------------------------------------------------------------------------------------+
root at us01odc-p02-ctrl1:~# openstack server list --all-projects --host us01-p02-hv017|grep 10.195.72.66
| d3302d8d-3747-4665-b044-863c8d8a6855 | us01bctest-centos-57241-5 | ACTIVE | vg-network=10.195.72.66 | QSC-P-CentOS6.6-19P1-v4 | s1.16cx120g |
root at us01odc-p02-ctrl1:~# openstack server list --all-projects|grep 10.195.72.66
root at us01odc-p02-ctrl1:~#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20191220/880d9ef3/attachment-0001.html>


More information about the openstack-discuss mailing list