Bug #1210: Add BOOT_STOPPED state to OCA (both Ruby & Java), Sunstone and oZones

This commit is contained in:
Carlos Martín committed 2012-10-17 15:44:21 +02:00
1 parent 04a4fe9606
commit ae8a187534
4 files changed
+10 -5

No files matched your search

@@ -87,7 +87,8 @@ public class VirtualMachine extends PoolElement{
"SHUTDOWN_POWEROFF",
"BOOT_UNKNOWN",
"BOOT_POWEROFF",
"BOOT_SUSPENDED" };
"BOOT_SUSPENDED",
"BOOT_STOPPED" };
private static final String[] SHORT_LCM_STATES =
{
@@ -112,6 +113,7 @@ public class VirtualMachine extends PoolElement{
"poff",
"boot",
"boot",
"boot",
"boot" };
/**
+3 -2
View File
@@ -44,7 +44,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 HOTPLUG SHUTDOWN_POWEROFF
BOOT_UNKNOWN BOOT_POWEROFF BOOT_SUSPENDED}
BOOT_UNKNOWN BOOT_POWEROFF BOOT_SUSPENDED BOOT_STOPPED}
SHORT_VM_STATES={
"INIT" => "init",
@@ -79,7 +79,8 @@ module OpenNebula
"SHUTDOWN_POWEROFF" => "shut",
"BOOT_UNKNOWN" => "boot",
"BOOT_POWEROFF" => "boot",
"BOOT_SUSPENDED" => "boot"
"BOOT_SUSPENDED" => "boot",
"BOOT_STOPPED" => "boot"
}
MIGRATE_REASON=%w{NONE ERROR STOP_RESUME USER CANCEL}
+2 -1
View File
@@ -100,7 +100,8 @@ var oZones = {
"SHUTDOWN_POWEROFF",
"BOOT_UNKNOWN",
"BOOT_POWEROFF",
"BOOT_SUSPENDED"][value]);
"BOOT_SUSPENDED",
"BOOT_STOPPED"][value]);
break;
case "IMAGE":
case "image":
+2 -1
View File
@@ -108,7 +108,8 @@ var OpenNebula = {
"SHUTDOWN_POWEROFF",
"BOOT_UNKNOWN",
"BOOT_POWEROFF",
"BOOT_SUSPENDED"][value]);
"BOOT_SUSPENDED",
"BOOT_STOPPED"][value]);
break;
case "IMAGE":
case "image":