[Satellite5] Getting an error for a repository while registering a client system using bootstrap script
Issue
- Registering a client system using bootstrap script gives and error message if the activation key includes JBOSS channels.
[root@satellite-client ~]# curl -Sks https://satellite.example.comt/pub/bootstrap/bootstrap | /bin/bash
Red Hat Satellite Server Client bootstrap script v4.0
MINOR MANUAL EDITING OF THIS FILE MAY BE REQUIRED!
If this bootstrap script was created during the initial installation
of an Red Hat Satellite, the ACTIVATION_KEYS, and ORG_GPG_KEY values will
probably *not* be set (see below). If this is the case, please do the
following:
- copy this file to a name specific to its use.
(e.g., to bootstrap-SOME_NAME.sh - like bootstrap-web-servers.sh.)
- on the website create an activation key or keys for the system(s) to
be registered.
- edit the values of the VARIABLES below (in this script) as
appropriate:
- ACTIVATION_KEYS needs to reflect the activation key(s) value(s)
from the website. XKEY or XKEY,YKEY
- ORG_GPG_KEY needs to be set to the name(s) of the corporate public
GPG key filename(s) (residing in /var/www/html/pub) if appropriate. XKEY or XKEY,YKEY
Verify that the script variable settings are correct:
- CLIENT_OVERRIDES should be only set differently if a customized
client-config-overrides-VER.txt file was created with a different
name.
- ensure the value of HOSTNAME is correct.
- ensure the value of ORG_CA_CERT is correct.
Enable this script: comment (with #'s) this block (or, at least just
the exit below)
UPDATING RHN_REGISTER/UP2DATE CONFIGURATION FILES
-------------------------------------------------
* downloading necessary files
client_config_update.py...
client-config-overrides.txt...
* running the update scripts
. up2date config file
* importing organizational GPG key
error: RHN-ORG-TRUSTED-SSL-CERT: key 1 not an armored public key.
* attempting to install corporate public CA cert
Retrieving http://satellite.example.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:rhn-org-trusted-ssl-cert-1.0-1 ################################# [100%]
REGISTRATION
------------
* registering
*** this system should now be registered, please verify ***
OTHER ACTIONS
------------------------------------------------------
yum -y upgrade yum yum-rhn-plugin; rhn-profile-sync
but any post configuration action can be added here.
------------------------------------------------------
* ensuring yum itself is updated
Loaded plugins: langpacks, product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
rpm --import public.gpg.key
Alternatively you can specify the url to the key you would like to use
for a repository in the 'gpgkey' option in a repository section and yum
will install it for you.
For more information contact your distribution or package provider.
Problem repository: jb-ews-2-x86_64-server-7-rpm
Updating package profile...
Updating hardware profile...
-bootstrap complete-
- Unable to install any packages on newly installed system registered to Satellite Server.
[root@satellite-client]# yum install httpd
Loaded plugins: langpacks, product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
rpm --import public.gpg.key
Alternatively you can specify the url to the key you would like to use
for a repository in the 'gpgkey' option in a repository section and yum
will install it for you.
For more information contact your distribution or package provider.
Problem repository: jb-ews-2-x86_64-server-7-rpm
Environment
- Red Hat Enterprise Linux 7
- Red Hat Satellite 5.x
- JBoss channels
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
