Ask Your Question

user to availability zone mapping

asked 2020-05-26 14:44:18 -0500

anonymous user



we are looking at availability zones as a way to configure our user to server mapping. Basically, we want a user to provide us with physical servers, we are going to create an availability zone with the servers provided and we want the user to create instances only on those servers within the availability zone.

Is there a way for the user to see only his provided availability zone? We wouldn't want him to select it from a drop down menu using Horizon or having to select it from the CLI. That would open up the possibility for the user to make a mistake and create his instances on a different AZ.

Thank you in advance.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-05-26 15:19:05 -0500

chalans gravatar image

updated 2020-05-27 15:02:21 -0500


Maybe you can use HostAggregate for this, so you can set the provisionning on specific host on specific AZ


Yes, Create your Aggregate as Admin.

openstack  aggregate create --property key=value1  agg1_name
openstack aggregate add host agg1_name Host1

Then set the key,value on specific flavor for you project

openstack flavor set --property  aggregate_instance_extra_specs:key=value1 my_flavor1

Do the same thing with the other HostAggre and create another Flavor

And after just assign specific Flavor to land your instance on specific Host

Ah dont forget to set this line on nova.conf (append to your current configuration)

edit flag offensive delete link more


mind to elaborate a bit more please? I thought that the user didn't see the hostaggregate and it was more an internal thing, so I don't see how he would deploy his instances to the aggregate.

cbravo gravatar imagecbravo ( 2020-05-26 17:16:04 -0500 )edit

It doesn't work for users, but it could work for projects. You could create host aggregates that include the compute nodes in question. Then create private flavors for those host aggregates, which you make available to specific projects only. Ensure that no flavor is public.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-26 19:06:53 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2020-05-26 14:44:18 -0500

Seen: 110 times

Last updated: May 27 '20