[root@devarch-server1-05075 yum.repos.d]# onedb upgrade -v --sqlite /var/lib/one/one.db Version read: Shared tables 4.11.80 : OpenNebula 4.12.1 daemon bootstrap Local tables 4.13.85 : Database migrated from 4.11.80 to 4.13.85 (OpenNebula 4.13.85) by onedb command. Sqlite database backup stored in /var/lib/one/one.db_2016-10-27_9:25:56.bck Use 'onedb restore' or copy the file back to restore the DB. >>> Running migrators for shared tables > Running migrator /usr/lib/one/ruby/onedb/shared/4.11.80_to_4.90.0.rb > Done in 1.67s > Running migrator /usr/lib/one/ruby/onedb/shared/4.90.0_to_5.2.0.rb > Done in 0.45s Database migrated from 4.11.80 to 5.2.0 (OpenNebula 5.2.0) by onedb command. >>> Running migrators for local tables > Running migrator /usr/lib/one/ruby/onedb/local/4.13.85_to_4.90.0.rb > Done in 27.63s Database migrated from 4.13.85 to 4.90.0 (OpenNebula 4.90.0) by onedb command. Total time: 29.96s [root@devarch-server1-05075 yum.repos.d]# onedb fsck --sqlite /var/lib/one/one.db Sqlite database backup stored in /var/lib/one/one.db_2016-10-27_9:26:46.bck Use 'onedb restore' or copy the file back to restore the DB. VNet 1 VN_MAD element is missing from the TEMPLATE VNet 3 VN_MAD element is missing from the TEMPLATE VNet 4 VN_MAD element is missing from the TEMPLATE VNet 5 VN_MAD element is missing from the TEMPLATE VNet 6 VN_MAD element is missing from the TEMPLATE VNet 7 VN_MAD element is missing from the TEMPLATE VNet 8 VN_MAD element is missing from the TEMPLATE VNet 9 VN_MAD element is missing from the TEMPLATE VNet 11 VN_MAD element is missing from the TEMPLATE VNet 12 VN_MAD element is missing from the TEMPLATE VNet 13 VN_MAD element is missing from the TEMPLATE VNet 14 VN_MAD element is missing from the TEMPLATE VNet 15 VN_MAD element is missing from the TEMPLATE VNet 16 VN_MAD element is missing from the TEMPLATE VNet 17 VN_MAD element is missing from the TEMPLATE VNet 18 VN_MAD element is missing from the TEMPLATE VNet 19 VN_MAD element is missing from the TEMPLATE VNet 20 VN_MAD element is missing from the TEMPLATE VNet 21 VN_MAD element is missing from the TEMPLATE VNet 22 VN_MAD element is missing from the TEMPLATE VNet 23 VN_MAD element is missing from the TEMPLATE VNet 24 VN_MAD element is missing from the TEMPLATE VNet 25 VN_MAD element is missing from the TEMPLATE VNet 26 VN_MAD element is missing from the TEMPLATE VNet 27 VN_MAD element is missing from the TEMPLATE VNet 28 VN_MAD element is missing from the TEMPLATE VNet 29 VN_MAD element is missing from the TEMPLATE VNet 30 VN_MAD element is missing from the TEMPLATE VNet 31 VN_MAD element is missing from the TEMPLATE VNet 32 VN_MAD element is missing from the TEMPLATE VNet 33 VN_MAD element is missing from the TEMPLATE VNet 34 VN_MAD element is missing from the TEMPLATE VNet 35 VN_MAD element is missing from the TEMPLATE VNet 36 VN_MAD element is missing from the TEMPLATE VNet 38 VN_MAD element is missing from the TEMPLATE VNet 95 VN_MAD element is missing from the TEMPLATE VNet 99 VN_MAD element is missing from the TEMPLATE VNet 101 VN_MAD element is missing from the TEMPLATE VNet 102 VN_MAD element is missing from the TEMPLATE VNet 108 VN_MAD element is missing from the TEMPLATE VNet 109 VN_MAD element is missing from the TEMPLATE VNet 110 VN_MAD element is missing from the TEMPLATE VNet 113 VN_MAD element is missing from the TEMPLATE VNet 115 VN_MAD element is missing from the TEMPLATE VNet 116 VN_MAD element is missing from the TEMPLATE [UNREPAIRED] VM Template 4 OS/BOOT contains deprecated format "hd", but DISK #0 of type hd could not be found to fix it automatically [UNREPAIRED] VM Template 19 OS/BOOT contains deprecated format "cdrom,hd", but DISK #0 of type cdrom could not be found to fix it automatically [UNREPAIRED] VM Template 20 OS/BOOT contains deprecated format "cdrom,hd", but DISK #0 of type cdrom could not be found to fix it automatically [UNREPAIRED] VM Template 23 OS/BOOT contains deprecated format "cdrom,hd", but DISK #0 of type cdrom could not be found to fix it automatically [UNREPAIRED] VM Template 32 OS/BOOT contains deprecated format "cdrom,hd", but DISK #0 of type cdrom could not be found to fix it automatically [UNREPAIRED] VM Template 36 OS/BOOT contains deprecated format "cdrom,hd", but DISK #0 of type cdrom could not be found to fix it automatically [UNREPAIRED] VM Template 37 OS/BOOT contains deprecated format "cdrom,hd", but DISK #0 of type cdrom could not be found to fix it automatically [UNREPAIRED] VM Template 43 OS/BOOT contains deprecated format "cdrom,hd", but DISK #0 of type cdrom could not be found to fix it automatically VM Template 46 OS/BOOT contains deprecated format "hd", is was updated to disk0 VM Template 47 OS/BOOT contains deprecated format "hd", is was updated to disk0 VM Template 48 OS/BOOT contains deprecated format "hd", is was updated to disk0 undefined method `content' for nil:NilClass /usr/lib/one/ruby/onedb/fsck.rb:2640:in `get_image_from_name' /usr/lib/one/ruby/onedb/fsck.rb:2607:in `block in get_disk_id' /usr/share/gems/gems/nokogiri-1.6.1/lib/nokogiri/xml/node_set.rb:237:in `block in each' /usr/share/gems/gems/nokogiri-1.6.1/lib/nokogiri/xml/node_set.rb:236:in `upto' /usr/share/gems/gems/nokogiri-1.6.1/lib/nokogiri/xml/node_set.rb:236:in `each' /usr/lib/one/ruby/onedb/fsck.rb:2602:in `each_with_index' /usr/lib/one/ruby/onedb/fsck.rb:2602:in `get_disk_id' /usr/lib/one/ruby/onedb/fsck.rb:2158:in `block (3 levels) in fsck' /usr/lib/one/ruby/onedb/fsck.rb:2144:in `each' /usr/lib/one/ruby/onedb/fsck.rb:2144:in `block (2 levels) in fsck' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/dataset/actions.rb:139:in `block in each' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/adapters/sqlite.rb:334:in `block (2 levels) in fetch_rows' /usr/local/share/gems/gems/sqlite3-1.3.10/lib/sqlite3/resultset.rb:138:in `each' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/adapters/sqlite.rb:325:in `block in fetch_rows' /usr/local/share/gems/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:269:in `query' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/adapters/sqlite.rb:185:in `block (2 levels) in _execute' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/database/logging.rb:33:in `log_yield' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/adapters/sqlite.rb:185:in `block in _execute' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/database/connecting.rb:250:in `block in synchronize' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/connection_pool/threaded.rb:95:in `hold' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/database/connecting.rb:250:in `synchronize' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/adapters/sqlite.rb:178:in `_execute' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/adapters/sqlite.rb:128:in `execute' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/dataset/actions.rb:921:in `execute' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/adapters/sqlite.rb:319:in `fetch_rows' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/dataset/actions.rb:139:in `each' /usr/lib/one/ruby/onedb/fsck.rb:2121:in `block in fsck' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/database/transactions.rb:134:in `_transaction' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/database/transactions.rb:108:in `block in transaction' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/database/connecting.rb:250:in `block in synchronize' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/connection_pool/threaded.rb:99:in `hold' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/database/connecting.rb:250:in `synchronize' /usr/local/share/gems/gems/sequel-4.22.0/lib/sequel/database/transactions.rb:97:in `transaction' /usr/lib/one/ruby/onedb/fsck.rb:2120:in `fsck' /usr/lib/one/ruby/onedb/onedb.rb:280:in `fsck' /bin/onedb:329:in `block (2 levels) in
' /usr/lib/one/ruby/cli/command_parser.rb:449:in `call' /usr/lib/one/ruby/cli/command_parser.rb:449:in `run' /usr/lib/one/ruby/cli/command_parser.rb:76:in `initialize' /bin/onedb:222:in `new' /bin/onedb:222:in `
' Error running fsck version 5.2.0 The database will be restored Sqlite database backup restored in /var/lib/one/one.db