Bug 1302900

Summary: rhn-org-trusted-ssl-cert doesn't install correctly on EL5
Product: [Community] Spacewalk Reporter: Avi Miller <avi.miller>
Component: ClientsAssignee: Jan Dobes <jdobes>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.4CC: avi.miller, jdobes, tkasparek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-16 08:03:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1484117    

Description Avi Miller 2016-01-28 22:43:40 UTC
Description of problem:

Commit bf161d6 added update-ca-cert.sh to the spec file that is used to build the rhn-org-trusted-ssl-cert RPM. However, this uses the /usr/bin/update-ca-trust tool which doesn't exist on EL5.


Version-Release number of selected component (if applicable):

spacewalk-certs-tools-2.4.7-1
spacewalk-certs-tools-2.4.6-1
spacewalk-certs-tools-2.4.5-1
spacewalk-certs-tools-2.4.4-1

How reproducible:

100%

Steps to Reproduce:
1. Install Spacewalk 2.4
2. Download rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm from the Spacewalk server
3. rpm -ivh rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm on an EL5 client

Actual results:

# rpm -ivh rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
Preparing...                ########################################### [100%]
   1:rhn-org-trusted-ssl-cer########################################### [100%]
ln: creating symbolic link `/etc/pki/ca-trust/source/anchors' to `/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT': No such file or directory
/var/tmp/rpm-tmp.1700: line 33: /usr/bin/update-ca-trust: No such file or directory
error: %post(rhn-org-trusted-ssl-cert-1.0-1.noarch) scriptlet failed, exit status 127


Expected results:

# rpm -ivh rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
Preparing...                ########################################### [100%]
   1:rhn-org-trusted-ssl-cer########################################### [100%]

Additional info:

There is no ca-certificates packages on EL5 and no /usr/bin/update-ca-trust tool either.

Comment 1 Jan Dobes 2016-02-03 15:13:23 UTC
fixed in spacewalk master:

927fb4f2b9ba7f6ad5f681f0637d56a1b30f8f86

Comment 2 Tomáš Kašpárek 2016-06-16 08:03:48 UTC
Spacewalk 2.5 was released.

Comment 3 Eric Herget 2017-09-28 18:11:43 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.