Ask Your Question
0

Why does "nova show" not include any OS-EXT-SRV-ATTR fields? [closed]

asked 2015-03-09 09:00:57 -0500

rlrevell gravatar image

Everything else seems to be working normally. However, contrary to the documentation "nova show" does not include the OS-EXT-SRV-ATTR fields so I am not able to proceed with testing migration:

    root@controller-1:~# nova show demo-instance1
+--------------------------------------+------------------------------------------------------------+
| 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               | 2015-03-06T22:44:29.000000                                 |
| OS-SRV-USG:terminated_at             | -                                                          |
| accessIPv4                           |                                                            |
| accessIPv6                           |                                                            |
| config_drive                         |                                                            |
| created                              | 2015-03-06T22:44:26Z                                       |
| demo-net network                     | 10.0.0.18                                                  |
| flavor                               | m1.tiny (1)                                                |
| hostId                               | d13fd9f15bcb8cf0b98529942f1c2c4a8754609da2c541a5acdb4df5   |
| id                                   | 7daf18a0-7da7-4da3-85e6-d3a7f47f1fa2                       |
| image                                | cirros-0.3.3-x86_64 (3990949b-ce24-4b03-8dfd-7a01468d37f9) |
| key_name                             | demo-key                                                   |
| metadata                             | {}                                                         |
| name                                 | demo-instance1                                             |
| os-extended-volumes:volumes_attached | []                                                         |
| progress                             | 0                                                          |
| security_groups                      | default                                                    |
| status                               | ACTIVE                                                     |
| tenant_id                            | c5215de72f27418a96d3e6b91f2b81ea                           |
| updated                              | 2015-03-09T13:18:07Z                                       |
| user_id                              | 7b6a3e31d0f047c085671b5a1eeb1162                           |
+--------------------------------------+------------------------------------------------------------+

Is this just a matter of documentation being out of date? Every other command I have tried seems to work as documented.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by rlrevell
close date 2015-03-09 13:48:16.508553

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-09 13:48:03 -0500

rlrevell gravatar image

Thanks, this was the problem.

edit flag offensive delete link more
0

answered 2015-03-09 12:34:11 -0500

larsks gravatar image

I believe the OS-EXT-SRV-ATTR attribute is only available to someone with admin credentials. Consider:

$ nova show 3510ac8f-c90a-42f6-b214-3f53d622e1fc | awk '/OS-/ {print $2}'
OS-DCF:diskConfig
OS-EXT-AZ:availability_zone
OS-EXT-STS:power_state
OS-EXT-STS:task_state
OS-EXT-STS:vm_state
OS-SRV-USG:launched_at
OS-SRV-USG:terminated_at

vs:

$ . keystonerc_admin
$ nova show 3510ac8f-c90a-42f6-b214-3f53d622e1fc | awk '/OS-/ {print $2}'
OS-DCF:diskConfig
OS-EXT-AZ:availability_zone
OS-EXT-SRV-ATTR:host
OS-EXT-SRV-ATTR:hypervisor_hostname
OS-EXT-SRV-ATTR:instance_name
OS-EXT-STS:power_state
OS-EXT-STS:task_state
OS-EXT-STS:vm_state
OS-SRV-USG:launched_at
OS-SRV-USG:terminated_at

The second command -- run with admin credentials -- shows the OS-EXT-SRV-ATTR attributes.

edit flag offensive delete link more

Comments

You can change the /etc/nova/policy.json file, by default only admin can view this attribute, just clear the value

For Liberty: "os_compute_api:os-extended-server-attributes": "",

For Kilo and previous version: "compute_extension:extended_server_attributes": "", then restart nova-api service.

samuel.chen gravatar imagesamuel.chen ( 2015-11-21 02:37:48 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-09 09:00:57 -0500

Seen: 1,716 times

Last updated: Mar 09 '15