Ask Your Question
1

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
1

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

Bernd Bausch gravatar image
$ openstack help server list
usage: openstack server list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
                             [--max-width <integer>] [--print-empty]
                             [--noindent]
                             [--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

Comments

Thank you, that helps.

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

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
0

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

or

nova list --tenant tenant_uuid

edit flag offensive delete link more

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 521 times

Last updated: Aug 03