Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onedb fsck typo in image check #5262

Closed
7 tasks
vholer opened this issue Feb 22, 2021 · 1 comment
Closed
7 tasks

onedb fsck typo in image check #5262

vholer opened this issue Feb 22, 2021 · 1 comment

Comments

@vholer
Copy link
Contributor

vholer commented Feb 22, 2021

Description

Problematic line:

h_e = doc.create_element('ID')

Error:

$ onedb fsck
Sqlite database backup stored in /var/lib/one/one.db_2021-2-22_12:37:31.bck
Use 'onedb restore' to restore the DB.

Cluster 0 has not the proper reserved VNC ports

undefined local variable or method `i_e' for #<BackEndSQLite:0x00005576db715898>
Did you mean?  h_e
/usr/lib/one/ruby/onedb/fsck/image.rb:133:in `block (3 levels) in check_image'
/usr/share/ruby/set.rb:328:in `each_key'
/usr/share/ruby/set.rb:328:in `each'
/usr/lib/one/ruby/onedb/fsck/image.rb:125:in `block (2 levels) in check_image'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/dataset/actions.rb:152:in `block in each'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/adapters/sqlite.rb:345:in `block (2 levels) in fetch_rows'
/usr/share/one/gems-dist/gems/sqlite3-1.4.2/lib/sqlite3/resultset.rb:134:in `each'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/adapters/sqlite.rb:334:in `block in fetch_rows'
/usr/share/one/gems-dist/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:339:in `query'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/adapters/sqlite.rb:200:in `block (2 levels) in _execute'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/database/logging.rb:38:in `log_connection_yield'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/adapters/sqlite.rb:200:in `block in _execute'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/connection_pool/threaded.rb:88:in `hold'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/database/connecting.rb:269:in `synchronize'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/adapters/sqlite.rb:193:in `_execute'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/adapters/sqlite.rb:139:in `execute'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/dataset/actions.rb:1093:in `execute'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/adapters/sqlite.rb:327:in `fetch_rows'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/dataset/actions.rb:152:in `each'
/usr/lib/one/ruby/onedb/fsck/image.rb:36:in `block in check_image'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/database/transactions.rb:258:in `_transaction'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/database/transactions.rb:233:in `block in transaction'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/connection_pool/threaded.rb:92:in `hold'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/database/connecting.rb:269:in `synchronize'
/usr/share/one/gems-dist/gems/sequel-5.41.0/lib/sequel/database/transactions.rb:195:in `transaction'
/usr/lib/one/ruby/onedb/fsck/image.rb:35:in `check_image'
/usr/lib/one/ruby/onedb/fsck.rb:434:in `fsck'
/usr/lib/one/ruby/onedb/onedb.rb:486:in `fsck'
/usr/bin/onedb:476:in `block (2 levels) in <main>'
/usr/lib/one/ruby/cli/command_parser.rb:482:in `run'
/usr/lib/one/ruby/cli/command_parser.rb:84:in `initialize'
/usr/bin/onedb:346:in `new'
/usr/bin/onedb:346:in `<main>'

Error running fsck version 6.0.0
The database will be restored
Sqlite database backup restored in /var/lib/one/one.db

Please backport for 5.12 EE (LTS).

Details

  • Affected Component: onedb
  • Version: 5.12+

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@al3xhh
Copy link
Contributor

al3xhh commented Feb 23, 2021

PR to merge in 5.12 and master:

PR to merge in one-5.12-maintenance:

rsmontero pushed a commit to OpenNebula/docs that referenced this issue Feb 23, 2021
rsmontero pushed a commit that referenced this issue Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants