Bug 2044083

Summary: For a fresh 6.10 or migrated server from 6.9 to 6.10, when executing "content migration-stats" we face the rake traceback
Product: Red Hat Satellite Reporter: Waldirio M Pinheiro <wpinheir>
Component: Foreman MaintainAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: aganbat, apatel, iballou, kgaikwad, pmendezh, saydas
Target Milestone: UnspecifiedKeywords: Triaged, UserExperience
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-14 14:06:16 UTC 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 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.