Bug 1928185

Summary: [RFE] Add '--assumeno' option to 'satellite-maintain health check'
Product: Red Hat Satellite Reporter: Bernie Hoefer <bhoefer>
Component: Satellite MaintainAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: apatel, aupadhye, dsinglet, flamingoalle, kgaikwad, robertflamingo9
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-28 18:02:59 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 Bernie Hoefer 2021-02-12 15:26:00 UTC
(I am filing this bug under the "Foreman Maintain" component because I could not find one for "satellite-maintain".)



Description of problem:
The customer is attempting to use the "satellite-maintain health check" command as part of their monitoring.  If a part of satellite has failed:

  Running ForemanMaintain::Scenario::FilteredScenario
  ================================================================================
  Clean old Kernel and initramfs files from tftp-boot:                  [OK]
  --------------------------------------------------------------------------------
  Check number of fact names in database:                               [OK]
  --------------------------------------------------------------------------------
  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:           [FAIL]
  Couldn't connect to the server: undefined method `to_sym' for nil:NilClass
  --------------------------------------------------------------------------------
  Continue with step [Restart applicable services]?, [y(yes), n(no), q(quit)]

...the command stops, waiting for user input.  The satellite-maintain command already has a "--assumeyes" option, but in the example above that would be inappropriate since a monitoring tool should not make changes to a system.  With a "--assumeno" option, the monitoring would see the FAIL, alert the admin and then he/she would investigate and restart services, if needed.

Perhaps a "--quitonfailure" would be better?  Advice from Satellite engineering on this would be welcome.



Version-Release number of selected component (if applicable):
satellite-maintain-0.0.1-1.el7sat.noarch

Comment 2 robertflamingo 2021-07-17 12:53:24 UTC Comment hidden (abuse, spam)
Comment 3 flamingoalle 2021-07-22 08:26:21 UTC Comment hidden (abuse, spam)
Comment 5 Brad Buckingham 2022-09-02 20:25:18 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 6 Brad Buckingham 2022-09-05 22:56:27 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 7 Brad Buckingham 2022-10-28 18:02:59 UTC
Thank you for your interest in Red Hat Satellite. 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 feel free to contact your Red Hat Account Team. Thank you.