Ask Your Question
0

nova instance details

asked 2014-06-10 18:59:12 -0600

Pernikovka gravatar image

updated 2014-06-10 19:09:07 -0600

Hi, how to get instance details? like number of NICs? etc..? I cannot find command how to get instance parameters.. Thx

something like image-show Show details about the given image.

for instance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-06-10 19:39:14 -0600

larsks gravatar image

It really depends what you're looking for. nova show <instance> will provide most of the details, for example:

$ nova show my-test-instance
+--------------------------------------+------------------------------------------------------------+
| Property                             | Value                                                      |
+--------------------------------------+------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                     |
| OS-EXT-AZ:availability_zone          | nova                                                       |
| OS-EXT-STS:power_state               | 1                                                          |
| OS-EXT-STS:task_state                | -                                                          |
| OS-EXT-STS:vm_state                  | active                                                     |
| OS-SRV-USG:launched_at               | 2014-05-09T15:29:32.000000                                 |
| OS-SRV-USG:terminated_at             | -                                                          |
| accessIPv4                           |                                                            |
| accessIPv6                           |                                                            |
| config_drive                         |                                                            |
| created                              | 2014-05-09T15:28:30Z                                       |
| flavor                               | m1.small (2)                                               |
| hostId                               | e4d3d3b96bb635fcd8e22dbc0d10effcded5eaebeac9e652abf8bb7d   |
| id                                   | 5cd234a7-f5d3-4dc9-8747-574d759bc8ea                       |
| image                                | sampleimage1-snap-0 (2e20ec44-639a-4371-af10-09c2b75c1750) |
| key_name                             | lars                                                       |
| metadata                             | {}                                                         |
| name                                 | rdoquestions                                               |
| net0 network                         | 172.16.0.17, 10.16.18.128                                  |
| os-extended-volumes:volumes_attached | []                                                         |
| progress                             | 0                                                          |
| security_groups                      | default                                                    |
| status                               | ACTIVE                                                     |
| tenant_id                            | 4ac8a62637584ecb9f52e4944770c22e                           |
| updated                              | 2014-05-09T15:29:32Z                                       |
| user_id                              | 4800dd6837a04c79b5822bf8e1248d53                           |
+--------------------------------------+------------------------------------------------------------+

Look at the line labeleld net0 network. There will be one of these for each network to which your instance is attached, and these correspond to NICs visible in your instance. You can also use the interface-list command:

$ nova interface-list my-test-instance
+------------+--------------------------------------+--------------------------------------+--------------+-------------------+
| Port State | Port ID                              | Net ID                               | IP addresses | MAC Addr          |
+------------+--------------------------------------+--------------------------------------+--------------+-------------------+
| ACTIVE     | d8fa5f14-6fd0-4e99-9df8-7846d6a08a14 | 96c2ee02-f8e6-4b07-ae56-cf656d043d61 | 172.16.0.17  | fa:16:3e:20:07:69 |
+------------+--------------------------------------+--------------------------------------+--------------+-------------------+

This provides similar information in a different format.

edit flag offensive delete link more

Comments

thx I did some typo befor....

Pernikovka gravatar imagePernikovka ( 2014-06-11 07:07:39 -0600 )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: 2014-06-10 18:59:12 -0600

Seen: 117 times

Last updated: Jun 10 '14