Bug 1995421
| Summary: | The foreman-maintain should only ask to run failed step with whitelist option if step has whitelist option | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Shekhar Raut <sraut> |
| Component: | Foreman Maintain | Assignee: | Amit Upadhye <aupadhye> |
| Status: | NEW --- | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.10.0 | CC: | ahumbe, apatel, aupadhye, ehelms, kgaikwad, myoder, wclark |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Shekhar Raut
2021-08-19 05:06:46 UTC
Full Command Output ~~~ Prepare content for Pulp 3: Checking for valid Katello configuraton. Starting task. 2021-08-19 00:39:54 -0400: Pre-migrating Pulp 2 rpm content (detail info) 38000/46158Migration failed, You will want to investigate: https://vm249-161.gsslab.pnq2.redhat.com/foreman_tasks/tasks/481ecb32-1606-42b7-909d-a70e63b3c501 rake aborted! ForemanTasks::TaskError: Task 481ecb32-1606-42b7-909d-a70e63b3c501: Katello::Errors::Pulp3Error: out of memory DETAIL: Failed on request of size 268435456 in memory context "ErrorContext". /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.33/lib/katello/tasks/pulp3_migration.rake:35:in `block (2 levels) in <top (required)>' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.3/exe/rake:27:in `<top (required)>' Tasks: TOP => katello:pulp3_migration (See full trace by running task with --trace) [FAIL] Failed executing foreman-rake katello:pulp3_migration, exit status 1 -------------------------------------------------------------------------------- Scenario [Prepare content for Pulp 3] failed. The following steps ended up in failing state: [content-prepare] Resolve the failed steps and rerun the command. In case the failures are false positives, use --whitelist="content-prepare" [root@satellite ~]# satellite-maintain content prepare --whitelist="content-prepare" ERROR: Unrecognised option '--whitelist' See: 'satellite-maintain content prepare --help' Enabling the following service(s): pulpcore-api, pulpcore-content, pulpcore-resource-manager, pulpcore-worker@1, pulpcore-worker@2, pulpcore-worker@3, pulpcore-worker@4 / All services enabled [OK] -------------------------------------------------------------------------------- Start applicable services: Starting the following service(s): pulpcore-api, pulpcore-content, pulpcore-resource-manager, pulpcore-worker@1, pulpcore-worker@2, pulpcore-worker@3, pulpcore-worker@4 \ All services started [OK] -------------------------------------------------------------------------------- Prepare content for Pulp 3: Checking for valid Katello configuraton. Starting task. 2021-08-19 00:39:54 -0400: Pre-migrating Pulp 2 rpm content (detail info) 38000/46158Migration failed, You will want to investigate: https://vm249-161.gsslab.pnq2.redhat.com/foreman_tasks/tasks/481ecb32-1606-42b7-909d-a70e63b3c501 rake aborted! ForemanTasks::TaskError: Task 481ecb32-1606-42b7-909d-a70e63b3c501: Katello::Errors::Pulp3Error: out of memory DETAIL: Failed on request of size 268435456 in memory context "ErrorContext". /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.33/lib/katello/tasks/pulp3_migration.rake:35:in `block (2 levels) in <top (required)>' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.3/exe/rake:27:in `<top (required)>' Tasks: TOP => katello:pulp3_migration (See full trace by running task with --trace) [FAIL] Failed executing foreman-rake katello:pulp3_migration, exit status 1 -------------------------------------------------------------------------------- Scenario [Prepare content for Pulp 3] failed. The following steps ended up in failing state: [content-prepare] Resolve the failed steps and rerun the command. In case the failures are false positives, use --whitelist="content-prepare" [root@satellite ~]# satellite-maintain content prepare --whitelist="content-prepare" ERROR: Unrecognised option '--whitelist' See: 'satellite-maintain content prepare --help' ~~~ Hello Shekhar, The content prepare does not have whitelist option as upgrade should not happen without it. The problem is whitelist message there for a step which does not support the whitelist. The foreman-maintain has scenarios and then procedures are run as a step in scenario. Each scenario can have one or more than one step and hence its not possible to remove whitelist option from output for all the failed steps as some of them can have that. Considering this I have changed the summary of bz to reflect what will be implemented for handling this situation. To solve actual problem you will need to allocate more memory to the system. _ Amit Upadhye. *** Bug 1907710 has been marked as a duplicate of this bug. *** |