CloudStack CLOUDSTACK-4484
Vmware - Not able to fetch userdata from guest Vms using http://<router-address>/latest/user-data
(cherry picked from commit 697cc2e397a8d6ff0d293587877dfb3033d87c26)

Signed-off-by: animesh <animesh@apache.org>
CLOUDSTACK-3237: add disk chain sync logic to handle out-of-band chain changes that could happen in storage live migration and VM snapshot operations
CLOUDSTACK-3806: There was error in host_view sql, it was using host_details.id for join instead host_details.host_id

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
CLOUDSTACK-4471. If an instance fails to start then mark the volumes allocated as part of VM creation as removed and set the volume state as destroyed.
(cherry picked from commit 7cc8ccead541f6089ed48d9a1c335daa458b74fc)

Signed-off-by: animesh <animesh@apache.org>
CLOUDSTACK-4482: getVMPassword() API call does not return password for Vms that are deployed with password enabled templates.

Improving the error message saying no ssh key pair is assinged to VM to get the encrypted password and included a check for password enabled template

Signed-off-by: Koushik Das <koushik@apache.org>
(cherry picked from commit 37d500d2a6b71c267af20a83208eb6049157f95f)

Signed-off-by: animesh <animesh@apache.org>
CLOUDSTACK-4498 we should not reserve memory and cpu for vmware VMs if the vmware.reserve.cpu and vmware.reserve.mem are set to false.

Conflicts:
	plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Signed-off-by: Jayapal <jayapal@apache.org>
(cherry picked from commit f7018317131f42f77e9bba18e5e1c78457679afc)

Signed-off-by: animesh <animesh@apache.org>
CLOUDSTACK-1191: Re-enable deployment of SystemVMs on RBD

This was reverted by 0a5228922b822b57af72249912ed854281e1d85a unintentionnaly
but broke this feature for RBD.

Enable SystemVM deployment on RBD again
(cherry picked from commit 3315159de62620166c119dbf72dad9cf661cc0cb)

Signed-off-by: animesh <animesh@apache.org>
CLOUDSTACK-4423: Do not always append .qcow2 to volume names when copying

Disk images are not always in the QCOW2 format, so don't assume that the
filename will always and in .qcow2
(cherry picked from commit 93b40b0ca6a796ffbacd80c40897f6ada6284bc4)

Signed-off-by: animesh <animesh@apache.org>
CLOUDSTACK-4443 [VMWARE]Failed to deploy VM's on VMWARE Standard vSwitch Legacy Zone after upgrade

While upgrading to 4.2 to support existing clusters working over standard vswitch or nexus dvswitch should be supported as is. To ensure this while upgrading to 4.2, existing cluster's vswitch configuration needs to be persisted to database. If zone level traffic label is empty then default vswitch name would be used.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
(cherry picked from commit 808183fdcc24fd6417d7bb806ee58a84b84868f4)

Signed-off-by: animesh <animesh@apache.org>
CLOUDSTACK-4522: check before we do dynamic casting
(cherry picked from commit 8099a6e200846878c2061c909609f88b437d8810)

Signed-off-by: animesh <animesh@apache.org>
CLOUDSTACK-3010: [VMWare] [SharedNetworkWithServices] router VM
deployment fails with error "Message: Invalid configuration for device
'2'."

ensuring that direct network guru assigns a mac address for the nic that
it designs
(cherry picked from commit 47fa6d95611c596d4705ffc0f422e3dab70931a5)

Signed-off-by: animesh <animesh@apache.org>
CLOUDSTACK-4466: Fix DHCP capability breaks in 4.2 for MidoNet

A recent code change in NetworkManager causes NullPointerExceptions when DHCP
capability list is null.

The commit which made the NetworkManager change also changed the VirtualRouter
to not use null for the capabilitylist, but didn't make this change for other
network devices, causing DHCP to fail on MidoNet.

This change also updates the MidoNet plugin to use the most recent MidoNet API.

Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
(cherry picked from commit a55c75bbd201e53f0aca3e8f8f9dee08cd132a95)

Signed-off-by: animesh <animesh@apache.org>
review comments for CLOUDSTACK-1815
CLOUDSTACK-772 review comments on DVS fixed
CLOUDSTACK-772 review comments on DVS fixed
(cherry picked from commit 6da0eb4b8bbaa7348b779674654ec4ce9c09c441)

Signed-off-by: animesh <animesh@apache.org>