Actions
Bug #25739
closedkatello-rhsm-consumer can fail, breaking the isntallation of katello-ca-consumer.rpm
Difficulty:
Triaged:
Yes
Pull request:
Description
I have a host (well, container), where hostname -f
returns an error:
[root@a8cc0652a1a1 ~]# hostname a8cc0652a1a1 [root@a8cc0652a1a1 ~]# hostname -f hostname.orig: Unknown host [root@a8cc0652a1a1 ~]# echo $? 1
This results in katello-rhsm-consumer
failing when executed:
[root@a8cc0652a1a1 ~]# /usr/bin/katello-rhsm-consumer hostname: Unknown host [root@a8cc0652a1a1 ~]# echo $? 1
Which in turn makes %post
of katello-ca-consumer.rpm
fail:
# rpm -Uvh http://katello.example.com/pub/katello-ca-consumer-latest.noarch.rpm Retrieving http://katello.example.com/pub/katello-ca-consumer-latest.noarch.rpm Preparing... ################################################## katello-ca-consumer-katello.################################################## hostname: Unknown host error: %post(katello-ca-consumer-katello.example.com-1.0-3.noarch) scriptlet failed, exit status 1
The problem here is that katello-rhsm-consumer
is executed with set -e
(which is good in general!), which makes it fail on the first subprocess fail instead of allowing us to handle the failure ourself.
Updated by Evgeni Golov almost 6 years ago
This was introduced in puppet-certs:f188ea02d18ab8c0db2f1236a61af7a7a5ecd5dc
Updated by Evgeni Golov almost 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/puppet-certs/pull/234 added
Updated by Ewoud Kohl van Wijngaarden almost 6 years ago
- Fixed in Releases Katello 3.11.0 added
- Found in Releases Katello 3.11.0 added
Updated by Evgeni Golov almost 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset puppet-certs|f53975534752041d655994795b539912e4b7aa36.
Updated by Justin Sherrill almost 6 years ago
- Target version set to Katello 3.11.0
- Triaged changed from No to Yes
Actions