Bug 2044083 - For a fresh 6.10 or migrated server from 6.9 to 6.10, when executing "content migration-stats" we face the rake traceback
Summary: For a fresh 6.10 or migrated server from 6.9 to 6.10, when executing "content...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Maintain
Version: 6.10.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
: 2071852 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-23 18:45 UTC by Waldirio M Pinheiro
Modified: 2023-07-14 14:06 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-14 14:06:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Waldirio M Pinheiro 2022-01-23 18:45:38 UTC
Description of problem:
In a fresh 6.10 or machine migrated from 6.9 to 6.10, once we execute the command "foreman-maintain content migration-stats" we are getting a traceback instead of a nice and welcome warning. Basically, we are not handling the exception.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Install a fresh 6.10 or upgrade from 6.9 -> 6.10
2. Execute the command "foreman-maintain content  migration-stats"
3.

Actual results:
---
[root@ito-test ~]# foreman-maintain content  migration-stats
Running Retrieve Pulp 2 to Pulp 3 migration statistics
================================================================================
Retrieve Pulp 2 to Pulp 3 migration statistics:                       [FAIL]
Failed executing foreman-rake katello:pulp3_migration_stats, exit status 1:
 'ErbParser' is ignored.
'RubyParser' is ignored.
rake aborted!
Don't know how to build task 'katello:pulp3_migration_stats' (See the list of available tasks with `rake --tasks`)
Did you mean?  katello:import_subscriptions
/opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
--------------------------------------------------------------------------------
Scenario [Retrieve Pulp 2 to Pulp 3 migration statistics] failed.

The following steps ended up in failing state:

  [content-migration-stats]

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


[root@ito-test ~]# 
---

Expected results:

Nice information letting the customer know that this command is not necessary anymore, or nothing to be migrated at this moment, once the data is already in pulp3.


Additional info:

Comment 1 Brad Buckingham 2022-04-07 15:09:08 UTC
*** Bug 2071852 has been marked as a duplicate of this bug. ***

Comment 2 Ian Ballou 2023-07-14 14:06:16 UTC
Closing this BZ as WONTFIX. 6.9 is EOL and this is not an upgrade-blocking issue. I recommend creating a KCS created if users continue to be confused by this error once they're on 6.10.


Note You need to log in before you can comment on or make changes to this bug.