CreateVPC: validate that the zone exists before checking its attributes
CLOUDSTACK-728 For Nicira NVP a specified port-group must be used,
instead of a dynamically configured one.

Refactor bits of the HypervisorHostHelper to better
support multiple BroadcastDomainTypes

Cleanup some parts of the code that was using tab indents and removed some dead code.
CLOUDSTACK-728 Set vmspec extra config for the Nicira NVP vApp
Fix an issue of createVolumeCmd for regular user.
Gracefully handle racing condition in updating state of dataobject and
data store mapping table.
Add check for some cli programs

Add check for faketime and vhd-util for xen export.
CLOUDSTACK-2254: Tests for Affinity and Anti Affinity rules

TestCreateAffinityGroup
TestListAffinityGroups
TestDeleteAffinityGroups
TestUpdateVMAffinityGroups
TestDeployVMAffinityGroups
TestAffinityGroupsAdminUser

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-3231: Update service offering Id of allocated Vm usage whem service offering changes for a Vm
CLOUDSTACK-3236, CLOUDSTACK-892
delete extra file on portable ip
CLOUDSTACK-1192: Disk I/O Statistics (vm stats) support KVM and XenServer only util 2013/06/25
cmds is not a list. just regular string to ssh

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
Fix reviewboard messup of python indentation

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
reverts commit 7e96bf5f1989f43db969ee026e34ae96efa54cf0 which causes regression of CreateAccount dialog.
FileUtil simplified

- writeToFile removed since no references to it
- readFileAsString replaced with FileUtils.readFileToString
- minor code duplication removed in dependent method getNicStats
- unit test added

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
CLOUDSTACK-3242: fixed updateTemplate and updateTemplate permissions security checks for project based templates
Removed Dead Code from Management Server Hyper-V 2012 Support

Update ImageFormat enum to include VHDX format introduced with Hyper-V
Server 2012.
Remove existing Hyper-V plugin, because it does not work and is dead
code.
Remove references to existing Hyper-V plugin from config files.
Remove Hypervisor.HypervisorType.Hyperv special cases from manager code
that are unused or unsupported.
Specifically, there is no CIFS secondary storage class
"CifsSecondaryStorageResource".  Also, the Hyper-V plugin's
ServerResource is contacted by the management server and not the other
way around.
Add Hyperv-V support to ListHypervisorsCmd API call

Signed-off-by: Edison Su <sudison@gmail.com>
CLOUDSTACK-3064: Able to create an instance from different account of the same domain without
using affinity group even if the zone is dedicated to an account. The check to make sure that
explicit resources are not picked up for non-explicit deployment was present only at the domain
level for zones. Added a check at account level too.
Don't generate bzipped hyperv image
CLOUDSTACK-3245: non admin user not able to register template
Reviewed-by: Alena Prokharchyk