1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

feature #1223: Add HOTPLUG to the LCM states in OCA ruby, OCA Java, Ozones GUI and Sunstone GUI

This commit is contained in:
Jaime Melis 2012-06-15 14:02:08 +02:00
parent e2927e871a
commit ba04cb0420
4 changed files with 11 additions and 6 deletions

View File

@ -78,7 +78,8 @@ public class VirtualMachine extends PoolElement{
"CANCEL",
"FAILURE",
"CLEANUP",
"UNKNOWN" };
"UNKNOWN".
"HOTPLUG" };
private static final String[] SHORT_LCM_STATES =
{
@ -98,7 +99,8 @@ public class VirtualMachine extends PoolElement{
"shut",
"fail",
"dele",
"unkn" };
"unkn",
"hotp" };
/**
* Creates a new VM representation.

View File

@ -42,7 +42,7 @@ module OpenNebula
LCM_STATE=%w{LCM_INIT PROLOG BOOT RUNNING MIGRATE SAVE_STOP SAVE_SUSPEND
SAVE_MIGRATE PROLOG_MIGRATE PROLOG_RESUME EPILOG_STOP EPILOG
SHUTDOWN CANCEL FAILURE CLEANUP UNKNOWN}
SHUTDOWN CANCEL FAILURE CLEANUP UNKNOWN HOTPLUG}
SHORT_VM_STATES={
"INIT" => "init",
@ -71,7 +71,8 @@ module OpenNebula
"CANCEL" => "shut",
"FAILURE" => "fail",
"CLEANUP" => "clea",
"UNKNOWN" => "unkn"
"UNKNOWN" => "unkn",
"HOTPLUG" => "hotp"
}
MIGRATE_REASON=%w{NONE ERROR STOP_RESUME USER CANCEL}

View File

@ -89,7 +89,8 @@ var oZones = {
"CANCEL",
"FAILURE",
"CLEANUP",
"UNKNOWN"][value];
"UNKNOWN",
"HOTPLUG"][value];
break;
case "IMAGE","image":
return ["INIT",

View File

@ -93,7 +93,8 @@ var OpenNebula = {
"CANCEL",
"FAILURE",
"CLEANUP",
"UNKNOWN"][value]);
"UNKNOWN"
"HOTPLUG"][value]);
break;
case "IMAGE":
case "image":