Red Hat Bugzilla – Bug 866323
Storing the user report via cli in a pdf format fails in headpin-cli upstream
Last modified: 2016-04-25 20:54:35 EDT
Created attachment 627199 [details] The client.log file /var/log/katello/client.log Description of problem: When a user report is tried to be generated using the headpin-cli in pdf format it fails. Version-Release number of selected component (if applicable): # rpm -qa | grep katello katello-selinux-1.1.2-1.el6.noarch katello-cli-1.1.10-1.el6.noarch katello-candlepin-cert-key-pair-1.0-1.noarch katello-configure-1.1.11-1.el6.noarch katello-common-1.1.14-1.git.7.a19ce6f.el6.noarch katello-headpin-all-1.1.14-1.git.7.a19ce6f.el6.noarch katello-certs-tools-1.1.9-1.el6.noarch katello-glue-candlepin-1.1.14-1.git.7.a19ce6f.el6.noarch katello-cli-common-1.1.10-1.el6.noarch katello-headpin-1.1.14-1.git.7.a19ce6f.el6.noarch How reproducible: yum install -y katello-headpin-all katello-configure --deployment=headpin Using Jenkins the automated test report generated : http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/view/qe-headpin/job/official-headpin-cli/11/ReportNG_Report/ Steps to Reproduce: 1. # yum install -y katello-headpin-all 2. # katello-configure --deployment=headpin 3. # headpin -u admin -p admin user report --format pdf error: 'utf8' codec can't decode byte 0xff in position 10: invalid start byte (more in the log file /var/log/katello/client.log) Actual results: The report pdf file is not generated. Expected results: A pdf file containing the user report is generated . Additional info:
This happen with katello installation as well - not just headpin.
taking
https://github.com/Katello/katello/pull/850
commit * c749d42 (fork/pull-req-bz866323, pull-req-bz866323) 866323 - do not print binary files to log
# headpin -u Administrator -p Redhat@1234 user report --format pdf # ls anaconda-ks.cfg install.log katello_users_report.pdf ssl-build headpin_systems_report.pdf install.log.syslog redhat-ddns-client-1.3-3.noarch.rpm Should katello_users_report.pdf be named sam_users_report.pdf?
I would say no. SAM is name of product. The same CFSE is name of product. Katello is name of upstream project. So similary as we do not have cfse_user_report, we do not have sam_user_report. It's all katello_user_report.
VERIFIED : # rpm -qa | grep katello katello-certs-tools-1.2.1-1h.el6_3.noarch katello-candlepin-cert-key-pair-1.0-1.noarch katello-cli-common-1.2.2-1h.el6_3.noarch katello-glue-candlepin-1.2.2-1h.el6_3.noarch katello-cli-1.2.2-1h.el6_3.noarch katello-selinux-1.2.1-1h.el6_3.noarch katello-headpin-all-1.2.2-1h.el6_3.noarch katello-headpin-1.2.2-1h.el6_3.noarch katello-configure-1.2.1-1h.el6_3.noarch katello-common-1.2.2-1h.el6_3.noarch # headpin -u admin -p admin user report --format pdf # ls anaconda-ks.cfg install.log.syslog NETBOOT_METHOD.TXT ssl-build install.log katello_users_report.pdf RECIPE.TXT
Sorry.. Changed to MODIFIED need to verify it for puddle
Verified: * candlepin-0.7.23-1.el6_3.noarch * candlepin-tomcat6-0.7.23-1.el6_3.noarch * elasticsearch-0.19.9-5.el6_3.noarch * katello-candlepin-cert-key-pair-1.0-1.noarch * katello-certs-tools-1.2.1-1h.el6_3.noarch * katello-cli-1.2.1-12h.el6_3.noarch * katello-cli-common-1.2.1-12h.el6_3.noarch * katello-common-1.2.1-15h.el6_3.noarch * katello-configure-1.2.3-3h.el6_3.noarch * katello-glue-candlepin-1.2.1-15h.el6_3.noarch * katello-headpin-1.2.1-15h.el6_3.noarch * katello-headpin-all-1.2.1-15h.el6_3.noarch * katello-selinux-1.2.1-2h.el6_3.noarch * thumbslug-0.0.28-1.el6_3.noarch * thumbslug-selinux-0.0.28-1.el6_3.noarch
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-2013-0544.html