migrator for SoftLayer

This commit is contained in:
Jaime Melis committed 2016-04-15 16:39:05 +02:00
1 parent cd4178606f
commit c48ebf4eae
1 file changed
+21
+21
View File
@@ -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