Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1907710

Summary: foreman-maintain maintenance-mode stop command fails with Unrecognised option 'whitelist'
Product: Red Hat Satellite Reporter: myoder
Component: Satellite MaintainAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Jameer Pathan <jpathan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: ajambhul, apatel, aupadhye, ehelms, kgaikwad, mjia
Target Milestone: UnspecifiedKeywords: 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: 2022-05-05 14:10:05 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 myoder 2020-12-15 02:54:00 UTC
Description of problem:

The foreman-maintain maintenance-mode stop command fails, and Satellite suggests to use the --whitelist="sync-plans-enable" option to skip that step:


   [root@satellite ~]# foreman-maintain maintenance-mode stop
   Running Stop maintenance-mode
   ================================================================================
   re-enable sync plans: 
   / re-enabling sync plans                                              [FAIL]
   Could not update the sync plan:
     ERF28-1357 [ForemanTasks::RecurringLogicCancelledException]: Cannot update a cancelled Recurring Logic.


   Scenario [Stop maintenance-mode] failed.

   The following steps ended up in failing state:

      [sync-plans-enable]

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


However, when trying to use the --whitelist="sync-plans-enable" flag, Satellite throws an Unrecognised option error:


   [root@satellite ~]# foreman-maintain maintenance-mode stop --whitelist="sync-plans"
   ERROR: Unrecognised option '--whitelist'

   See: 'foreman-maintain maintenance-mode stop --help'


Running the --help doesn't offer anything:


   [root@satellite ~]# foreman-maintain maintenance-mode stop  --help
   Usage:
       foreman-maintain maintenance-mode stop [OPTIONS]
   
   Options:
       -h, --help                    print help



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

How reproducible:
always

Steps to Reproduce:
1. use the --whitelist="" option on (foreman-maintain maintenance-mode stop) command
2.
3.

Actual results:
Unable to use the --whitelist flag with (foreman-maintain maintenance-mode stop) command

Expected results:
Expect --whitelist option to be available, or for Satellite not to suggest using the whitelist option.

Additional info: