Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Getting an errror the Web UI when trying to promote a content view from my Dev lifecycle environment to my Staging lifecycle environment.
Duplicate resource: Acme-Staging-Test_View-Acme-Acme_Example_RPMs
We need a way to:
1) prevent this from happening in the future
2) method for cleaning up conflicting records in Pulp to assist when customers get into this situation.
Some notes:
Various actions in katello:
Content View Publish
Content View Promote
Enable Repo
end up creating a repo in pulp. Due to a change that was made for 6.0.4, there is an opportunity for another error to cause a repository to be created in pulp but not katello.
This only occurs when something else goes wrong, but due to this issue the user is unable to re-attempt the same action, becuase they will get a "Duplicate Resource" error. (the repo has been created in pulp).
To reproduce we need to get Katello into an error state. To do so we will exploit a known bug:
Steps to Reproduce:
1. Create a content view
2. Publish the content view
3. Go to the puppet environments page
4. Delete the puppet environment
5. Publish a new version of the content view
you will get an error: ' Validation failed: Puppet environment can't be blank'
6. Try to publish again:
Duplicate Resource SOME_PULP_ID
You should be able to continuously try to publish and get the same "Puppet environment can't be black error", it should not cause a duplicate resource issue.
I'm sure there are many ways to exploit this duplicate resource problem, as i have seen many customers hit it.
Sorry, missed a step in the steps above:
Steps to Reproduce:
1. Create a custom repo
2. Create a content view
3. Add a custom repo to the content view
4. Publish the content view
5. Go to the puppet environments page
6. Delete the puppet environment
7. Publish a new version of the content view
you will get an error: ' Validation failed: Puppet environment can't be blank'
8. Try to publish again:
Duplicate Resource SOME_PULP_ID
Cleanup Procedure if you are hit by this bug:
1) Download duplicate detection and cleanup script:
# curl http://people.redhat.com/~mmccune/duplicate_repos.rake > /usr/share/foreman/lib/tasks/duplicate_repos.rake
2) Get list of duplicate repositories
# foreman-rake katello:duplicate_repos
List of repository IDs that exist only in Pulp that need to get deleted:
* Default_Organization-dupe-resource-test-2-Custom_DEMO-demo1
3) If the above output lists the repos that are blocking a publish or promote then run:
# foreman-rake katello:duplicate_repos delete=true
List of repository IDs that exist only in Pulp that need to get deleted:
* Default_Organization-dupe-resource-test-2-Custom_DEMO-demo1
Deleting duplicate repositories
Done deleting.
At this point attempt to republish your Content View. Depending on the root cause of the duplicate repository this may or may not resolve the error during Content View publish
This bug is planned to be resolved in the Satellite 6.1 code base in bug https://bugzilla.redhat.com/show_bug.cgi?id=1202790. We are not planning to backport this to 6.0, and are therefore closing out this bug. Please feel free to contact bkearney and dcaplan with any issues.