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 2093679

Summary: satellite-installer --enable-foreman-proxy-plugin-shellhooks fails with error Error: Unable to find a match: rubygem-smart_proxy_shellhooks in Red Hat Satellite 6.11
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: high    
Version: 6.11.0CC: ahumbe, pcreech
Target Milestone: 6.11.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: rubygem-smart_proxy_shellhooks-0.9.2-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:35:58 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 Sayan Das 2022-06-05 09:06:35 UTC
Description of problem:

While trying to enable shellhooks plugin in Satellite 6.11 on RHEL 8, It fails to find the required package to install i.e. rubygem-smart_proxy_shellhooks

A similar issue was resolved for Satellite 6.10 via BZ https://bugzilla.redhat.com/show_bug.cgi?id=1991545 


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

satellite-6.11.0-1.el8sat.noarch (RHEL 8)
satellite-capsule-6.11.0-0.11.beta.el8sat.noarch (RHEL 8)

How reproducible:

Always


Steps to Reproduce:
1. Install Satellite 6.11 on top of RHEL 8
2. Try to enable shellhooks plugin 
   # satellite-installer --enable-foreman-proxy-plugin-shellhooks --verbose

Actual results:

Installer failed:

2022-06-05 14:10:58 [NOTICE] [configure] 1750 configuration steps out of 2638 steps complete.
2022-06-05 14:10:59 [NOTICE] [configure] 2000 configuration steps out of 2648 steps complete.
2022-06-05 14:11:01 [NOTICE] [configure] 2250 configuration steps out of 2649 steps complete.
2022-06-05 14:11:03 [ERROR ] [configure] Execution of '/bin/dnf -d 0 -e 1 -y install rubygem-smart_proxy_shellhooks' returned 1: Error: Unable to find a match: rubygem-smart_proxy_shellhooks
2022-06-05 14:11:03 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Plugin::Shellhooks/Foreman_proxy::Plugin::Module[shellhooks]/Foreman_proxy::Plugin[shellhooks]/Package[rubygem-smart_proxy_shellhooks]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install rubygem-smart_proxy_shellhooks' returned 1: Error: Unable to find a match: rubygem-smart_proxy_shellhooks
2022-06-05 14:11:40 [NOTICE] [configure] 2500 configuration steps out of 2649 steps complete.
2022-06-05 14:12:08 [NOTICE] [configure] System configuration has finished.

  There were errors detected during install.
  Please address the errors and re-run the installer to ensure the system is properly configured.
  Failing to do so is likely to result in broken functionality.



# dnf search shellhooks
Updating Subscription Management repositories.

Last metadata expiration check: 0:19:48 ago on Sun 05 Jun 2022 01:53:14 PM IST.
No matches found.




Expected results:

rubygem-smart_proxy_shellhooks package should be available for both Red Hat Satellite and Satellite Capsule 6.11 to be installed and the shellhooks features should be getting enabled. 



Additional info:

NA

Comment 4 Lukas Pramuk 2022-06-13 10:24:57 UTC
VERIFIED.

@Satellite 6.11.0 Snap24
rubygem-smart_proxy_shellhooks-0.9.2-2.el8sat.noarch

1) Have a Satellite and Capsule installed on RHEL8

2) Enable shellhooks pluign on both Satellite and Capsule

@Satellite # satellite-installer --enable-foreman-proxy-plugin-shellhooks
2022-06-12 11:43:58 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-06-12 11:44:04 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-06-12 11:44:04 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
Package versions are locked. Continuing with unlock.
2022-06-12 11:44:19 [NOTICE] [configure] Starting system configuration.
2022-06-12 11:44:34 [NOTICE] [configure] 250 configuration steps out of 1677 steps complete.
2022-06-12 11:44:37 [NOTICE] [configure] 500 configuration steps out of 2528 steps complete.
2022-06-12 11:44:38 [NOTICE] [configure] 750 configuration steps out of 2528 steps complete.
2022-06-12 11:44:38 [NOTICE] [configure] 1000 configuration steps out of 2528 steps complete.
2022-06-12 11:44:39 [NOTICE] [configure] 1250 configuration steps out of 2528 steps complete.
2022-06-12 11:44:41 [NOTICE] [configure] 1500 configuration steps out of 2530 steps complete.
2022-06-12 11:44:45 [NOTICE] [configure] 1750 configuration steps out of 2533 steps complete.
2022-06-12 11:44:46 [NOTICE] [configure] 2000 configuration steps out of 2539 steps complete.
2022-06-12 11:44:49 [NOTICE] [configure] 2250 configuration steps out of 2539 steps complete.
2022-06-12 11:45:57 [NOTICE] [configure] 2500 configuration steps out of 2539 steps complete.
2022-06-12 11:46:12 [NOTICE] [configure] System configuration has finished.
  Success!
  * Satellite is running at https://satellite.example.com

  * To install an additional Capsule on separate machine continue by running:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"
  * Capsule is running at https://satellite.example.com:9090

  The full log is at /var/log/foreman-installer/satellite.log
Package versions are being locked.

@Satellite # rpm -qa *shellhooks*
rubygem-smart_proxy_shellhooks-0.9.2-2.el8sat.noarch

>>> shellhooks plugin successfully enabled on the Satellite

@Capsule # satellite-installer --enable-foreman-proxy-plugin-shellhooks
2022-06-13 06:19:19 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-06-13 06:19:25 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-06-13 06:19:25 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-06-13 06:19:35 [NOTICE] [configure] Starting system configuration.
2022-06-13 06:19:52 [NOTICE] [configure] 250 configuration steps out of 1254 steps complete.
2022-06-13 06:19:57 [NOTICE] [configure] 500 configuration steps out of 1259 steps complete.
2022-06-13 06:19:57 [NOTICE] [configure] 750 configuration steps out of 1259 steps complete.
2022-06-13 06:20:08 [NOTICE] [configure] 1000 configuration steps out of 1263 steps complete.
2022-06-13 06:20:20 [NOTICE] [configure] 1250 configuration steps out of 1264 steps complete.
2022-06-13 06:20:26 [NOTICE] [configure] System configuration has finished.
  Success!
  * Capsule is running at https://capsule.example.com:9090

  The full log is at /var/log/foreman-installer/capsule.log

@Capsule # rpm -qa *shellhooks*
rubygem-smart_proxy_shellhooks-0.9.2-2.el8sat.noarch

>>> shellhooks plugin successfully enabled on the Capsule

Comment 7 errata-xmlrpc 2022-07-05 14:35:58 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 (Moderate: Satellite 6.11 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/RHSA-2022:5498