mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
Feature #1631: Add history action to sunstone
This commit is contained in:
1 parent
6db5aa6c20
commit
7c02cbe692
2 files changed
+28
-2
No files matched your search
@@ -140,6 +140,30 @@ var OpenNebula = {
|
||||
"ERROR",
|
||||
"USER"][value]);
|
||||
break;
|
||||
case "VM_MIGRATE_ACTION":
|
||||
case "vm_migrate_action":
|
||||
state = tr(["none",
|
||||
"migrate",
|
||||
"live-migrate",
|
||||
"shutdown",
|
||||
"shutdown-hard",
|
||||
"undeploy",
|
||||
"undeploy-hard",
|
||||
"hold",
|
||||
"release",
|
||||
"stop",
|
||||
"suspend",
|
||||
"resume",
|
||||
"boot",
|
||||
"destroy",
|
||||
"destroy-recreate",
|
||||
"reboot",
|
||||
"reboot-hard",
|
||||
"resched",
|
||||
"unresched",
|
||||
"poweroff",
|
||||
"poweroff-hard"][value]);
|
||||
break;
|
||||
default:
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -1183,6 +1183,7 @@ function generatePlacementTable(vm){
|
||||
<tr>\
|
||||
<th>'+tr("#")+'</th>\
|
||||
<th>'+tr("Host")+'</th>\
|
||||
<th>'+tr("Action")+'</th>\
|
||||
<th>'+tr("Reason")+'</th>\
|
||||
<th>'+tr("Chg time")+'</th>\
|
||||
<th>'+tr("Total time")+'</th>\
|
||||
@@ -1225,9 +1226,10 @@ function generatePlacementTable(vm){
|
||||
|
||||
|
||||
html += ' <tr>\
|
||||
<td style="width:20%">'+history[i].SEQ+'</td>\
|
||||
<td style="width:5%">'+history[i].SEQ+'</td>\
|
||||
<td style="width:20%">'+history[i].HOSTNAME+'</td>\
|
||||
<td style="width:16%">'+OpenNebula.Helper.resource_state("VM_MIGRATE_REASON",parseInt(history[i].REASON, 10))+'</td>\
|
||||
<td style="width:16%">'+OpenNebula.Helper.resource_state("VM_MIGRATE_ACTION",parseInt(history[i].ACTION, 10))+'</td>\
|
||||
<td style="width:10%">'+OpenNebula.Helper.resource_state("VM_MIGRATE_REASON",parseInt(history[i].REASON, 10))+'</td>\
|
||||
<td style="width:16%">'+pretty_time(history[i].STIME)+'</td>\
|
||||
<td style="width:16%">'+pretty_time_runtime(dtime)+'</td>\
|
||||
<td style="width:16%">'+pretty_time_runtime(dtime2)+'</td>\
|
||||
|
||||
Reference in new issue
Block a user