<div dir="ltr">I see a reported bug which describes this problem clearly.<div><br></div><div><a href="https://bugs.launchpad.net/nova/+bug/2018318">https://bugs.launchpad.net/nova/+bug/2018318</a><br><div><br></div><div>I also do google and many people ask about this problem.</div><div><br></div><div>Can I know why is it pain for us? If we can resolve this issue, system will be more stable(in my opinion)</div><div><br></div><div>I know that we can resolve this problem with default az scheduler but look likes there is no way with existing instances.</div><div><br></div><div>From a cloud operator view.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 16, 2023 at 10:51 PM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com">nguyenhuukhoinw@gmail.com</a>> wrote:<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 dir="auto">Thank you for the information! <div dir="auto">Can we set AZ for existing instance?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 16, 2023, 10:47 PM <<a href="mailto:smooney@redhat.com" target="_blank">smooney@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 2023-08-16 at 21:43 +0700, Nguyễn Hữu Khôi wrote:<br>
> Hello guys.<br>
> <br>
> I need to verify whether an existing instance was created with AZ or<br>
> without AZ. How can we check on an existing instance?<br>
the only way to check this is via the request spec in the api db<br>
you can check if an AZ is in the request spec if its empyt then none was<br>
requested.<br>
> <br>
> I did not setup default AZ scheduler before. At this time I plan to expand<br>
> the system by a new AZ.<br>
> <br>
> as document<br>
> <br>
> If the server was not created in a specific zone then it is free to be<br>
> moved to other zones, i.e. the AvailabilityZoneFilter<br>
> <<a href="https://docs.openstack.org/nova/latest/admin/scheduling.html#availabilityzonefilter" rel="noreferrer noreferrer" target="_blank">https://docs.openstack.org/nova/latest/admin/scheduling.html#availabilityzonefilter</a>><br>
> is<br>
> a no-op.<br>
> <br>
> I am worried about when I migrate instances and they will be free to be<br>
> moved to other zones.<br>
well that would be working a intended.<br>
but if you are concerned baout it because you use the config option to prevent cross AZ attache<br>
then we have special code to pin the instance in that sepcicic case.<br>
> <br>
> Nguyen Huu Khoi<br>
<br>
</blockquote></div>
</blockquote></div>