<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello Openstack,</div><div><br></div><div>I need a help with AZ in Nova. I think that this case wasn't discussed before, I tried hard to google it and I find only one solution (below) which I tried but doesn't work. <br></div><div><br></div><div></div><div>I have 2 availability zones (2 host aggregates each with 1 hypervisor added). I try to create VM In Horizon with `Any Availability Zone` and it results in following error:<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>The requested availability zone is not available (HTTP 400). </div></blockquote><div><br></div><div>I want Nova to behave like that when Availability Zone is not specified (<i>Any Availability Zone</i> is set in Horizon), it will create VM in random AZ.<br></div><div><br></div><div></div><div>In nova.conf I have set <b>default_schedule_zone = None</b> and restarted all nova services. I think this should work. <br></div><div><br></div><div>I found it also in this <a href="https://www.mirantis.com/blog/the-first-and-final-word-on-openstack-availability-zones/" target="_blank">blog post</a> from Mirantis where it says:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><pre><span style="font-weight:400">[DEFAULT]</span>
<span style="font-weight:400">storage_availability_zone=AZ1</span></pre><br>However, most operators leave this at its default setting (None), 
because it allows users who don’t care about availability zones to omit 
it from their API call, and the workload will be scheduled to any 
availability zone where there is available capacity.</div></blockquote><div><br></div><div>The commands I executed to create AZs are:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>openstack aggregate create HA-Test1 --zone AZ-Test1 --property availability_zone=AZ-Test1<br>openstack aggregate create HA-Test2 --zone AZ-Test2 --property availability_zone=AZ-Test2<br>openstack aggregate add host HA-Test1 os-compute-01<br>openstack aggregate add host HA-Test2 os-compute-02</div></blockquote><div><br></div><div>I am using stable Pike release installed via Openstack-Ansible on Ubuntu 16.04.<br></div></div>
</div><br><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best Regards<div>Ondrej Vaško.</div></div></div>
</div>