Bug 827557

Summary: candlepin-cert-consumer rpm not installable on RHEL5 - rpmlib(PayloadIsXz) <= 5.2-1 is needed
Product: Red Hat Satellite Reporter: Chris Pelland <cpelland>
Component: InstallationAssignee: Mike McCune <mmccune>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: cpelland, inecas, jlaska, kbidarka, mmccune, omaciel, sachua, snansi, ssachdev
Target Milestone: UnspecifiedKeywords: Triaged, ZStream
Target Release: Unused   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When configuring katello (katello-configure) on a Red Hat Enterprise Linux system with the redhat-rpm-config package installed, katello creates a candlepin-cert-consumer RPM that is not installable on Red Hat Enterprise Linux 5 systems. This update sets the build macros to use algorithms supported in Red Hat Enterprise Linux 5.
Story Points: ---
Clone Of: 818261 Environment:
Last Closed: 2012-07-10 07:25:08 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:
Embargoed:
Bug Depends On: 818261    
Bug Blocks:    

Description Chris Pelland 2012-06-01 18:27:37 UTC
+++ This bug was initially created as a clone of Bug #818261 +++

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Used https://qeblade31.rhq.lab.eng.bos.redhat.com/templates/Dev/rhel-x86_64-6.2-cf-tools.xml to build and push image for Rhev and Vsphere

2. ssh to Instance and 

yum -y install http://qeblade31.rhq.lab.eng.bos.redhat.com/pub/candlepin-cert-consumer-qeblade31.rhq.lab.eng.bos.redhat.com-1.0-1.noarch.rpm
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
No package http://qeblade31.rhq.lab.eng.bos.redhat.com/pub/candlepin-cert-consumer-qeblade31.rhq.lab.eng.bos.redhat.com-1.0-1.noarch.rpm available.
Nothing to do

or 

rpm -Uvh http://qeblade31.rhq.lab.eng.bos.redhat.com/pub/candlepin-cert-consumer-qeblade31.rhq.lab.eng.bos.redhat.com-1.0-1.noarch.rpm
Retrieving http://qeblade31.rhq.lab.eng.bos.redhat.com/pub/candlepin-cert-consumer-qeblade31.rhq.lab.eng.bos.redhat.com-1.0-1.noarch.rpm
error: Failed dependencies:
	rpmlib(FileDigests) <= 4.6.0-1 is needed by candlepin-cert-consumer-qeblade31.rhq.lab.eng.bos.redhat.com-1.0-1.noarch
	rpmlib(PayloadIsXz) <= 5.2-1 is needed by candlepin-cert-consumer-qeblade31.rhq.lab.eng.bos.redhat.com-1.0-1.noarch

3. 
  
Actual results:


Expected results:


Additional info:

rpm -qa|grep aeolus
aeolus-conductor-0.8.13-1.el6_2.noarch
aeolus-configure-2.5.3-1.el6.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
rubygem-aeolus-cli-0.3.1-1.el6.noarch
aeolus-all-0.8.13-1.el6_2.noarch
aeolus-conductor-doc-0.8.13-1.el6_2.noarch
aeolus-conductor-daemons-0.8.13-1.el6_2.noarch


========================================================

cat /var/log/audrey.log 
2012-05-02 08:31:31,290 - ERROR   : audrey:93 Failed accessing RHEVm user data.

--- Additional comment from jlaska on 2012-05-02 11:26:17 EDT ---

Reassigning to the proper component.

The script used by katello-configure to generate the candlepin-cert package is called gen-rpm.sh

# rpm -qf /usr/share/katello/certs/gen-rpm.sh
katello-certs-tools-1.0.4-1.el6.noarch

--- Additional comment from mmccune on 2012-05-02 11:41:47 EDT ---

Too late to fix for 1.0.0 but will consider for 1.0.z

--- Additional comment from jlaska on 2012-05-02 11:54:27 EDT ---

== Description of problem ==

The katello-built candlepin-cert is uninstallable on RHEL5 systems.  This package is used to streamline the configuration process for deployed instances.  Use of this package is documented in the Cloud Engine User guide [1] (7.4. Using Runtime Configuration with System Engine Registration).

This previously was tested and determined to work fine with beta6.  I'm unclear why this previously worked, but fails now.

[1] http://documentation-stage.bne.redhat.com/docs/en-US/CloudForms/1.0/html/Cloud_Engine_User_Guide/chap-Cloud_Engine_User_Guide-Runtime_Config-System_Engine_Registration.html

== Workaround ==

