Ask Your Question
0

How to get status of an instance

asked 2017-03-30 10:00:02 -0500

FilipGontko gravatar image

Hello!

Is there a function in OpenStack that returns you a status of an instance ? I need something like "nova image-status <id>". Is there anything like this ?

Thank you very much for your help!

Have a nice day :) Filip

edit retag flag offensive close merge delete

Comments

would openstack server show help? Or using the nova client nova show.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-30 11:40:37 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2017-03-30 14:57:02 -0500

Hi,

you can use # openstack server show SERVER-NAME the server instance status is shown as follows:

# openstack server show uds-db
+-------------------------------------+----------------------------------------------------------+
| Field                               | Value                                                    |
+-------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                                   |
| OS-EXT-AZ:availability_zone         | nova                                                     |
| OS-EXT-SRV-ATTR:host                | control.localdomain                                      |
| OS-EXT-SRV-ATTR:hypervisor_hostname | control.localdomain                                      |
| OS-EXT-SRV-ATTR:instance_name       | instance-00000016                                        |
| OS-EXT-STS:power_state              | Running                                                  |
| OS-EXT-STS:task_state               | None                                                     |
| OS-EXT-STS:vm_state                 | active                                                   |
| OS-SRV-USG:launched_at              | 2017-03-30T00:02:32.000000                               |
| OS-SRV-USG:terminated_at            | None                                                     |
| accessIPv4                          |                                                          |
| accessIPv6                          |                                                          |
| addresses                           | nat-network=192.168.234.9                                |
| config_drive                        |                                                          |
| created                             | 2017-03-30T00:02:24Z                                     |
| flavor                              | m1.medium (3)                                            |
| hostId                              | c580330423b3e0b21ab89cb0ee9bcba1982e01a1bedada84d45588c8 |
| id                                  | 6320150b-654a-46c3-8474-e4009b94ee63                     |
| image                               | MySQL (1d036415-5b5c-428f-9f02-cea308e5b89f)             |
| key_name                            | None                                                     |
| name                                | uds-db                                                   |
| progress                            | 0                                                        |
| project_id                          | ab5a794fd7fc4fb1a7fb096f8afde93b                         |
| properties                          |                                                          |
| security_groups                     | name='default'                                           |
| status                              | ACTIVE                                                   |
| updated                             | 2017-03-30T00:02:32Z                                     |
| user_id                             | 40d8394aa296445da0ba3ff57559c369                         |
| volumes_attached                    |                                                          |
+-------------------------------------+----------------------------------------------------------+

There you have all the available informaction for your instance.

If you do # openstack server list there is also a field showing the listed instances status.

Regards

edit flag offensive delete link more
1

answered 2017-04-01 16:37:37 -0500

AndriusF47 gravatar image

Nova list | grep <id>

edit flag offensive delete link more

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-03-30 10:00:02 -0500

Seen: 1,749 times

Last updated: Mar 30 '17