Bug 1861344 - Scenarios present inside satellite-maintain content should be restricted
Summary: Scenarios present inside satellite-maintain content should be restricted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.8.0
Hardware: All
OS: All
high
high
Target Milestone: 6.8.0
Assignee: Kavita
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-28 10:54 UTC by anerurka
Modified: 2021-12-01 08:12 UTC (History)
5 users (show)

Fixed In Version: rubygem-foreman_maintain-0.6.9
Doc Type: Known Issue
Doc Text:
Scenarios present inside satellite-maintain content should be restricted
Clone Of:
Environment:
Last Closed: 2020-10-27 12:38:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 30458 0 Normal Closed Don't run prepare & switchover steps inside content subcommands for downstream scenarios 2020-10-27 13:52:14 UTC
Red Hat Product Errata RHBA-2020:4365 0 None None None 2020-10-27 12:38:59 UTC

Description anerurka 2020-07-28 10:54:07 UTC
Description of problem:

Scenarios present inside satellite-maintain content should be restricted  

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

Satellite 6.8 Beta
rubygem-foreman_maintain-0.6.8-1.el7sat.noarch

How reproducible:

# satellite-maintain content switchover
Running Switch support for certain content from Pulp 2 to Pulp 3
================================================================================
Switch support for certain content from Pulp 2 to Pulp 3: 
Performing final content migration before switching content           [FAIL]
Failed executing foreman-rake katello:pulp3_migration, exit status 127:
 sh: foreman-rake: command not found
--------------------------------------------------------------------------------
Scenario [Switch support for certain content from Pulp 2 to Pulp 3] failed.

The following steps ended up in failing state:

  [content-switchover]

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


Actual results:

Scenario to switch content from Pulp 2 to Pulp 3 is attempted.


Expected results:

Red Hat Satellite 6.x, still has Pulp-2, so "# satellite-maintain content" should be hide or scenarios present should not be executed.

Comment 1 Kavita 2020-07-28 12:28:52 UTC
Hello Ameya,

Pull-request already opened and currently under review. 
With this change, it won't run any steps inside but those sub-commands will be visible.

https://github.com/theforeman/foreman_maintain/pull/376

Linking the upstream issue to BZ for further tracking.

Thanks for reporting this.
- Kavita

Comment 2 Bryan Kearney 2020-07-29 12:04:00 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30458 has been resolved.

Comment 3 Jameer Pathan 2020-09-07 10:45:02 UTC
Verified

verified with:
- Satellite 6.8.0 snap 14
- rubygem-foreman_maintain-0.6.9-1.el7sat.noarch

Test steps:
1. foreman-maintain content prepare
2. foreman-maintain content switchover

Observation:
- Scenario present in prepare and switchover command are not executed.

Comment 6 errata-xmlrpc 2020-10-27 12:38:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6.8 Satellite Maintenance 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/RHBA-2020:4365


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