-
Bug
-
Resolution: Done-Errata
-
Critical
-
None
Description of problem:
satellite-maintain backup command fails on pulpcore-no-running-tasks with "undefined method `empty?' for nil:NilClass" error on Capsule 6.16.0/Stream
How reproducible:
- Always on Capsule 6.16.0/stream snap 1
- rubygem-foreman_maintain-1.7.1-1.el9sat.noarch
Is this issue a regression from an earlier version:
- yes
Steps to Reproduce:
1. Run "satellite-maintain backup online --assumeyes /tmp/satellite_backup" on Capsule
Actual behavior:
- Backup command fails on pulpcore-no-running-tasks step.
-------------------------------------------------------------------------------- Check for running pulpcore tasks: [FAIL] undefined method `empty?' for nil:NilClass -------------------------------------------------------------------------------- Scenario [Backup] failed. The following steps ended up in failing state: [pulpcore-no-running-tasks] Resolve the failed steps and rerun the command. If the situation persists and, you are unclear what to do next, contact Red Hat Technical Support. In case the failures are false positives, use --whitelist="pulpcore-no-running-tasks"
Expected behavior:
- Backup completed successfully.
Business Impact / Additional info:
/var/log/foreman-maintain/foreman-maintain.log
I, [2024-08-29 10:05:19-0400 #24834] INFO -- : --- Execution step 'Check for running pulpcore tasks' [pulpcore-no-running-tasks] started --- E, [2024-08-29 10:05:19-0400 #24834] ERROR -- : undefined method `empty?' for nil:NilClass (NoMethodError) /usr/share/gems/gems/foreman_maintain-1.7.1/definitions/checks/pulpcore/no_running_tasks.rb:15:in `run' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/executable.rb:142:in `__run__' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/check.rb:40:in `__run__' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner/execution.rb:87:in `block (2 levels) in run' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner/execution.rb:111:in `capture_errors' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner/execution.rb:86:in `block in run' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner/execution.rb:105:in `with_metadata_calculation' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner/execution.rb:85:in `run' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner.rb:134:in `run_step' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner.rb:123:in `run_steps' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner.rb:116:in `execute_scenario_steps' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner.rb:61:in `run_scenario' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner.rb:42:in `block in run' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner.rb:41:in `each' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/runner.rb:41:in `run' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/cli/base.rb:64:in `run_scenario' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/cli/backup_command.rb:25:in `perform_backup' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/cli/backup_command.rb:137:in `execute' /usr/share/gems/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run' /usr/share/gems/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute' /usr/share/gems/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run' /usr/share/gems/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute' /usr/share/gems/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run' /usr/share/gems/gems/foreman_maintain-1.7.1/lib/foreman_maintain/cli.rb:40:in `run' /usr/share/gems/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run' /usr/share/gems/gems/foreman_maintain-1.7.1/bin/foreman-maintain:15:in `<top (required)>' /usr/bin/satellite-maintain:25:in `load' /usr/bin/satellite-maintain:25:in `<main>' I, [2024-08-29 10:05:19-0400 #24834] INFO -- : --- Execution step 'Check for running pulpcore tasks' finished ---
- links to
-
RHBA-2024:140284 Important: Satellite 6.16.0 release
Since the problem described in this issue should be resolved in a recent advisory, it has been closed.
For information on the advisory (Critical: Satellite 6.16.0 release), and where to find the updated files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2024:8906