Red Hat Bugzilla – Bug 818261
candlepin-cert-consumer rpm not installable on RHEL5 - rpmlib(PayloadIsXz) <= 5.2-1 is needed
Last modified: 2014-01-27 09:02:08 EST
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.
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
Too late to fix for 1.0.0 but will consider for 1.0.z
== 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%]
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 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.
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
Fixed in commit 37554b36250e475a24d2b63ffe7b574dfc257563 - setting build macros to use algorithms supported in RHEL5
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
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.
QE Verified, can now install cert on a rhel5 system.
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/RHSA-2012-1543.html