DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.

DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
Purpose
Cloudstack(CS) relies on custom high-availability(HA) logic for user VMs running on Xenserver(XS). The reason for doing it like this may be due the fact that native HA capabilities in XS was not mature enough during the initial days. Also in the custom HA logic, CS has to correctly determine the state of a VM from the hypervisor(HV) before it can take any action. In case there are any issues in determining the state, HA mechanism can get impacted. Since HV best knows the state of the VM it is a better approach to rely on native HA capabilities.
Suggested changes
Jira ticket: https://issues.apache.org/jira/browse/CLOUDSTACK-5203
Prereqs
XS clusters needs to be configured for HA outside of CS. Without this HA for user VMs will not work. Earlier this was not required as HA was managed by CS. Refer to XS 6.2 admin guide [1] for setting up HA enabled clusters.
Impacted scenarios
Non-impacted scenarios
Implementation
The following changes will be made:
System VM HA
For system VMs there is already application logic to do HA. Some of them will be enhanced further.
SSVM/CPVM: These are monitored on a regular basis. If these are found to be stopped then the monitoring application restarts them, and if not found then recreated. In case the agent running on these VMs is not responding then only the agent state is updated to 'Disconnected' in the database but nothing else is done. Even in this case a new VM needs to be started. Created a bug for this [2].
Upgrade
Upgrading an existing XS 6.2 cluster would need the following changes:
[1] http://support.citrix.com/servlet/KbServlet/download/34969-102-704897/reference.pdf
(refer section 3.8)
[2]