Re: [one-users] onedb upgrade and XML

2014-04-16 Thread Hyun Woo Kim
Thanks for confirming this. Hyunwoo Fermicloud From: Carlos Martín Sánchez mailto:cmar...@opennebula.org>> Date: Wednesday, April 16, 2014 8:08 AM To: Hyunwoo Kim mailto:hyun...@fnal.gov>> Cc: users mailto:users@lists.opennebula.org>> Subject: Re: [one-users] onedb upgrade

Re: [one-users] onedb upgrade and XML

2014-04-16 Thread Carlos Martín Sánchez
Hi, Your approach looks correct. The cpu element should also work with simple text instead of cdata. Refer to the REXML docs for more information: http://ruby-doc.org/stdlib-2.1.1/libdoc/rexml/rdoc/index.html Regards -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud M

Re: [one-users] onedb upgrade and XML

2014-04-15 Thread Hyun Woo Kim
I have found one possible solution I modified /usr/lib/one/ruby/onedb/3.8.5_to_3.9.30.rb as follows; @db.fetch("SELECT * FROM old_template_pool") do |row| doc = Document.new(row[:body]) template = nil doc.root.each_element("TEMPLATE") do |e|

[one-users] onedb upgrade and XML

2014-04-15 Thread Hyun Woo Kim
Hello, onedb upgrade command of ON44 against an old DB fails to do the following two tasks. 1. should have been inserted, but missing 2. in /VMTEMPLATE/TEMPLATE/GRAPHICS/ should have been removed, but still there.. What should I do about these? I am investigating a possibility to use xpath