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

F #2202: Live Migration --enforce default in Sunstone (#2203)

This commit is contained in:
Abel Coronado 2018-06-20 15:51:01 +02:00 committed by Tino Vázquez
parent 5a75e220e0
commit 5c072dae4c
15 changed files with 84 additions and 7 deletions

View File

@ -81,6 +81,14 @@ features:
# True to show the group datatable to instantiate VM
show_as_gid_instantiate: true
# If it is set to true, the host capacity will be checked. This will only affect oneadmin requests,
# regular users resize requests will always be enforced
resize_enforce: false
deploy_enforce: false
migrate_enforce: false
tabs:
dashboard-tab:
# The following widgets can be used inside any of the '_per_row' settings

View File

@ -81,6 +81,14 @@ features:
# True to show the group datatable to instantiate VM
show_as_gid_instantiate: true
# If it is set to true, the host capacity will be checked. This will only affect oneadmin requests,
# regular users resize requests will always be enforced
resize_enforce: false
deploy_enforce: false
migrate_enforce: false
tabs:
dashboard-tab:
# The following widgets can be used inside any of the '_per_row' settings

View File

@ -75,6 +75,14 @@ features:
# True to show the attributes info (VM & VRouters)
show_attributes_info: true
# If it is set to true, the host capacity will be checked. This will only affect oneadmin requests,
# regular users resize requests will always be enforced
resize_enforce: false
deploy_enforce: false
migrate_enforce: false
tabs:
dashboard-tab:
# The following widgets can be used inside any of the '_per_row' settings

View File

@ -81,6 +81,14 @@ features:
# True to show the group datatable to instantiate VM
show_as_gid_instantiate: true
# If it is set to true, the host capacity will be checked. This will only affect oneadmin requests,
# regular users resize requests will always be enforced
resize_enforce: false
deploy_enforce: false
migrate_enforce: false
tabs:
dashboard-tab:
# The following widgets can be used inside any of the '_per_row' settings

View File

@ -81,6 +81,14 @@ features:
# True to show the group datatable to instantiate VM
show_as_gid_instantiate: true
# If it is set to true, the host capacity will be checked. This will only affect oneadmin requests,
# regular users resize requests will always be enforced
resize_enforce: false
deploy_enforce: false
migrate_enforce: false
tabs:
dashboard-tab:
# The following widgets can be used inside any of the '_per_row' settings

View File

@ -75,6 +75,14 @@ features:
# True to show the attributes info (VM & VRouters)
show_attributes_info: true
# If it is set to true, the host capacity will be checked. This will only affect oneadmin requests,
# regular users resize requests will always be enforced
resize_enforce: false
deploy_enforce: false
migrate_enforce: false
tabs:
dashboard-tab:
# The following widgets can be used inside any of the '_per_row' settings

View File

@ -81,6 +81,14 @@ features:
# True to show the group datatable to instantiate VM
show_as_gid_instantiate: true
# If it is set to true, the host capacity will be checked. This will only affect oneadmin requests,
# regular users resize requests will always be enforced
resize_enforce: false
deploy_enforce: false
migrate_enforce: false
tabs:
dashboard-tab:
# The following widgets can be used inside any of the '_per_row' settings

View File

@ -81,6 +81,14 @@ features:
# True to show the group datatable to instantiate VM
show_as_gid_instantiate: true
# If it is set to true, the host capacity will be checked. This will only affect oneadmin requests,
# regular users resize requests will always be enforced
resize_enforce: false
deploy_enforce: false
migrate_enforce: false
tabs:
dashboard-tab:
# The following widgets can be used inside any of the '_per_row' settings

View File

@ -75,6 +75,14 @@ features:
# True to show the attributes info (VM & VRouters)
show_attributes_info: true
# If it is set to true, the host capacity will be checked. This will only affect oneadmin requests,
# regular users resize requests will always be enforced
resize_enforce: false
deploy_enforce: false
migrate_enforce: false
tabs:
dashboard-tab:
# The following widgets can be used inside any of the '_per_row' settings

View File

@ -26,6 +26,7 @@ define(function(require) {
var HostsTable = require('tabs/hosts-tab/datatable');
var Notifier = require('utils/notifier');
var Tips = require('utils/tips');
var Config = require('sunstone-config');
/*
CONSTANTS
@ -81,6 +82,8 @@ define(function(require) {
Tips.setup(context);
$("#enforce", context).attr("checked", Config.isFeatureEnabled("deploy_enforce"));
$('#' + DIALOG_ID + 'Form', context).submit(function() {
var extra_info = {};

View File

@ -34,7 +34,7 @@
<div class="large-6 columns">
<input type="checkbox" name="enforce" id="enforce"/>
<label for="enforce">
{{tr "Enforce"}}
{{tr "Enforce capacity checks"}}
<span class="tip">
{{tr "If it is set to true, the host capacity will be checked. This will only affect oneadmin requests, regular users resize requests will always be enforced"}}
</span>

View File

@ -28,6 +28,7 @@ define(function(require) {
var Tips = require('utils/tips');
var Locale = require('utils/locale');
var OpenNebulaVM = require('opennebula/vm');
var Config = require('sunstone-config');
/*
CONSTANTS
@ -84,6 +85,8 @@ define(function(require) {
Tips.setup(context);
$("#enforce", context).attr("checked", Config.isFeatureEnabled("migrate_enforce"));
$('#' + DIALOG_ID + 'Form', context).submit(function() {
var extra_info = {};

View File

@ -34,7 +34,7 @@
<div class="large-6 columns">
<input type="checkbox" name="enforce" id="enforce"/>
<label for="enforce">
{{tr "Enforce"}}
{{tr "Enforce capacity checks"}}
<span class="tip">
{{tr "If it is set to true, the host capacity will be checked. This will only affect oneadmin requests, regular users resize requests will always be enforced"}}
</span>

View File

@ -22,10 +22,9 @@ define(function(require) {
var BaseDialog = require('utils/dialogs/dialog');
var TemplateHTML = require('hbs!./resize/html');
var Sunstone = require('sunstone');
var Notifier = require('utils/notifier');
var Tips = require('utils/tips');
var CapacityInputs = require('tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs');
var WizardFields = require('utils/wizard-fields');
var Config = require('sunstone-config');
/*
CONSTANTS
@ -71,6 +70,8 @@ define(function(require) {
Tips.setup(context);
$("#enforce", context).attr("checked", Config.isFeatureEnabled("resize_enforce"));
$('#' + DIALOG_ID + 'Form', context).submit(function() {
var templateJSON = CapacityInputs.retrieveChanges(context);
@ -98,8 +99,6 @@ define(function(require) {
CapacityInputs.fill(context, that.element);
// TODO context.foundation('slider', 'reflow');
return false;
}

View File

@ -27,7 +27,7 @@
<div class="large-6 columns">
<input type="checkbox" name="enforce" id="enforce"/>
<label class="inline" for="enforce">
{{tr "Enforce"}}
{{tr "Enforce capacity checks"}}
<span class="tip">
{{tr "If it is set to true, the host capacity will be checked. This will only affect oneadmin requests, regular users resize requests will always be enforced"}}
</span>