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 1710305

Summary: pre-migration step in foreman maintain asks for permission twice.
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: Satellite MaintainAssignee: Martin Bacovsky <mbacovsk>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: apatel, aupadhye, dvoss, egolov, inecas, kgaikwad, mbacovsk, spetrosi
Target Milestone: 6.6.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: foreman-maintain-0.4.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 16:36:54 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 Jameer Pathan 2019-05-15 10:00:55 UTC
Description of problem:
pre-migration step in foreman maintain asks for permission twice.

Version-Release number of selected component (if applicable):
@satellite 6.5.0
@rubygem-foreman_maintain-0.3.3-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Run #foreman-maintain upgrade run --target-version 6.5
2. on "Procedures before migrating to Satellite 6.5" it asks twice for permission to continue.

Actual results:


Continue with [Procedures before migrating to Satellite 6.5], [y(yes), n(no), q(quit)] y
Continue with [Procedures before migrating to Satellite 6.5], [y(yes), n(no), q(quit)] y
Running Procedures before migrating to Satellite 6.5                            
================================================================================
disable active sync plans: 
- Total 0 sync plans are now disabled.                                [OK]      
--------------------------------------------------------------------------------

Expected results:

Continue with [Procedures before migrating to Satellite 6.5], [y(yes), n(no), q(quit)] y
Running Procedures before migrating to Satellite 6.5                            
================================================================================
disable active sync plans: 
- Total 0 sync plans are now disabled.                                [OK]      
--------------------------------------------------------------------------------

Additional info:

Comment 3 Kavita 2019-06-18 10:09:17 UTC
Created redmine issue https://projects.theforeman.org/issues/27072 from this bug

Comment 5 Bryan Kearney 2019-08-21 14:03:46 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27072 has been resolved.

Comment 8 Bryan Kearney 2019-09-05 10:03:54 UTC
Upstream bug assigned to mbacovsk

Comment 9 Bryan Kearney 2019-09-05 10:03:56 UTC
Upstream bug assigned to mbacovsk

Comment 10 Bryan Kearney 2019-09-05 16:03:55 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27072 has been resolved.

Comment 11 Martin Bacovsky 2019-09-05 19:37:58 UTC
The patch is included in foreman-maintain 0.4.8

Comment 12 Jameer Pathan 2019-09-09 12:27:32 UTC
Verified

Verified with:
- Satellite 6.6.0 snap 19
- rubygem-foreman_maintain-0.4.8-1.el7sat.noarch

Steps to Reproduce:
1. Run #foreman-maintain upgrade run --target-version 6.6.z --whitelist repositories-validate

Observation:
- pre-migration step of foreman maintain didn't ask for permission twice.



Continue with [Procedures before migrating to Satellite 6.6.z], [y(yes), n(no), q(quit)] y
Running Procedures before migrating to Satellite 6.6.z                          
================================================================================
disable active sync plans: 
| Total 0 sync plans are now disabled.                                [OK]      
--------------------------------------------------------------------------------

Comment 15 errata-xmlrpc 2019-10-22 16:36:54 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, 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-2019:3181