CLOUDSTACK-4379: Reset VM states when host is removed from cluster

   If you shut down the agent while VMs are running, the management
server assumes that the VMs are continuing to run. You can then
delete the host while it is in 'disconnected' state, and those VMs
will be unusable, forever in running state. They can't change state
because the host no longer exists. This patch checks for any VMs
that may have been tied to the removed host and resets their state
so that cloudstack can continue to manage them.
CLOUDSTACK-4300: possible fix: cputune feature is only available after 0.9.0, so start vm can fail on rhel 6.1
CLOUDSTACK-4237 [Autoscale] Account deletion doesn't delete all autoscaled LB rules created by the account
CLOUDSTACK-4325: add more test cases for zone wide storage pool allocator
CLOUDSTACK-3229: if delete snapshots on staging area failed, still treat backup snapshot as succeed. And modify snapshot delete logic on devcloud
CLOUDSTACK-1682. DOC. Fix parameter name in overview doc for reset volume on VM reboot. Add cross-reference to the detailed how-to section.
CLOUDSTACK-4363: fix possible NPE, if copy volume failed.
CLOUDSTACK-4357: don't cache ServiceContent and rootFolder in memory, the cache semantics break session keep-alive mechanism
CLOUDSTACK-4338: fix NPE if create volume failed
CLOUDSTACK-4385 : [ZWPS]Across the cluster live migration of VM on zone wide primary storage pool fails

If all the VM's volumes are on zone wide primary storage pool then live migration of the VM would not involve storage migration. Hence MigrateVM API would be called against MigrateVMWithVolume. So far PrepareForMigrationCommand handled scenarios of VM moving across hosts within a cluster, but with zone wide primary storage in picture this command need to handle scenarios of VM moving across clusters. Try to find the VM in datacenter if not found within cluster.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
CLOUDSTACK-4384: Switch back to CLOUD_DB after simulator processing

Simulator should revert back to CLOUD_DB after its operations on
SIMULATOR_DB or the cloudstack connections go to the simulator instead
of cloud.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-1316 location of cloud-set-guest-password updated
CLOUDSTACK-4132 current dnsmasq config does not allow guest virtual machines(clients) to update its hostnames with a DNS server

Introducing the option dhcp-client-update fails if the dnsmasq version is less than 2.6 (like in older templates).
Added a check for the version in cloud-early-config. will add dhcp-client-update option in the config file only
if the dnsmasq version is 2.6 and above.

Signed-off-by: Jayapal <jayapal@apache.org>
Merge branch '4.2' of https://git-wip-us.apache.org/repos/asf/cloudstack into 4.2
CLOUDSTACK-4390, CLOUDSTACK-4358: Enable full-clone deployment by default for VMware. Apply keep-alive kick for all outstanding vCenter sessions
fix CLOUDSTACK-3234 modify the logics of retrieving Vmsnapshot volume path
CLOUDSTACK-4394: remove cleanups for offerings

offerings do not need to be cleaned up

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-4225: Fix template references in setUpClass

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-4396: Invalid case comparison leaves egress rule unprogrammed

Thereby failing the wget for the cloud-setup-guest-password script which
in turn fails the test.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-4340: Add more debug logging

VM (id) moves from host (id) to host (id)

Signed-off-by: Prasanna Santhanam <tsp@apache.org>