[openstack-dev] nova api list servers by host

Gurjar, Unmesh Unmesh.Gurjar at nttdata.com
Tue Sep 25 06:31:16 UTC 2012


I checked the Nova CLI, it has a 'host'  filter. I just tested this and looks like Nova API is ignoring this parameter ('host'). I will file a bug for this.

Nova CLI command: nova list --host <host-name>
API URL that gets hit: GET http://<nova-api-ip>:8774/v2/<tenantID>/servers/detail?host=<host-name>

Thanks & Regards,
Unmesh Gurjar | Lead Engineer | NTT DATA Global Technology Services Private Limited | w. +91.20.6604.1500 x 379 | m. +91.982.324.7631 | unmesh.gurjar at nttdata.com | Learn more at nttdata.com/americas

-----Original Message-----
From: John Tran [mailto:njhtran at gmail.com] 
Sent: Tuesday, September 25, 2012 11:14 AM
To: OpenStack Development Mailing List
Subject: [openstack-dev] nova api list servers by host

Querying the nova api directly, is there a way to filter for "all servers on <hostname>"?  AFAIK it's only possible to parse it (on the
client end) after retrieving a list of all servers.   Please let me
know if there's a way to do it on the nova-api server side.

OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org

Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data.  If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding

More information about the OpenStack-dev mailing list