Description of problem: Whenever a user adds an individual package with more than a single dash in the name to a changeset or system template and attempts to promote, an error is thrown indicating the package could not be found in the previous environment. Version-Release number of selected component (if applicable): How reproducible: Always. Steps to Reproduce: 1. Add and sync a repository containing the 'aeolus-audrey-agent' package. 2. Create a system template and add the 'aeolus-audrey-agent' package. 3. Create a changeset that contains the previously mentioned system template. 4. Review and promote the changeset. Actual results: An error is thrown: [ERROR: 2012-07-12 13:54:54 #10321] base: Package 'aeolus-audrey-agent' not found in the Library environment Expected results: The changeset containing the aeolus-audrey-agent is promoted without error. Additional info: This issue is related to how a package is looked up in pulp by attempting to parse the name to determine if it is an NVRE or an actual package name. Package names with more than a single dash in them incorrectly pass the NVRE regex check and fail to be found in Pulp failing the entire promotion.
similar and related to: https://bugzilla.redhat.com/show_bug.cgi?id=818370
We have a pull request to fix this here: https://github.com/Katello/katello/pull/335
*** Bug 842903 has been marked as a duplicate of this bug. ***
The following commit addresses the above issues with multiple dashes in a package name during promotion in either a Changeset or System Template. https://github.com/Katello/katello/commit/afa584619f52fa568efd0eaf82a7b95ab40af20a
Upgraded existing 1.0.1 system to repository with fix and performed the steps mentioned in the issue with success. Versions used: * candlepin-tomcat6-0.6.5-1.el6_2.noarch * katello-0.1.319-1.el6cf.noarch * katello-all-0.1.319-1.el6cf.noarch * katello-candlepin-cert-key-pair-1.0-1.noarch * katello-certs-tools-1.0.7-1.el6_3.noarch * katello-cli-0.1.112-1.el6cf.noarch * katello-cli-common-0.1.112-1.el6cf.noarch * katello-common-0.1.319-1.el6cf.noarch * katello-configure-0.1.111-1.el6cf.noarch * katello-glue-candlepin-0.1.319-1.el6cf.noarch * katello-glue-foreman-0.1.319-1.el6cf.noarch * katello-glue-pulp-0.1.319-1.el6cf.noarch * katello-qpid-broker-key-pair-1.0-1.noarch * katello-qpid-client-key-pair-1.0-1.noarch * katello-selinux-0.1.10-1.el6.noarch * pulp-1.0.4-1.el6.noarch * pulp-common-1.0.4-1.el6.noarch * pulp-selinux-server-1.0.4-1.el6.noarch
VERIFIED as per previous comment.
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: Pulp incorrectly parsed packages name with more than one dash. This caused the following error for a changeset promotion that contains aeolus-audrey-agent: "Package 'aeolus-audrey-agent' not found in the Library environment." This fix removes the option to add a package to a system template by NVRE, which allows successful promotion of changesets containing aeolus-audrey-agent.
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 @@ -Pulp incorrectly parsed packages name with more than one dash. This caused the following error for a changeset promotion that contains aeolus-audrey-agent: "Package 'aeolus-audrey-agent' not found in the Library environment." This fix removes the option to add a package to a system template by NVRE, which allows successful promotion of changesets containing aeolus-audrey-agent.+Pulp incorrectly parsed packages name with more than one dash. This caused the following error for a changeset promotion: "Package '[this-package-name]' not found in the Library environment." This fix removes the option to add a package to a system template by NVRE, which allows successful promotion of changesets.
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 @@ -Pulp incorrectly parsed packages name with more than one dash. This caused the following error for a changeset promotion: "Package '[this-package-name]' not found in the Library environment." This fix removes the option to add a package to a system template by NVRE, which allows successful promotion of changesets.+Pulp incorrectly parsed package names with more than one dash. This caused the following error for a changeset promotion: "Package '[this-package-name]' not found in the Library environment." This fix removes the option to add a package to a system template by NVRE, which allows successful promotion of changesets.
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-2012-1179.html
Automated in class: "com.redhat.qe.katello.tests.e2e.PromotePackageWithDashes"
getting rid of 6.0.0 version since that doesn't exist