Another RHEL7 – Satellite subscription issue

ISSUE:

UNCG Library RHEL-7 servers no longer registered, and unable to register new RHEL-7 servers.

DETAILS:

We built a new RHEL-7 virtual server intended to host a new application. Followed procedure for subscribing via UNC-GA Satellite server at rhn.northcarolina.edu

############################

# Step 1: Download and install trusted ssl cert.
RESULT: FAILURE.

Command:
rpm -Uvh http://rhn.northcarolina.edu/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm

Returned:
404 File not Found

############################

# Step 2: Download and install Katello-ca-consumer
RESULT: SUCCESS

Commands:
curl -O http://rhn.northcarolina.edu/pub/katello-ca-consumer-latest.noarch.rpm && rpm -ivh katello-ca-consumer-latest.noarch.rpm

Returned:
Installed successfully

############################

# Step 3: Verify rhn plugins configured and activated properly:
RESULT:SUCCESS

Command:

grep enabled /etc/yum/pluginconf.d/rhnplugin.conf

Returned:
/etc/yum/pluginconf.d/subscription-manager.conf
/etc/yum/pluginconf.d/rhnplugin.conf:enabled = 0
/etc/yum/pluginconf.d/rhnplugin.conf:#enabled = 1
/etc/yum/pluginconf.d/subscription-manager.conf:enabled=1

############################

# Step 4: Install katello-agent
RESULT: SUCCESS

############################

# Step 5: Register system using UNCG as org and UNCG – Library activation key

RESULT: FAILURE

Command:

subscription-manager register –org=”UNCG” –activationkey=”UNCG – Library”

Returned:
ActivationKey with id 1884d08560d66dc401610437fb411ff2 could not be found.

############################

–Also powered on and checked subscription status of our other three RHEL-7 boxes. All are showing that they are no longer subscribed.

FURTHER ANALYSIS:

-Logged in to rhn.northcarolina.edu, noticed that the UI appears to be different than my last visit, indicating an upgrade. Can’t recall what version it was in the past, but it is currently reading as Satellite version 6.5.1

Attempted to navigate to Content tab > Content views to see activation keys, received error immediately. Clicking on most tab results in similar errors.


Oops, we're sorry but something went wrong Katello::Resources::Candlepin::Owner: 404 Not Found {"displayMessage":"Organization with id UNCG could not be found.","requestUuid":"feffc2f4-fa50-47f7-9434-5209b2b8dae0"} (GET /candlepin/owners/UNCG)

#################################################################################################
###########

SOLUTION:

UNCG now has an On-premises Satellite server.


subscription-manager unregister 
subscription-manager clean
subscription-manager refresh
yum clean all
yum remove -y katello-ca-consumer-rhn.northcarolina.edu-1.0-1.noarch

sed -i 's/rhn.northcarolina/plx-rhnsat.uncg/' /etc/sysconfig/rhn/up2date
sed -i 's/rhn.northcarolina/plx-rhnsat.uncg/' /etc/rhsm/rhsm.conf

curl --insecure --output /tmp/katello-ca-consumer-latest.noarch.rpm  https://plx-rhnsat.uncg.edu/pub/katello-ca-consumer-latest.noarch.rpm
yum localinstall -y /tmp/katello-ca-consumer-latest.noarch.rpm 
subscription-manager register --org="UNC_Greensboro" --activationkey="UNCG-RHEL7"
subscription-manager repos --enable=rhel-7-server-satellite-tools-6.4-rpms
subscription-manager repos --disable=rhel-7-server-rh-common-rpms
yum install -y katello-agent
rm -rf /var/cache/yum/*
yum clean all 
yum update -y

Leave a Reply

Your email address will not be published. Required fields are marked *