1) On your katello system, rebuild the candlepin-cert package without Xz payload support

# cd /var/www/html/pub
# rpmbuild --rebuild --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5" --define "_source_payload nil" --define "_binary_payload nil" candlepin-cert-consumer-*.src.rpm
# cp /root/rpmbuild/RPMS/noarch/candlepin-cert-consumer-*.noarch.rpm .

# rpm -Uvh http://qeblade31.rhq.lab.eng.bos.redhat.com/pub/candlepin-cert-consumer-qeblade31.rhq.lab.eng.bos.redhat.com-1.0-1.noarch.rpm
Retrieving http://qeblade31.rhq.lab.eng.bos.redhat.com/pub/candlepin-cert-consumer-qeblade31.rhq.lab.eng.bos.redhat.com-1.0-1.noarch.rpm
Preparing...                ########################################### [100%]
   1:candlepin-cert-consumer########################################### [100%]

--- Additional comment from jlaska on 2012-05-02 11:54:28 EDT ---


    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
See comment#3 for suggested workaround and problem identification

--- Additional comment from jlaska on 2012-05-02 13:54:41 EDT ---

== Additional information ==

This is the first time I've performed my end-to-end testing using a beaker provisioned system.  The initial install %packages used by beaker differ from what I as testing with originally (@Base).

The beaker provisioned system includes the redhat-rpm-config package.  This packaging provides the following macro:

> # rpm -ql redhat-rpm-config | xargs grep -i payload
> /usr/lib/rpm/redhat/macros:# Use XZ compression for binary payloads
> /usr/lib/rpm/redhat/macros:%_binary_payload w2.xzdio

When configuring katello (katello-configure) on a RHEL system with the redhat-rpm-config package installed, katello will create a candlepin-cert-consumer RPM that is not installable on RHEL5 systems.

To avoid this bug, run be sure that redhat-rpm-config is *not* installed when running 'katello-configure'

After it happens, to work around this problem, run the following commands to rebuild a RHEL5 installable candlepin-cert-consumer RPM.

> # cd /var/www/html/pub
> # rpmbuild --rebuild --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5" --define "_source_payload nil" --define "_binary_payload nil" candlepin-cert-consumer-*.src.rpm
> # cp /root/rpmbuild/RPMS/noarch/candlepin-cert-consumer-*.noarch.rpm .

To prevent this problem from happening in the future, the gen-rpm.sh script (provided by katello-cert-tools) will need to use the proper rpmbuild parameters.

--- Additional comment from jlaska on 2012-05-02 13:54:41 EDT ---


    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-See comment#3 for suggested workaround and problem identification+See comment#5 for suggested workaround and problem identification

--- Additional comment from inecas on 2012-05-03 05:05:02 EDT ---

Fixed in commit 37554b36250e475a24d2b63ffe7b574dfc257563 - setting build macros to use algorithms supported in RHEL5

--- Additional comment from snansi on 2012-05-08 21:47:29 EDT ---

Release Note added. Link:

http://documentation-stage.bne.redhat.com/docs/en-US/CloudForms/1.0/html-single/Release_Notes/index.html#sect-Release_Notes-System_Engine-System_Engine_Considerations-known_issues_08

Regards, 
Shikha

--- Additional comment from mmccune on 2012-05-10 19:51:54 EDT ---

This should not be MODIFIED, it should be ON_DEV unless a cherry-pick has taken place into system-engine which I don't see having happened.

Comment 5 Kedar Bidarkar 2012-06-06 06:54:35 UTC
http://documentation-stage.bne.redhat.com/docs/en-US/CloudForms/1.0/html-single/Release_Notes/index.html#sect-Release_Notes-System_Engine-System_Engine_Considerations-known_issues_08


From the above link 

3.1.8. "candlepin-cert-consumer" Rpm Requires Red Hat Enterprise Linux 5.2-1 +
The beaker provisioned system includes the redhat-rpm-config package. This packaging provides the following macro: 


The documentation shouldn't be referring about beaker "beaker provisioned system", as it's only internal to redhat.

Comment 6 sachua 2012-06-13 06:02:09 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When configuring katello (katello-configure) on a Red Hat Enterprise Linux system with the redhat-rpm-config package installed, katello creates a candlepin-cert-consumer RPM that is not installable on Red Hat Enterprise Linux 5 systems. This update sets the build macros to use algorithms supported in Red Hat Enterprise Linux 5.

Comment 10 errata-xmlrpc 2012-07-10 07:25:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-1062.html