Fix mock socket client/server test.

Normally a server will bind to 0.0.0.0, which is not an
address that a client can specify to connect to.
127.0.0.1 or ::1 will do.
(cherry picked from commit 1e9f066df2fd4f6b27e9866eefd01611d7184e45)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
Some rework stratosphere ssp plugin

* add missing command entry in commands.properties
* migrate httpclient 3.x to 4.x
* fix the broken SspClient
* add webapp session checking in mock ssp server
(cherry picked from commit db3dc2ee17c699f1abf42ea2fbe09ec2748caa4a)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
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.
(cherry picked from commit 1ae02009b562692a7da54f2694a9962f55660aa3)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
CLOUDSTACK-6000: When expunging fails, move volume state back to
Destroy, so that the cleanup thread will try again on next run.
(cherry picked from commit 1aa1b3e19cfb1e06c35840d6c5bae450d9890a12)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
CLOUDSTACK-6002. [vCenter 5.5] restoreVM fails with ROOT-x-000001.vmdk not found.
(cherry picked from commit ba5b302ae6cf5b1c38f226f5ded0bbaa5fe85248)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
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 .
(cherry picked from commit b811bc0945f9d028d814356b98ccd58c05f71793)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
CLOUDSTACK-5062: Deleting Load Balancing Rule fails when generating
usage events are enabled

Signed-off-by: Daan Hoogland <daan@onecht.net>(cherry picked from commit 62a259ffa9b4daabcbe4f9afe9a78eadebbb7bff)
Signed-off-by: Animesh Chaturvedi <animesh@apache.org>