[openstack][nova] how check if exist instances were create with AZ or without AZ

smooney at redhat.com smooney at redhat.com
Wed Aug 16 15:47:04 UTC 2023


On Wed, 2023-08-16 at 21:43 +0700, Nguyễn Hữu Khôi wrote:
> Hello guys.
> 
> I need to verify whether an existing instance was created with AZ or
> without AZ. How can we check on an existing instance?
the only way to check this is via the request spec in the api db
you can check if an AZ is in the request spec if its empyt then none was
requested.
> 
> I did not setup default AZ scheduler before. At this time I plan to expand
> the system by a new AZ.
> 
> as document
> 
> If the server was not created in a specific zone then it is free to be
> moved to other zones, i.e. the AvailabilityZoneFilter
> <https://docs.openstack.org/nova/latest/admin/scheduling.html#availabilityzonefilter>
> is
> a no-op.
> 
> I am worried about when I migrate instances and they will be free to be
> moved to other zones.
well that would be working a intended.
but if you are concerned baout it because you use the config option to prevent cross AZ attache
then we have special code to pin the instance in that sepcicic case.
> 
> Nguyen Huu Khoi




More information about the openstack-discuss mailing list