Bug #4695

Address family mismatch - onedb fsck / upgrade

Added by Sebastian Mangelkramer over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:07/29/2016
Priority:NormalDue date:
Assignee:Carlos Martín% Done:

0%

Category:Core & System
Target version:Release 5.2
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.14

Description

Here is the Bug Ticket for my post ( https://forum.opennebula.org/t/address-family-mismatch-onedb-fsck-upgrade/ ) as Carlos advised to me.

Problem is a "address family mismatch" error when running "onedb fsck":

oneadmin@cloud000-dev-lab:~$ onedb fsck -S localhost -u oneadmin -p XXXXX -d opennebula
MySQL dump stored in /var/lib/one/mysql_localhost_opennebula_2016-7-26_21:0:40.sql
Use 'onedb restore' or restore the DB using the mysql command:
mysql -u user -h server -P port db_name < backup_file

Host 0 CPU_USAGE has 7520 is 7519

address family mismatch
/usr/lib/ruby/2.1.0/ipaddr.rb:500:in `initialize'
/usr/lib/one/ruby/onedb/fsck.rb:1350:in `new'
/usr/lib/one/ruby/onedb/fsck.rb:1350:in `block (3 levels) in fsck'
/usr/lib/one/ruby/onedb/fsck.rb:1337:in `each'
/usr/lib/one/ruby/onedb/fsck.rb:1337:in `block (2 levels) in fsck'
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:139:in `block in each'
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:312:in `block (2 levels) in fetch_rows'
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:367:in `yield_rows'
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:312:in `block in fetch_rows'
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:177:in `_execute'
/usr/lib/ruby/vendor_ruby/sequel/adapters/shared/mysql_prepared_statements.rb:34:in `block in execute'
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `block in synchronize'
/usr/lib/ruby/vendor_ruby/sequel/connection_pool/threaded.rb:91:in `hold'
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `synchronize'
/usr/lib/ruby/vendor_ruby/sequel/adapters/shared/mysql_prepared_statements.rb:34:in `execute'
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:906:in `execute'
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:351:in `execute'
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:296:in `fetch_rows'
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:139:in `each'
/usr/lib/one/ruby/onedb/fsck.rb:1328:in `block in fsck'
/usr/lib/ruby/vendor_ruby/sequel/database/transactions.rb:126:in `_transaction'
/usr/lib/ruby/vendor_ruby/sequel/database/transactions.rb:100:in `block in transaction'
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `block in synchronize'
/usr/lib/ruby/vendor_ruby/sequel/connection_pool/threaded.rb:104:in `hold'
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `synchronize'
/usr/lib/ruby/vendor_ruby/sequel/database/transactions.rb:89:in `transaction'
/usr/lib/one/ruby/onedb/fsck.rb:1327:in `fsck'
/usr/lib/one/ruby/onedb/onedb.rb:278:in `fsck'
/usr/bin/onedb:317:in `block (2 levels) in <main>'
/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'
/usr/bin/onedb:210:in `new'
/usr/bin/onedb:210:in `<main>'

Error running fsck version 4.11.80
The database will be restored
MySQL DB opennebula at localhost restored.

Associated revisions

Revision 2d1f2da7
Added by Carlos Martín over 4 years ago

Bug #4695: Fsck fixes vnet IPs with whitespaces

Revision 2c3b4db6
Added by Carlos Martín over 4 years ago

Bug #4695: Fsck fixes vnet IPs with whitespaces

(cherry picked from commit 2d1f2da7947287b8010397f869b1b78bb17530e2)

History

#1 Updated by Ruben S. Montero over 4 years ago

  • Target version set to Release 5.2

#2 Updated by Carlos Martín over 4 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

Also available in: Atom PDF