<div dir="ltr"><div><div>Hey,<br><br></div>I have one question related with OpenStack vmwareapi.VMwareVCDriver resize/cold migration.<br><br></div>The following is my configuration:<br><br clear="all"><div><div><div><div><div>
<div style="background-color:inherit;color:rgb(0,0,0);font-family:΢ÈíÑźÚ;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
 DC</div><div style="background-color:inherit;color:rgb(0,0,0);font-family:΢ÈíÑźÚ;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
    |</div><div style="background-color:inherit;color:rgb(0,0,0);font-family:΢ÈíÑźÚ;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
    |----Cluster1</div><div style="background-color:inherit;color:rgb(0,0,0);font-family:΢ÈíÑźÚ;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
    |          |</div><div style="background-color:inherit;color:rgb(0,0,0);font-family:΢ÈíÑźÚ;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
    |          |----9.111.249.56</div><div style="background-color:inherit;color:rgb(0,0,0);font-family:΢ÈíÑźÚ;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
    |</div><div style="background-color:inherit;color:rgb(0,0,0);font-family:΢ÈíÑźÚ;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
    |----Cluster2</div><div style="background-color:inherit;color:rgb(0,0,0);font-family:΢ÈíÑźÚ;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
               |</div><div style="background-color:inherit;color:rgb(0,0,0);font-family:΢ÈíÑźÚ;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
               |----9.111.249.49</div><br></div><div><b><u>Scenario 1:</u></b><br></div><div>I started two nova computes manage the two clusters:<br></div><div>1) nova-compute1.conf<br>cluster_name=Cluster1<br><br></div><div>
2) nova-compute2.conf</div><div>cluster_name=Cluster2<br><br></div><div>3) Start up two nova computes on host1 and host2 separately<br></div><div>4) Create one VM instance and the VM instance was booted on Cluster2 node  9.111.249.49<br>
| OS-EXT-SRV-ATTR:host                 | host2 |<br>| OS-EXT-SRV-ATTR:hypervisor_hostname  | domain-c16(Cluster2)                                     |<br></div><div>5) Cold migrate the VM instance<br></div><div>6) After migration finished, the VM goes to VERIFY_RESIZE status, and "nova show" indicates that the VM now located on host1:Cluster1<br>
| OS-EXT-SRV-ATTR:host                 | host1 |<br>| OS-EXT-SRV-ATTR:hypervisor_hostname  | domain-c12(Cluster1)                                     |<br></div><div>7) But from vSphere client, it indicates the the VM was still running on Cluster2<br>
</div><div>8) Try to confirm the resize, confirm will be failed. The root cause is that nova compute on host2 has no knowledge of domain-c12(Cluster1) <br><br>2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2810, in do_confirm_resize<br>
2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp     migration=migration)<br>2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2836, in _confirm_resize<br>
2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp     network_info)<br>2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 420, in confirm_migration<br>
2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp     _vmops = self._get_vmops_for_compute_node(instance['node'])<br>2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 523, in _get_vmops_for_compute_node<br>
2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp     resource = self._get_resource_for_node(nodename)<br>2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 515, in _get_resource_for_node<br>
2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp     raise exception.NotFound(msg)<br>2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp NotFound: NV-3AB798A The resource domain-c12(Cluster1) does not exist<br>
2014-02-16 07:10:17.166 12720 TRACE nova.openstack.common.rpc.amqp <br><br><br></div><div><u><b>Scenario 2:</b></u></div><div><br>1) Started two nova computes manage the two clusters, but the two computes have same nova conf.<br>
<div>1) nova-compute1.conf<br>cluster_name=Cluster1<br>cluster_name=Cluster2<br><br></div><div>2) nova-compute2.conf<br>cluster_name=Cluster1<br></div>cluster_name=Cluster2<br><br></div><div>3) Then create and resize/cold migrate a VM, it can always succeed.<br>
<br><br></div><div><u><b>Questions:</b></u><br></div><div>For multi-cluster management, does vmware require all nova compute have same cluster configuration to make sure resize/cold migration can succeed? <br></div><div><br>
</div><div>-- <br><div dir="ltr"><div>Thanks,<br><br></div>Jay<br></div>
</div></div></div></div></div></div>