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 1963264 - [RFE]: Adding a Capsule to a load balanced configuration should rename the katello-ca-consumer RPM to the name of the load balancer
Summary: [RFE]: Adding a Capsule to a load balanced configuration should rename the ka...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.9.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-21 20:35 UTC by Taft Sanders
Modified: 2022-05-17 13:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 13:07:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Taft Sanders 2021-05-21 20:35:40 UTC
Description of problem:
When registering to a load-balanced capsule set, the client will use the LB server name for the request to install the katello-ca-consumer RPM. Based on the workflow of the LB, the request will then be sent to a Capsule in the LB set and download that RPM. Currently, this is a symlink called 'katello-ca-consumer-latest' that points to an RPM called 'katello-ca-consumer-<CapsuleHostname>.noarch.rpm'. This RPM contains the script to set the rhsm.conf to the hostname of the registration to the Capsule the RPM derives from.
# head -n5 ./usr/bin/katello-rhsm-consumer 
#!/bin/bash

set -e

KATELLO_SERVER=capsule1.redhat.com

This request is to include a 2nd RPM, created at the time of including the Capsule into an LB set so that it will create an RPM with the LB hostname on it. This would allow the current workflow of systems needing to register or re-register to an LB Capsule set to be simplified even further.

How reproducible:
n/a

Steps to Reproduce:
1.
2.
3.

Actual results:
Current Manual Registration Method:
1. Remove the katello-ca-consumer package if it is installed:
# yum remove 'katello-ca-consumer*'

2. Install the katello-ca-consumer package from the load balancer:
# rpm -Uvh \
http://loadbalancer.example.com/pub/katello-ca-consumer-latest.noarch.rpm

3. Register the client and include the --serverurl and --baseurl options:
# subscription-manager register --org=Your_Organization \
--activationkey=Your_Activation_Key \
--serverurl=https://loadbalancer.example.com:8443/rhsm \
--baseurl=https://loadbalancer.example.com/pulp/repos

Expected results:
*NOTE: a new symlink to the latest LB RPM could be used like the example below*
New Manual Registration Method:
1. Install the katello-ca-consumer package from the load balancer:
# rpm -Uvh \
http://loadbalancer.example.com/pub/katello-ca-consumer-lb-latest.noarch.rpm
Version-Release number of selected component (if applicable):

2. Register the client:
# subscription-manager register
or with an AK:
# subscription-manager register --org=Your_Organization \
--activationkey=Your_Activation_Key

Additional info:
This would solve a couple of customer constraints and issues while adding value as noted below:

1. By have the dual RPM, customers could assign clients to Capsules statically and additional clients through an LB.
Example:
Capsules in the USA and China
Clients in the USA, India, and China
Clients relative to the location could be registered to the closest Capsule while clients further away could be registered through the load balancer.

2. Setting the LB hostname in the RPM would prevent additional actions/commands needed from users, lowering the chance for error.

3. For any unique scenarios where the client would have to reinstall the katello-ca-consumer RPM, the name of the RPM for an LB Capsule set would be the same across all Capsules resulting in the 'yum/dnf update' command being a single point of resolution as opposed to 'yum remove katello-ca-consumer-*; yum install katello-ca-consumer-latest'

Comment 2 Eric Helms 2022-05-17 13:07:22 UTC
The bootstrap.py is designed and documented to handle this situation. Given we have that as a solution, and the future will also be using global registration we do not intend to address this RFE.


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