diff --git a/include/RequestManagerAllocate.h b/include/RequestManagerAllocate.h index 456c51410b..55553aa3ed 100644 --- a/include/RequestManagerAllocate.h +++ b/include/RequestManagerAllocate.h @@ -270,7 +270,7 @@ public: HostAllocate(): RequestManagerAllocate("HostAllocate", "Allocates a new host", - "A:sssssi", + "A:ssssi", false) { Nebula& nd = Nebula::instance(); @@ -291,7 +291,7 @@ public: int get_cluster_id(xmlrpc_c::paramList const& paramList) { - return RequestManagerAllocate::get_cluster_id(paramList, 5); + return RequestManagerAllocate::get_cluster_id(paramList, 4); }; int add_to_cluster( diff --git a/src/cli/one_helper/onehost_helper.rb b/src/cli/one_helper/onehost_helper.rb index effc24456c..22408730de 100644 --- a/src/cli/one_helper/onehost_helper.rb +++ b/src/cli/one_helper/onehost_helper.rb @@ -378,7 +378,6 @@ class OneHostHelper < OpenNebulaHelper::OneHelper puts str % ["STATE", host.state_str] puts str % ["IM_MAD", host['IM_MAD']] puts str % ["VM_MAD", host['VM_MAD']] - puts str % ["VN_MAD", host['VN_MAD']] puts str % ["LAST MONITORING TIME", OpenNebulaHelper.time_to_str(host['LAST_MON_TIME'])] puts diff --git a/src/cli/onehost b/src/cli/onehost index f62891ff2a..9f50150298 100755 --- a/src/cli/onehost +++ b/src/cli/onehost @@ -65,14 +65,6 @@ cmd=CommandParser::CmdParser.new(ARGV) do :format => String } - VNET = { - :name => "net", - :short => "-n vnet_mad", - :large => "--net vnet_mad" , - :description => "Set the network driver for the host", - :format => String - } - FORCE = { :name => "force", :large => "--force" , @@ -87,7 +79,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do " rsync command must be installed in the frontend and nodes." } - CREAT_OPTIONS = [ IM, VMM, VNET, OneClusterHelper::CLUSTER ] + CREAT_OPTIONS = [ IM, VMM, OneClusterHelper::CLUSTER ] SYNC_OPTIONS = [ OneClusterHelper::CLUSTER, FORCE, RSYNC ] ######################################################################## @@ -111,11 +103,10 @@ cmd=CommandParser::CmdParser.new(ARGV) do EOT command :create, create_desc, :hostname, :options=>CREAT_OPTIONS do - if options[:im].nil? or options[:vm].nil? or options[:net].nil? + if options[:im].nil? || options[:vm].nil? STDERR.puts "Drivers are mandatory to create a host:" STDERR.puts "\t -i information driver" STDERR.puts "\t -v hypervisor driver" - STDERR.puts "\t -n network driver" exit -1 end @@ -125,7 +116,6 @@ cmd=CommandParser::CmdParser.new(ARGV) do host.allocate(args[0], options[:im], options[:vm], - options[:net], cid) end end diff --git a/src/oca/ruby/opennebula/host.rb b/src/oca/ruby/opennebula/host.rb index 23f61e4a9d..530c0849e8 100644 --- a/src/oca/ruby/opennebula/host.rb +++ b/src/oca/ruby/opennebula/host.rb @@ -89,13 +89,12 @@ module OpenNebula # @param hostname [String] Name of the new Host. # @param im [String] Name of the im_driver (information/monitoring) # @param vmm [String] Name of the vmm_driver (hypervisor) - # @param vnm [String] Name of the vnm_driver (networking) # @param cluster_id [String] Id of the cluster, -1 to use default # # @return [Integer, OpenNebula::Error] the new ID in case of # success, error otherwise - def allocate(hostname,im,vmm,vnm,cluster_id=ClusterPool::NONE_CLUSTER_ID) - super(HOST_METHODS[:allocate],hostname,im,vmm,vnm,cluster_id) + def allocate(hostname, im, vmm, cluster_id=ClusterPool::NONE_CLUSTER_ID) + super(HOST_METHODS[:allocate], hostname, im, vmm, cluster_id) end # Deletes the Host diff --git a/src/sunstone/models/OpenNebulaJSON/HostJSON.rb b/src/sunstone/models/OpenNebulaJSON/HostJSON.rb index 5c6cf0db47..557a1e4213 100644 --- a/src/sunstone/models/OpenNebulaJSON/HostJSON.rb +++ b/src/sunstone/models/OpenNebulaJSON/HostJSON.rb @@ -29,7 +29,6 @@ module OpenNebulaJSON self.allocate(host_hash['name'], host_hash['im_mad'], host_hash['vm_mad'], - host_hash['vnm_mad'], host_hash['cluster_id'].to_i) end diff --git a/src/sunstone/public/app/tabs/hosts-tab/form-panels/create.js b/src/sunstone/public/app/tabs/hosts-tab/form-panels/create.js index 97eaec5f1a..97533547d9 100644 --- a/src/sunstone/public/app/tabs/hosts-tab/form-panels/create.js +++ b/src/sunstone/public/app/tabs/hosts-tab/form-panels/create.js @@ -117,19 +117,16 @@ define(function(require) { if (this.value == "custom") { $(".vcenter_credentials", context).hide(); - $("#vnm_mads", context).show(); $("#name_container", context).show(); Sunstone.showFormPanelSubmit(TAB_ID); $(".drivers", context).show(); } else if (this.value == "vcenter") { - $("#vnm_mads", context).hide(); $("#name_container", context).hide(); $(".vcenter_credentials", context).show(); Sunstone.hideFormPanelSubmit(TAB_ID); $(".drivers", context).hide(); } else { $(".vcenter_credentials", context).hide(); - $("#vnm_mads", context).show(); $("#name_container", context).show(); Sunstone.showFormPanelSubmit(TAB_ID); $(".drivers", context).hide(); @@ -190,9 +187,8 @@ define(function(require) { }); // Show custom driver input only when custom is selected in selects - $('input[name="custom_vmm_mad"],' + - 'input[name="custom_im_mad"],' + - 'input[name="custom_vnm_mad"]', context).parent().hide(); + $('input[name="custom_vmm_mad"],' + 'input[name="custom_im_mad"]', + context).parent().hide(); $('select#vmm_mad', context).change(function() { if ($(this).val() == "custom") @@ -208,13 +204,6 @@ define(function(require) { $('input[name="custom_im_mad"]').parent().hide(); }); - $('select#vnm_mad', context).change(function() { - if ($(this).val() == "custom") - $('input[name="custom_vnm_mad"]').parent().show(); - else - $('input[name="custom_vnm_mad"]').parent().hide(); - }); - $('#create_host_form').on("keyup keypress", function(e) { var code = e.keyCode || e.which; if (code == 13) { @@ -242,14 +231,11 @@ define(function(require) { vmm_mad = vmm_mad == "custom" ? $('input[name="custom_vmm_mad"]').val() : vmm_mad; var im_mad = $('select#im_mad', context).val(); im_mad = im_mad == "custom" ? $('input[name="custom_im_mad"]').val() : im_mad; - var vnm_mad = $('select#vnm_mad', context).val(); - vnm_mad = vnm_mad == "custom" ? $('input[name="custom_vnm_mad"]').val() : vnm_mad; var host_json = { "host": { "name": name, "vm_mad": vmm_mad, - "vnm_mad": vnm_mad, "im_mad": im_mad, "cluster_id": cluster_id } diff --git a/src/sunstone/public/app/tabs/hosts-tab/form-panels/create/wizard.hbs b/src/sunstone/public/app/tabs/hosts-tab/form-panels/create/wizard.hbs index 5f323c55a6..d08b5118b3 100644 --- a/src/sunstone/public/app/tabs/hosts-tab/form-panels/create/wizard.hbs +++ b/src/sunstone/public/app/tabs/hosts-tab/form-panels/create/wizard.hbs @@ -35,26 +35,6 @@ -
-
-
- - -
-
- - -
-
-
diff --git a/src/sunstone/public/app/tabs/hosts-tab/panels/info/html.hbs b/src/sunstone/public/app/tabs/hosts-tab/panels/info/html.hbs index f9fc4ef8bc..496b7016ea 100644 --- a/src/sunstone/public/app/tabs/hosts-tab/panels/info/html.hbs +++ b/src/sunstone/public/app/tabs/hosts-tab/panels/info/html.hbs @@ -44,11 +44,6 @@ {{element.VM_MAD}} - - {{tr "VN MAD"}} - {{element.VN_MAD}} - -