Hide Forgot
When createing a product in Katello, Candlepin is populated with two content records. The first references the upstream repo. The second, references the location which would be exposed by pulp. This first content record needs to not exists. Steps to reproduce Execute the following script within the katello shell: # Create a new org org create --name TestOrg --description "This rocks" # Create a Custom Provider provider create --org TestOrg --name katello --type custom product create --org TestOrg --provider katello --name katello repo create --org TestOrg --product katello --name base --url http://repos.fedorapeople.org/repos/katello/katello/fedora-15/x86_64/ provider synchronize --org TestOrg --name katello # Create an Environemnt environment create --org TestOrg --name Dev --prior Locker environment create --org TestOrg --name Prod --prior Dev # Promtote Katello to Dev changeset create --org TestOrg --name "PromoteKatello" --environment Dev changeset update --org TestOrg --name PromoteKatello --environment Dev --add_product katello changeset promote --org TestOrg --name PromoteKatello --environment Dev Now look in the candlepin database. You will see 2 content records. The first has a content url of http://repos.fedorapeople.org/repos/katello/katello/fedora-15/x86_64/. The second has one of katello/base. The first record should not exists as it causes yum to error out when it is used.
The process with content in CP is as follows: The first content (with upstream repo) is created, then a repo is created. It corresponds to the Locker repo. The second is created, when the repo is promoted. We can prevent from creating the content in the first case. Second case the content is created for Locker environment is while importing manifest. In this case, CP creates the content it self. Should we delete it immediately? Or shouldn't CP create it in the first place?
We will never need that first content in candlepin. Pulp will need it to mirror, but candlepin will not. So if it is possible to never create it, that is fine.
Fixed in commit 2e9f377c3a389d4e86057217b79a6d5053d71671
*** Bug 735116 has been marked as a duplicate of this bug. ***
candlepin=> select name, label, contenturl from cp_content order by name, contenturl asc; name | label | contenturl --------------+--------------------------------+-------------------------------- CFTools | Seattle_RHN_CFTools | /custom/RHN/CFTools RHEL 6.2 | Seattle_RHN_RHEL_6.2 | /custom/RHN/RHEL_6_2 RHEL 6Server | Seattle_RHN_RHEL_6Server | /custom/RHN/RHEL_6Server el6-se | Seattle_SystemEngine_el6-se | /custom/SystemEngine/el6-se el6-tools | Seattle_SystemEngine_el6-tools | /custom/SystemEngine/el6-tools (5 rows) Validated: * candlepin-0.5.22-1.el6.noarch * candlepin-tomcat6-0.5.22-1.el6.noarch * katello-0.1.300-1.el6.noarch * katello-all-0.1.300-1.el6.noarch * katello-certs-tools-1.0.2-2.el6.noarch * katello-cli-0.1.100-2.el6.noarch * katello-cli-common-0.1.100-2.el6.noarch * katello-common-0.1.300-1.el6.noarch * katello-configure-0.1.100-7.el6.noarch * katello-glue-candlepin-0.1.300-1.el6.noarch * katello-glue-foreman-0.1.300-1.el6.noarch * katello-glue-pulp-0.1.300-1.el6.noarch * katello-httpd-ssl-key-pair-1.0-1.noarch * katello-qpid-broker-key-pair-1.0-1.noarch * katello-repos-0.1.5-1.el6.noarch * katello-selinux-0.1.7-1.el6.noarch * katello-trusted-ssl-cert-1.0-1.noarch * pulp-0.0.267-2.el6.noarch * pulp-admin-0.0.267-2.el6.noarch * pulp-client-lib-0.0.267-2.el6.noarch * pulp-common-0.0.267-2.el6.noarch * pulp-selinux-server-0.0.267-2.el6.noarch
getting rid of 6.0.0 version since that doesn't exist