Openstack API 'zone-list' fails for non-admin users

Asked by Édouard Thuleau

Due to the way services are retrieved, 'zone-list' returns NotAuthorized.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Dan Prince
Solved:
Last query:
Last reply:
Revision history for this message
Édouard Thuleau (ethuleau) said :
#1

I think, I don't understand the zone concept.
If I do a euca-describe-availability-zones verbose, I've got this output :

AVAILABILITYZONE nova available
AVAILABILITYZONE |- p-hs22-12
AVAILABILITYZONE | |- nova-network enabled :-) 2011-04-18 10:13:40
AVAILABILITYZONE | |- nova-compute enabled :-) 2011-04-18 10:13:41
AVAILABILITYZONE |- p-novamaster
AVAILABILITYZONE | |- nova-scheduler enabled :-) 2011-04-18 10:13:43
AVAILABILITYZONE | |- nova-volume enabled :-) 2011-04-18 10:13:43
AVAILABILITYZONE |- p-hs22-13
AVAILABILITYZONE | |- nova-compute enabled :-) 2011-04-18 10:13:37

So I can see a zone with my nova components of this zone. It's a default zone (I didn't create it).
But, If I do nova zone-list with admin rights, I've got :
+----+------+-----------+--------------+---------+
| ID | Name | Is Active | Capabilities | API URL |
+----+------+-----------+--------------+---------+
+----+------+-----------+--------------+---------+

No zones are listed. What's the differences between the zone commands of the two APIs ?

Revision history for this message
Best Dan Prince (dan-prince) said :
#2

The zones you see when running the 'euca-describe-availability-zones' command are meant to implement the availability feature here:

  http://aws.amazon.com/ec2/

This is an end user API feature and is available to non-admin users using the EC2 API in Openstack.

---

Zones within Nova are logical groupings of services. They are configured by admins using nova-manage, the database, config files, etc.

You can read more about them here:

http://wiki.openstack.org/MultiClusterZones

Hope this helps.

Revision history for this message
Édouard Thuleau (ethuleau) said :
#3

Thanks Dan Prince, that solved my question.