For nova admins, an api command is needed which returns instance information for a specified host.
Administration and support of nova sometimes requires information about all instances running on a specified host. This is a proposal to add an api to return project, instance name, instance id, created_at and vm state for all instances running on a specified compute node. I currently have this implemented for our own use. I would like to push this upstream for general use. Other instance related information could also be added to this api if there are suggestions.
Whiteboard
Isn't this possible already by specifying host filter and the list of fields to display?
Ex.
nova list --host <hostname> --fields <list of fields to display>
The host filter on "nova list" does return instances on a specified host. However, the --fields option only seems to provide the ability to filter on the fields already returned by "nova list" ( Name, Status and Networks). You can't request new fields. I guess that leads to the question of whether it makes more sense to expand the capabilities of "nova list --host" or whether it makes more sense to add a new command.
---
The os-hosts extension gives usage data about a particular host, including usage by project. Seems that this could maybe be an extension to that to also prove details of instances
Isn't this possible already by specifying host filter and the list of fields to display?
Ex.
nova list --host <hostname> --fields <list of fields to display>
The host filter on "nova list" does return instances on a specified host. However, the --fields option only seems to provide the ability to filter on the fields already returned by "nova list" ( Name, Status and Networks). You can't request new fields. I guess that leads to the question of whether it makes more sense to expand the capabilities of "nova list --host" or whether it makes more sense to add a new command.
---
The os-hosts extension gives usage data about a particular host, including usage by project. Seems that this could maybe be an extension to that to also prove details of instances
If you are still working on this, please re-submit via nova-specs. If not, please mark as obsolete, and add a quick comment to describe why. --johnthetubaguy (20th April 2014)