From 07834dc6da1f73f46db17f5409e89519a4e1d283 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Fri, 6 Feb 2015 18:59:25 +0100 Subject: [PATCH] Feature #3383: Add import running VMs from Sunstone Add auto deploy --- src/cli/onevcenter | 4 +- src/sunstone/public/js/plugins/hosts-tab.js | 160 ++++++++++++++++++ src/sunstone/routes/vcenter.rb | 20 +++ src/vmm_mad/remotes/vcenter/vcenter_driver.rb | 22 ++- 4 files changed, 202 insertions(+), 4 deletions(-) diff --git a/src/cli/onevcenter b/src/cli/onevcenter index 211b480702..f492a2e61b 100755 --- a/src/cli/onevcenter +++ b/src/cli/onevcenter @@ -277,9 +277,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do "#{rc.message}\n" end - host_id = OpenNebulaHelper.rname_to_id(v[:host], "HOST")[1] - - rc = one_v.deploy host_id + rc = one_v.deploy v[:host_id] if ::OpenNebula.is_error?(rc) STDOUT.puts " Error creating Virtual Machine: "\ diff --git a/src/sunstone/public/js/plugins/hosts-tab.js b/src/sunstone/public/js/plugins/hosts-tab.js index e6fec29434..64b509b44b 100644 --- a/src/sunstone/public/js/plugins/hosts-tab.js +++ b/src/sunstone/public/js/plugins/hosts-tab.js @@ -153,6 +153,10 @@ var create_host_tmpl =
\
\
\ +
\ +
\ +
\ +
\
\
\