<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">Le 23/09/2015 08:56, Feodor Tersin a
écrit :<br>
</div>
<blockquote cite="mid:COL130-W5472D8C7EEFF201157A157BE440@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi.<br>
<br>
<blockquote><i>Currently, when performing live-migration the AZ
of the instance didn't update. In usecase like this:</i>
<div><i>Instance_1 is in host1 which is in az1, we
live-migrate it to host2 (provide host2 in API request)
which is in az2. The operation will secusess but the
availability zone data stored in instance1 is still az1,
this may cause inconsistency with the az data stored in
instance db and the actual az. I think update the az
information in instance using the host az can solve this.</i></div>
</blockquote>
<div>
<div dir="ltr">
<div><br>
Since a host can be included into different AZs, you
probably need to allow a caller optionally to specify a
target AZ. And as i understand the same problem occurs for
resize, evacuate and other similar operations, doesn't it?<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
No, an host can't be in two different AZs. It can be in two or more
aggregates, but then only one of those aggregates can be having an
AZ metadata key.<br>
<a class="moz-txt-link-freetext" href="https://github.com/openstack/nova/blob/1df8248b6ad7982174c417abf80070107eac8909/nova/compute/api.py#L3645-L3670">https://github.com/openstack/nova/blob/1df8248b6ad7982174c417abf80070107eac8909/nova/compute/api.py#L3645-L3670</a><br>
<br>
FWIW, I provided a devref change for explaining that :
<a class="moz-txt-link-freetext" href="https://review.openstack.org/#/c/223802/">https://review.openstack.org/#/c/223802/</a><br>
<br>
-Sylvain<br>
<br>
<blockquote cite="mid:COL130-W5472D8C7EEFF201157A157BE440@phx.gbl"
type="cite">
<div dir="ltr">
<div>
<div dir="ltr">
<div><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>