Created attachment 747194 [details] call pulp.generate_metadata() when performing "rhui-manager packages upload" Description of problem: There is a discrepancy between rhui-manager doing packages upload in command-line("rhui-manager packages upload") and interactive mode. In command-line mode rhui-manager does not call pulp.generate_metadata() at the end of transaction so packages are really never added to the repo and won't be ever synchronized to the CDS. Version-Release number of selected component (if applicable): rh-rhui-tools-2.1.19-1.el6_4.noarch How reproducible: Always. Steps to Reproduce: 1. Create custom repo 2. Upload a package in command-line mode "rhui-manager packages upload" 3. Assign this repo to a CDS and sync it 4. Check whether the package is present on CDS. Actual results: Package is not present. Expected results: Package is present. Additional info: Patch attached.
Commit: 1542475d764897ebb237873003be051e0bc254bc rhui-manager packages upload --repo_id test_content_repo --packages /home/ec2-user/rh-amazon-rhui-client-2.2.87-1.el6_4.noarch.rpm Uploading /home/ec2-user/rh-amazon-rhui-client-2.2.87-1.el6_4.noarch.rpm... less /var/lib/pulp/repos/test_content_repo/repodata/5716eca3c6f499ddc94cdd7ae8c21aad49738815081e575c3e51a0cc37b0c188-filelists.xml.gz <?xml version="1.0" encoding="UTF-8"?> <filelists xmlns="http://linux.duke.edu/metadata/filelists" packages="1"> <package pkgid="7b70b6de1524fc773404c453a42468cf62fa708c0f9bbb943bb9ecfeea782056" name="rh-amazon-rhui-client" arch="noarch"> ... </package> </filelists>
tested in rh-rhui-tools-2.1.27-1.el6_4.noarch Move to Verified.
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-2013-1854.html