This update adds a step for generating metadata that was not part of the upload API call. This meant that packages would be associated to a repository but the yum metadata was not updated to reflect the new packages. This caused a yum client to be unable to use these new packages. This was corrected by including the metadata generation in the upload API. The packages are now able to used by a yum client after they are uploaded.
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.
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
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.