[ https://issues.apache.org/jira/browse/CLOUDSTACK-4368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Srikanteswararao Talluri updated CLOUDSTACK-4368: ------------------------------------------------- Description: Steps to reproduce: ============== on a vmware deployment with two clusters in the same datacenter with one host in each cluster 1. deploy a VM with its root volume on zone wide primary storage. 2. in the UI , click on migrate vm button. (which invokes findhostsformigration) Here is the output of findhostsformigration and the drop down list shows a host which is in a different cluster as a normal host which is true but for migrating a VM from a host in one cluster to other we need to call migrateVirtualMachineWithVolume. <findhostsformigrationresponse cloud-stack-version="4.2.0-SNAPSHOT"> <count>2</count> <host> <id>daa59206-3ad3-48f8-a8ad-91ed5870beb7</id> <name>10.147.40.18</name> <state>Up</state> <disconnected>2013-08-16T20:30:49+0530</disconnected> <type>Routing</type> <ipaddress>10.147.40.18</ipaddress> <zoneid>df06d228-a46b-4ddf-83f1-7dba859af77c</zoneid> <zonename>Z2</zonename> <podid>cc64a2a1-e353-4b03-9050-6934d3157c5d</podid> <podname>pod2</podname> <version>4.2.0-SNAPSHOT</version> <hypervisor>VMware</hypervisor> <cpunumber>4</cpunumber> <cpuspeed>2393</cpuspeed> <cpuallocated>0%</cpuallocated> <cpuused>1.74%</cpuused> <cpuwithoverprovisioning>9572.0</cpuwithoverprovisioning> <networkkbsread>0</networkkbsread> <networkkbswrite>0</networkkbswrite> <memorytotal>17169539072</memorytotal> <memoryallocated>0</memoryallocated> <memoryused>1338520</memoryused> <capabilities>hvm</capabilities> <lastpinged>1970-01-16T18:56:39+0530</lastpinged> <managementserverid>6703101771911</managementserverid> <clusterid>4e34715a-9bde-41f2-965a-8939d61ec180</clusterid> <clustername>10.147.60.15/Kiran/cluster</clustername> <clustertype>ExternalManaged</clustertype> <islocalstorageactive>false</islocalstorageactive> <created>2013-08-16T18:29:31+0530</created> <events> HostDown; StartAgentRebalance; AgentConnected; Ping; ShutdownRequested; PingTimeout; Remove; AgentDisconnected; ManagementServerDown </events> <suitableformigration>true</suitableformigration> <requiresStorageMotion>false</requiresStorageMotion> <resourcestate>Enabled</resourcestate> <hypervisorversion>5.1</hypervisorversion> <hahost>false</hahost> <jobstatus>0</jobstatus> </host> <host> <id>49537136-d44f-439a-937c-442ed74bd697</id> <name>10.147.40.8</name> <state>Up</state> <disconnected>2013-08-16T20:30:49+0530</disconnected> <type>Routing</type> <ipaddress>10.147.40.8</ipaddress> <zoneid>df06d228-a46b-4ddf-83f1-7dba859af77c</zoneid> <zonename>Z2</zonename> <podid>cc64a2a1-e353-4b03-9050-6934d3157c5d</podid> <podname>pod2</podname> <version>4.2.0-SNAPSHOT</version> <hypervisor>VMware</hypervisor> <cpunumber>4</cpunumber> <cpuspeed>2393</cpuspeed> <cpuallocated>0%</cpuallocated> <cpuused>2.55%</cpuused> <cpuwithoverprovisioning>9572.0</cpuwithoverprovisioning> <networkkbsread>0</networkkbsread> <networkkbswrite>0</networkkbswrite> <memorytotal>17169539072</memorytotal> <memoryallocated>1610612736</memoryallocated> <memoryused>1660056</memoryused> <capabilities>hvm</capabilities> <lastpinged>1970-01-16T18:56:39+0530</lastpinged> <managementserverid>6703101771911</managementserverid> <clusterid>25083916-0f13-4adf-ab94-80e887bb741e</clusterid> <clustername>10.147.60.15/Kiran/cluster1</clustername> <clustertype>ExternalManaged</clustertype> <islocalstorageactive>false</islocalstorageactive> <created>2013-08-16T20:06:08+0530</created> <events> HostDown; StartAgentRebalance; AgentConnected; Ping; ShutdownRequested; PingTimeout; Remove; AgentDisconnected; ManagementServerDown </events> <suitableformigration>true</suitableformigration> <requiresStorageMotion>false</requiresStorageMotion> <resourcestate>Enabled</resourcestate> <hypervisorversion>5.1</hypervisorversion> <hahost>false</hahost> <jobstatus>0</jobstatus> </host> </findhostsformigrationresponse> was: Steps to reproduce: ============== on a vmware deployment with two clusters in the same datacenter with one host in each cluster 1. deploy a VM 2. in the UI , click on migrate vm button. (which invokes findhostsformigration) Here is the output of findhostsformigration and the drop down list shows a host which requiresstorage motion as a normal host for migration <findhostsformigrationresponse cloud-stack-version="4.2.0-SNAPSHOT"> <count>2</count> <host> <id>daa59206-3ad3-48f8-a8ad-91ed5870beb7</id> <name>10.147.40.18</name> <state>Up</state> <disconnected>2013-08-16T20:30:49+0530</disconnected> <type>Routing</type> <ipaddress>10.147.40.18</ipaddress> <zoneid>df06d228-a46b-4ddf-83f1-7dba859af77c</zoneid> <zonename>Z2</zonename> <podid>cc64a2a1-e353-4b03-9050-6934d3157c5d</podid> <podname>pod2</podname> <version>4.2.0-SNAPSHOT</version> <hypervisor>VMware</hypervisor> <cpunumber>4</cpunumber> <cpuspeed>2393</cpuspeed> <cpuallocated>0%</cpuallocated> <cpuused>1.74%</cpuused> <cpuwithoverprovisioning>9572.0</cpuwithoverprovisioning> <networkkbsread>0</networkkbsread> <networkkbswrite>0</networkkbswrite> <memorytotal>17169539072</memorytotal> <memoryallocated>0</memoryallocated> <memoryused>1338520</memoryused> <capabilities>hvm</capabilities> <lastpinged>1970-01-16T18:56:39+0530</lastpinged> <managementserverid>6703101771911</managementserverid> <clusterid>4e34715a-9bde-41f2-965a-8939d61ec180</clusterid> <clustername>10.147.60.15/Kiran/cluster</clustername> <clustertype>ExternalManaged</clustertype> <islocalstorageactive>false</islocalstorageactive> <created>2013-08-16T18:29:31+0530</created> <events> HostDown; StartAgentRebalance; AgentConnected; Ping; ShutdownRequested; PingTimeout; Remove; AgentDisconnected; ManagementServerDown </events> <suitableformigration>true</suitableformigration> <requiresStorageMotion>false</requiresStorageMotion> <resourcestate>Enabled</resourcestate> <hypervisorversion>5.1</hypervisorversion> <hahost>false</hahost> <jobstatus>0</jobstatus> </host> <host> <id>49537136-d44f-439a-937c-442ed74bd697</id> <name>10.147.40.8</name> <state>Up</state> <disconnected>2013-08-16T20:30:49+0530</disconnected> <type>Routing</type> <ipaddress>10.147.40.8</ipaddress> <zoneid>df06d228-a46b-4ddf-83f1-7dba859af77c</zoneid> <zonename>Z2</zonename> <podid>cc64a2a1-e353-4b03-9050-6934d3157c5d</podid> <podname>pod2</podname> <version>4.2.0-SNAPSHOT</version> <hypervisor>VMware</hypervisor> <cpunumber>4</cpunumber> <cpuspeed>2393</cpuspeed> <cpuallocated>0%</cpuallocated> <cpuused>2.55%</cpuused> <cpuwithoverprovisioning>9572.0</cpuwithoverprovisioning> <networkkbsread>0</networkkbsread> <networkkbswrite>0</networkkbswrite> <memorytotal>17169539072</memorytotal> <memoryallocated>1610612736</memoryallocated> <memoryused>1660056</memoryused> <capabilities>hvm</capabilities> <lastpinged>1970-01-16T18:56:39+0530</lastpinged> <managementserverid>6703101771911</managementserverid> <clusterid>25083916-0f13-4adf-ab94-80e887bb741e</clusterid> <clustername>10.147.60.15/Kiran/cluster1</clustername> <clustertype>ExternalManaged</clustertype> <islocalstorageactive>false</islocalstorageactive> <created>2013-08-16T20:06:08+0530</created> <events> HostDown; StartAgentRebalance; AgentConnected; Ping; ShutdownRequested; PingTimeout; Remove; AgentDisconnected; ManagementServerDown </events> <suitableformigration>true</suitableformigration> <requiresStorageMotion>false</requiresStorageMotion> <resourcestate>Enabled</resourcestate> <hypervisorversion>5.1</hypervisorversion> <hahost>false</hahost> <jobstatus>0</jobstatus> </host> </findhostsformigrationresponse> Summary: UI: when sorce and destination hosts are in different cluster UI is not calling properAPI (was: UI: findhostsformigration tab is ignoring requiresstoragemotion flag in the response) Changed the description with actual issue observed. sorry i misunderstood the issue earlier. > UI: when sorce and destination hosts are in different cluster UI is not > calling properAPI > ------------------------------------------------------------------------------------------ > > Key: CLOUDSTACK-4368 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4368 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: UI > Affects Versions: 4.2.0 > Reporter: Srikanteswararao Talluri > Assignee: Srikanteswararao Talluri > Priority: Critical > Fix For: 4.2.0 > > > Steps to reproduce: > ============== > on a vmware deployment with two clusters in the same datacenter with one host > in each cluster > 1. deploy a VM with its root volume on zone wide primary storage. > 2. in the UI , click on migrate vm button. (which invokes > findhostsformigration) > Here is the output of findhostsformigration and the drop down list shows a > host which is in a different cluster as a normal host which is true but for > migrating a VM from a host in one cluster to other we need to call > migrateVirtualMachineWithVolume. > <findhostsformigrationresponse cloud-stack-version="4.2.0-SNAPSHOT"> > <count>2</count> > <host> > <id>daa59206-3ad3-48f8-a8ad-91ed5870beb7</id> > <name>10.147.40.18</name> > <state>Up</state> > <disconnected>2013-08-16T20:30:49+0530</disconnected> > <type>Routing</type> > <ipaddress>10.147.40.18</ipaddress> > <zoneid>df06d228-a46b-4ddf-83f1-7dba859af77c</zoneid> > <zonename>Z2</zonename> > <podid>cc64a2a1-e353-4b03-9050-6934d3157c5d</podid> > <podname>pod2</podname> > <version>4.2.0-SNAPSHOT</version> > <hypervisor>VMware</hypervisor> > <cpunumber>4</cpunumber> > <cpuspeed>2393</cpuspeed> > <cpuallocated>0%</cpuallocated> > <cpuused>1.74%</cpuused> > <cpuwithoverprovisioning>9572.0</cpuwithoverprovisioning> > <networkkbsread>0</networkkbsread> > <networkkbswrite>0</networkkbswrite> > <memorytotal>17169539072</memorytotal> > <memoryallocated>0</memoryallocated> > <memoryused>1338520</memoryused> > <capabilities>hvm</capabilities> > <lastpinged>1970-01-16T18:56:39+0530</lastpinged> > <managementserverid>6703101771911</managementserverid> > <clusterid>4e34715a-9bde-41f2-965a-8939d61ec180</clusterid> > <clustername>10.147.60.15/Kiran/cluster</clustername> > <clustertype>ExternalManaged</clustertype> > <islocalstorageactive>false</islocalstorageactive> > <created>2013-08-16T18:29:31+0530</created> > <events> > HostDown; StartAgentRebalance; AgentConnected; Ping; ShutdownRequested; > PingTimeout; Remove; AgentDisconnected; ManagementServerDown > </events> > <suitableformigration>true</suitableformigration> > <requiresStorageMotion>false</requiresStorageMotion> > <resourcestate>Enabled</resourcestate> > <hypervisorversion>5.1</hypervisorversion> > <hahost>false</hahost> > <jobstatus>0</jobstatus> > </host> > <host> > <id>49537136-d44f-439a-937c-442ed74bd697</id> > <name>10.147.40.8</name> > <state>Up</state> > <disconnected>2013-08-16T20:30:49+0530</disconnected> > <type>Routing</type> > <ipaddress>10.147.40.8</ipaddress> > <zoneid>df06d228-a46b-4ddf-83f1-7dba859af77c</zoneid> > <zonename>Z2</zonename> > <podid>cc64a2a1-e353-4b03-9050-6934d3157c5d</podid> > <podname>pod2</podname> > <version>4.2.0-SNAPSHOT</version> > <hypervisor>VMware</hypervisor> > <cpunumber>4</cpunumber> > <cpuspeed>2393</cpuspeed> > <cpuallocated>0%</cpuallocated> > <cpuused>2.55%</cpuused> > <cpuwithoverprovisioning>9572.0</cpuwithoverprovisioning> > <networkkbsread>0</networkkbsread> > <networkkbswrite>0</networkkbswrite> > <memorytotal>17169539072</memorytotal> > <memoryallocated>1610612736</memoryallocated> > <memoryused>1660056</memoryused> > <capabilities>hvm</capabilities> > <lastpinged>1970-01-16T18:56:39+0530</lastpinged> > <managementserverid>6703101771911</managementserverid> > <clusterid>25083916-0f13-4adf-ab94-80e887bb741e</clusterid> > <clustername>10.147.60.15/Kiran/cluster1</clustername> > <clustertype>ExternalManaged</clustertype> > <islocalstorageactive>false</islocalstorageactive> > <created>2013-08-16T20:06:08+0530</created> > <events> > HostDown; StartAgentRebalance; AgentConnected; Ping; ShutdownRequested; > PingTimeout; Remove; AgentDisconnected; ManagementServerDown > </events> > <suitableformigration>true</suitableformigration> > <requiresStorageMotion>false</requiresStorageMotion> > <resourcestate>Enabled</resourcestate> > <hypervisorversion>5.1</hypervisorversion> > <hahost>false</hahost> > <jobstatus>0</jobstatus> > </host> > </findhostsformigrationresponse> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira