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 1825841 - Updating rubygem-foreman_maintain package using "satellite-maintain packages" command should not execute installer at the end
Summary: Updating rubygem-foreman_maintain package using "satellite-maintain packages"...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.7.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: 6.8.0
Assignee: Kavita
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-20 11:33 UTC by Ashish Humbe
Modified: 2020-10-27 12:38 UTC (History)
3 users (show)

Fixed In Version: rubygem-foreman_maintain-0.6.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 12:38:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29511 0 Normal Closed Do not run procedures i.e unlock packages/installer upgrade run/lock packages in case of foreman-maintain package instal... 2021-02-13 03:00:28 UTC
Red Hat Product Errata RHBA-2020:4365 0 None None None 2020-10-27 12:38:39 UTC

Description Ashish Humbe 2020-04-20 11:33:28 UTC
Description of problem:
Customers are expected to do any package install/update on satellite server via satellite-maintain command, in the Satellite upgrade guide we are suggesting customers to use "yum" command to update rubygem-foreman_maintain package, this package is whitelisted in foreman-protector plugin so it is allowed to update via yum. 

When we try to update the rubygem-foreman_maintain package using satellite-maintain command it executes satellite-installer command and that causes unexpected service downtime. 

Version-Release number of selected component (if applicable):
Satellite 6.x 

How reproducible:
Always 

Steps to Reproduce:
1. satellite-maintain packages install rubygem-foreman_maintain

which stops satellite services and execute the installer command. 

Actual results:

# satellite-maintain packages install rubygem-foreman_maintain
Running preparation steps required to run the next scenarios
================================================================================
Check if tooling for package locking is installed:                    [OK]
--------------------------------------------------------------------------------
 
 
Running install packages in unlocked session
================================================================================
Confirm installer run is allowed:
WARNING: This script runs satellite-installer after the yum execution
to ensure the Satellite is in a consistent state.
As a result some of your services may be restarted.
 
Do you want to proceed?, [y(yes), q(quit)] y
                                                                      [OK]      
--------------------------------------------------------------------------------
Unlock packages:                                                      [OK]
--------------------------------------------------------------------------------
Install packages: Loaded plugins: product-id, search-disabled-repos, subscription-manager
.
.
.
.
Updated:
  rubygem-foreman_maintain.noarch 1:0.5.3-1.el7sat                                                                                                                          
 
Complete!
                                                    [OK]
--------------------------------------------------------------------------------
Running satellite-installer --upgrade --disable-system-checks: Upgrading, to monitor the progress on all related services, please do:
  foreman-tail | tee upgrade-$(date +%Y-%m-%d-%H%M).log
Upgrade Step: stop_services...
Running Stop Services
================================================================================



Expected results:
We should allow and promote customers use satellite-maintain to update the rubygem-foreman_maintain package without running any extra installer related steps. 

Additional info:

Comment 3 Bryan Kearney 2020-05-14 12:04:00 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29511 has been resolved.

Comment 4 Jameer Pathan 2020-07-27 07:30:31 UTC
Verified:

Verified with:
- Satellite 6.8.0 snap 9
- rubygem-foreman_maintain-0.6.8-1.el7sat.noarch

Test step:
- foreman-maintain packages install rubygem-foreman_maintain

Observation:
- foreman-maintain package got updated and satellite-installer was not executed after package update.

Comment 7 errata-xmlrpc 2020-10-27 12:38:21 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.