1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-12 21:57:23 +03:00

migrator for SoftLayer

This commit is contained in:
Jaime Melis 2016-04-15 16:39:05 +02:00
parent cd4178606f
commit c48ebf4eae

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