From c48ebf4eae3503ced41c3cae1b2f5359507075f2 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Fri, 15 Apr 2016 16:39:05 +0200 Subject: [PATCH] migrator for SoftLayer --- src/onedb/local/4.13.85_to_4.90.0.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/onedb/local/4.13.85_to_4.90.0.rb b/src/onedb/local/4.13.85_to_4.90.0.rb index 50559f6bbe..d567af69ef 100644 --- a/src/onedb/local/4.13.85_to_4.90.0.rb +++ b/src/onedb/local/4.13.85_to_4.90.0.rb @@ -411,6 +411,7 @@ module Migrator has_xen_hosts = false has_vmware_hosts = false + has_sl_hosts = false @db.transaction do @db.fetch("SELECT * FROM old_host_pool") do |row| @@ -431,6 +432,12 @@ module Migrator has_vmware_hosts = true end + + if vm_mad.match(/sl/) || im_mad.match(/sl/) + do_disable = true + has_sl_hosts = true + end + if do_disable doc.root.at_xpath('STATE').content = 4 @@ -471,6 +478,20 @@ module Migrator puts end + if has_sl_hosts + puts "**************************************************************" + puts "* WARNING WARNING WARNING WARNING WARNING WARNING WARNING *" + puts "**************************************************************" + puts + puts "SoftLayer is no longer included in the core distribution. It is" + puts "however available as an addon which must be manually installed:" + puts "https://github.com/OpenNebula/addon-softlayer" + puts + puts "Note that the host has been automatically disabled. After installing" + puts "the addon you can manually enable it." + puts + end + log_time() # Move HOST/VN_MAD --> VNET/VN_MAD