Project

General

Profile

Bug #22884

Script in katello-ca-consumer-latest.noarch.rpm throws a warning on SLES client

Added by John Mitsch over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

when installing bootstrap rpm to register as a client:

suse12:~ # rpm -Uvh http://bacon.jomitsch.example.com/pub/katello-ca-consumer-latest.noarch.rpm
Retrieving http://bacon.jomitsch.example.com/pub/katello-ca-consumer-latest.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:katello-ca-consumer-bacon.jomitsc################################# [100%]
warning: %post(katello-ca-consumer-bacon.jomitsch.example.com-1.0-1.noarch) scriptlet failed, exit status 5

Associated revisions

Revision b96b3d62 (diff)
Added by John Mitsch over 3 years ago

Fixes #22884 - Check RHSM version for hostname-override (#195)

The adding of a subscription-manager fact is failing on
stock SLES12 installs as 'hostname -f' doesn't work "out of
the box":

`hostname: Name or service not known`

This is due to /etc/hosts not having the FQDN associated with
127.0.0.1

Its an easy fix, but for automated provisioning/scripting we
want to be sure the bootstrap rpm script will run without
issues.

The subscription manager hostname-override fact isn't
needed for subscription manager versions past 1.18.1-1,
so we can skip this block of code for later versions.

This commit checks the subscription manager version before
adding the hostname-override fact. This is something we
should do anyways and it avoids the error for SLES.
SLES will use subscription-manager-1.20.5-7.1.x86_64 or
later, so this block of code isn't even needed.

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/puppet-certs/pull/195 added

#2 Updated by Andrew Kofink over 3 years ago

  • Legacy Backlogs Release (now unused) set to 338

#3 Updated by John Mitsch over 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF