Description of problem: Sequence of steps: Created a template which had our custom RHEL distro and custom candlepin prouct Created changeset containing RHEL product, candlepin repo, and system template. Promoted changeset from Library to Dev environment Promotion failed with: Failed to promote changeset 'my first changeset" to Dev environment However, the dev environment contains the promoted content Next, try to download the template from the Dev environment and receive: error At least repository must be present to export a TDL Exactly one distribution must be present to export a TDL One thing I noticed, is that during each promotion, all repo's associated with the promotion had a sync kicked off for it.
Brad dug around a bit and it turns out it is a result of the way Katello parses the NVREA of the RPM put into the template name: candlepin-cert-consumer-seng1.example.com-1.0-1.noarch.rpm Katello improperly thinks the hyphens are the separators between the fields and ends up storing: #<SystemTemplatePackage id: nil, system_template_id: 8, package_name: "candlepin-cert", version: "consumer", release: "seng1.example.com", epoch: nil, arch: nil> bumping to 1.0.z since the bug is very difficult as an end user to understand why the promotion is failing.
Fixed in commit 3359586c68ba55f7607b9db5f01577d4fca78acf
qe-acked
Created attachment 614855 [details] Candlepin rpm repo's template Created a template which had a) custom RHEL distro from 'RHEL' provider b) custom candlepin repo from 'candlepin' Provider Created changeset containing a) RHEL product, b)candlepin repo, and c) the above system template. The promotion was successful. The template downloaded from the Dev env is also attached, after promotion of changeset was successful.
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
getting rid of 6.0.0 version since that doesn't exist