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 1640974 - foreman-maintain doesn't quit the actual run when q is pressed
Summary: foreman-maintain doesn't quit the actual run when q is pressed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.4
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: 6.9.0
Assignee: Kavita
QA Contact: Gaurav Talreja
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-19 09:57 UTC by Nagoor Shaik
Modified: 2021-12-10 17:59 UTC (History)
10 users (show)

Fixed In Version: rubygem-foreman_maintain-0.7.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 14:48:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 25291 0 Normal Closed foreman-maintain doesn't quit the actual run when q is pressed 2021-02-20 16:51:53 UTC
Red Hat Product Errata RHBA-2021:1312 0 None None None 2021-04-21 14:48:34 UTC

Description Nagoor Shaik 2018-10-19 09:57:04 UTC
Description of problem:
foreman-maintain doesn't quit the actual run when q is pressed

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

rubygem-foreman_maintain-0.2.11-1.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. Run the Satellite 6.4 upgrade check as shown below 
 Running Checks before upgrading to Satellite 6.4
================================================================================
Check for verifying syntax for ISP DHCP configurations:               [SKIPPED]
DHCP feature is not enabled
--------------------------------------------------------------------------------
Check whether all services are running:                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running using hammer ping:             [OK]
--------------------------------------------------------------------------------
Check for paused tasks:                                               [OK]
--------------------------------------------------------------------------------
Check to validate candlepin database:                                 [OK]
--------------------------------------------------------------------------------
Check if EPEL repository enabled on system: 
/ Checking for presence of EPEL repository                            [OK]      
--------------------------------------------------------------------------------
Check for running tasks:                                              [OK]
--------------------------------------------------------------------------------
Check for old tasks in paused/stopped state:                          [FAIL]
Found 11 paused or stopped task(s) older than 30 days
--------------------------------------------------------------------------------
Continue with step [Delete old tasks]?, [y(yes), n(no), q(quit)] q                   -----> q is pressed 
Check for pending tasks which are safe to delete:                     [OK]      
--------------------------------------------------------------------------------
Check for tasks in planning state:                                    [OK]
--------------------------------------------------------------------------------
Check for recommended disk speed of pulp, mongodb, pgsql dir.: 
\ Finished                                                                      

Disk speed : 21 MB/sec                                                [FAIL]
Slow disk detected /var/lib/pulp mounted on /dev/mapper/myvg-rootvol.
             Actual disk speed: 21 MB/sec
             Expected disk speed: 60 MB/sec.
--------------------------------------------------------------------------------
Check whether reports have correct associations:                      [OK]
--------------------------------------------------------------------------------
Verify puppet and provide upgrade guide for it: 
/ current puppet version:                                             [OK]      
--------------------------------------------------------------------------------
Validate availability of repositories: 
/ Validating availability of repositories for 6.4                     [OK]      
--------------------------------------------------------------------------------
Scenario [Checks before upgrading to Satellite 6.4] failed.

The following steps ended up in failing state:

  [check-old-foreman-tasks]
  [disk-performance]


Actual results:
Even after pressing q (quit) option foreman-maintain utility ran further 

Expected results:
q (quit) should quit as specified 

Additional info:

Comment 1 Kavita 2018-10-24 06:24:58 UTC
Created redmine issue http://projects.theforeman.org/issues/25291 from this bug

Comment 3 Kenny Tordeurs 2019-12-13 13:45:09 UTC
Issue is still present with latest version on Satellite 6.6 :
~~~
satellite-maintain-0.0.1-1.el7sat.noarch
rubygem-foreman_maintain-0.4.10-1.el7sat.noarch
~~~


# foreman-maintain upgrade check --target-version 6.6.z 
~~~
Running Checks before upgrading to Satellite 6.6.z
================================================================================
Check for verifying syntax for ISP DHCP configurations:               [OK]
--------------------------------------------------------------------------------
Check whether all services are running:                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running using the ping call:           [OK]
--------------------------------------------------------------------------------
Check for paused tasks:                                               [FAIL]
There are currently 1 paused tasks in the system
--------------------------------------------------------------------------------
There are multiple steps to proceed:
1) Resume paused tasks
2) Investigate the tasks via UI
Select step to continue, [n(next), q(quit)] q         <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< q
Check to verify no empty CA cert requests exist:                      [OK]      
--------------------------------------------------------------------------------
Check to make sure root(/) partition has enough space:                [OK]
--------------------------------------------------------------------------------
Check to validate candlepin database:                                 [OK]
--------------------------------------------------------------------------------
Check if EPEL repository enabled on system: 
| Checking for presence of EPEL repository                            [OK]      
--------------------------------------------------------------------------------
Check for running tasks:                                              [OK]
--------------------------------------------------------------------------------
Check for old tasks in paused/stopped state:                          [FAIL]
Found 3108 paused or stopped task(s) older than 30 days
--------------------------------------------------------------------------------
Continue with step [Delete old tasks]?, [y(yes), n(no), q(quit)] q  <<<<<<<<<<<<<<<<<<<<<< q
Check for pending tasks which are safe to delete:                     [OK]      
--------------------------------------------------------------------------------
Check for tasks in planning state:                                    [OK]
--------------------------------------------------------------------------------
Check to verify if any hotfix installed on system: 
/ Checking for presence of hotfix(es). It may take some time to verify.
...
~~~

Comment 4 Pavel Moravec 2020-01-09 09:10:07 UTC
Unclean workaround: Use Ctrl+C instead :-/

Comment 5 Bryan Kearney 2020-05-01 14:22:57 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 6 Bryan Kearney 2020-06-08 13:14:21 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.

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

Comment 11 Gaurav Talreja 2021-02-10 09:46:01 UTC
Verified.

Satellite 6.9.0 Snap 12
Version: rubygem-foreman_maintain-0.7.4-1.el7sat.noarch

Observation:
- For the 2nd question from Comment 9 Filed a new BZ - https://bugzilla.redhat.com/show_bug.cgi?id=1927170
- For the 3rd question from Comment 9, there was BZ filed earlier - https://bugzilla.redhat.com/show_bug.cgi?id=1526774
- quit option is not available for health checks and pre-upgrade checks.
- quit option is available for online/offline backup related commands.
- quit option available for confirming modification part of the upgrade.
- quit option available for packages install/update command.


Thank you, Amit.

-
Gaurav Talreja

Comment 14 errata-xmlrpc 2021-04-21 14:48:22 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.9 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-2021:1312


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