listAutoscaleVmProfiles: added zoneId to the list of optional api parameters
Resource metadata support for autoscale vm group object
findbugs equals on same type of objects
findbugs bitwise or guaranteed positively bitfields
CLOUDSTACK-5996: UI - In project view, the first listRotuers API(without projectid=-1) will return the same objects as the second listRouters API(with projectid=-1), because in project view, all API calls are appended with projectid=[projectID]. Therefore, we only call the second listRouters API(with projectid=-1) in non-project view.
CLOUDSTACK-5997:
Template state changes side affects
VPC Support for contrail networking

Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
add charset arg to InputStreamReader constructor

thanks to findbugs.
CLOUDSTACK-5993: Cloud agent fails to start on 32-bit system vms (cpvm and ssvm) created with 4GB RAM offering
Capped the max heap size of the JVM at 2600M for 32-bit system VMs. For 64-bit, existing logic works fine.
CLOUDSTACK-5989: Trying to start a vm while 'vm snapshot' is in progress results in inconsistency
The fix is to fail the start operation if a vm snapshot is in progress
CLOUDSTACK-5998. [AWSAPI] describe addresses call returns a fault with "domain cannot be null!!".
CLOUDSTACK-6000: When expunging fails, move volume state back to
Destroy, so that the cleanup thread will try again on next run.
Fix for a potential NPE
Fix findbugs findings and remove dead code
updating the jre to version 7 on system vms

(cherry picked from commit fc2e7ec70a1cc48a10a168ec3df607b49a7bcdf6)
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
update packages list before getting jre 7

(cherry picked from commit 5121f8cd4e4adcdf23b6ec25cb1c28bec8f417a7)
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
CLOUDSTACK-5566: "Entity com.cloud.event.EventVO$$EnhancerByCGLIB$$9e317420@aeb3d75
and entity com.cloud.event.EventVO$$EnhancerByCGLIB$$9e317420@5a0fd1ec belong to
different accounts"  message while deleting multiple events .