Project

General

Profile

Actions

Bug #25012

closed

foreman-maintain restore failed: undefined method `keys'

Added by Martin Bacovsky over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1631944

Description of problem:

foreman-maintain restore failed at while migrating pulp db

--------------------------------------------------------------------------------
Migrate pulp db:
/ Migrating pulp [FAIL]
undefined method `keys' for [Systemd(rh-mongodb34-mongod [5])]:Array
--------------------------------------------------------------------------------
Scenario [Restore backup] failed.

The following steps ended up in failing state:

[pulp-migrate]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="pulp-migrate"

Version-Release number of selected component (if applicable):
Satellite 6.4 snap 23

  1. rpm -qa | grep maintain
    rubygem-foreman_maintain-0.2.10-1.el7sat.noarch

How reproducible: always

Steps to Reproduce:
1. foreman-maintain backup online /tmp/
2. foreman-maintain restore /tmp/foreman-proxy-backup-2018-09-22-04-36-10

Actual results: restore failed showing

E, [2018-09-22 04:41:05-0400 #13130] ERROR -- : undefined method `keys' for [Systemd(rh-mongodb34-mongod [5])]:Array (NoMethodError)
/usr/share/gems/gems/foreman_maintain-0.2.10/definitions/procedures/pulp/migrate.rb:10:in `block in run'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/reporter/cli_reporter.rb:139:in `with_spinner'
/usr/share/gems/gems/foreman_maintain-0.2.10/definitions/procedures/pulp/migrate.rb:9:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/executable.rb:139:in `__run__'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner/execution.rb:83:in `block (2 levels) in run'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner/execution.rb:107:in `capture_errors'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner/execution.rb:82:in `block in run'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner/execution.rb:101:in `with_metadata_calculation'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner/execution.rb:81:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner.rb:116:in `run_step'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner.rb:105:in `run_steps'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner.rb:98:in `execute_scenario_steps'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner.rb:51:in `run_scenario'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner.rb:32:in `block in run'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner.rb:31:in `each'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/runner.rb:31:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/cli/base.rb:47:in `run_scenario'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/cli/restore_command.rb:16:in `execute'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.10/lib/foreman_maintain/cli.rb:27:in `run'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.10/bin/foreman-maintain:15:in `<top (required)>'
/usr/bin/foreman-maintain:23:in `load'
/usr/bin/foreman-maintain:23:in `<main>'

Expected results: Restore should successful.

Additional info:

Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_maintain/pull/222 added
Actions #2

Updated by Anurag Patel over 5 years ago

  • Assignee changed from Anurag Patel to Martin Bacovsky
Actions #3

Updated by Anonymous over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Ivan Necas over 5 years ago

  • Fixed in Releases foreman_maintain-0.2.11 added
Actions

Also available in: Atom PDF