Bug 2093679 - 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
Summary: satellite-installer --enable-foreman-proxy-plugin-shellhooks fails with error...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.11.0
Hardware: All
OS: All
high
high
Target Milestone: 6.11.0
Assignee: satellite6-bugs
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-05 09:06 UTC by Sayan Das
Modified: 2022-07-05 14:36 UTC (History)
2 users (show)

Fixed In Version: rubygem-smart_proxy_shellhooks-0.9.2-2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-05 14:35:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:36:07 UTC

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


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