Ask Your Question

List instances project wise?

asked 2017-04-12 00:22:31 -0500

ShubhamMeshram gravatar image

Is there a command or way to list all the instances under a particluar project and do this for all project so that I get to know which project has which all VMs running under it.

nova list or openstack server list lists only the VMs under admin.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2017-04-12 01:17:23 -0500

$ openstack help server list
usage: openstack server list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
                             [--max-width <integer>] [--print-empty]
                             [--quote {all,minimal,none,nonnumeric}]
                             [--reservation-id <reservation-id>]
                             [--ip <ip-address-regex>]
                             [--ip6 <ip-address-regex>] [--name <name-regex>]
                             [--instance-name <server-name>]
                             [--status <status>] [--flavor <flavor>]
                             [--image <image>] [--host <hostname>]
                             [--all-projects] [--project <project>]

See the last line in the above output.

edit flag offensive delete link more


Thank you, that helps.

ShubhamMeshram gravatar imageShubhamMeshram ( 2017-04-13 01:10:41 -0500 )edit

answered 2017-08-03 21:09:20 -0500

TimCrt gravatar image

I think what you want is

nova list --all-tenants
edit flag offensive delete link more

answered 2017-04-12 20:49:36 -0500

vblando gravatar image

updated 2017-04-12 20:49:59 -0500

openstack server list --project project_name

  • enclosed with quotoe if project name has spaces


nova list --tenant tenant_uuid

edit flag offensive delete link more



Or nova list --fields name,OS-EXT-SRV-ATTR:instance_name,status,networks,tenant_id,OS-EXT-SRV-ATTR:host --all-tenants That's what I use to get an overview of all instances for all projects, but with the project id in the output.

eblock gravatar imageeblock ( 2017-08-04 02:50:23 -0500 )edit

This help me to sort instances with specific flavor .Thanks

Deepa gravatar imageDeepa ( 2018-03-05 06:14:56 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-04-12 00:22:31 -0500

Seen: 16,944 times

Last updated: Aug 03 '17