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.
This task 'add_export_distributor' is attempting to add an export distributor to our yum repos. As part of that process it does a full 'refresh' of the repository, updating the importers and distributors of all repos if they are not exactly what we expect.
Judging by the traceback:
File "/usr/lib/python2.7/site-packages/pulp/server/controllers/distributor.py", line 211, in update
I'm guessing this was a distributor update, and by the error containing 'repo-registry-id' it was a docker repo.
Here is what I think is going on, but it would be helpful to have feedback from the katello side on whether it sounds right.
It appears that the distributor config is being updated, and that in the new config object being provided, the key "repo-registry-id" has a value of None. Here is what the REST API docs say about values of None in that case:
"any value that is set to explicitly to None will be removed from the config."
It appears that the corresponding code in pulp assumes that if a key has a value of None in the new config, it must be present in the old config, and then tries to remove it.
Apparently in this case, katello includes "repo-registry-id: None" in the new config, but the old one didn't contain that key, so it is resulting in an unhandled exception.
Ideally pulp should tolerate this condition. I'll file an upstream bug on it.
Do you think I'm right about what katello is doing? Is katello deliberately trying to remove the repo-registry-id setting from distributor configs?
Michael, It does seem that that is the problem. The odd thing is that pulp does not return any error at all, just logs the exception (so this bz isn't really fatal at all).
It seems we always passing repo-registry-id as None no matter what on creation and update. I'm not sure why, but it was added explicitly at some point.
Comment 9pulp-infra@redhat.com
2016-11-21 18:52:44 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.
Comment 10pulp-infra@redhat.com
2016-11-21 18:52:47 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
Comment 11pulp-infra@redhat.com
2016-12-12 17:32:04 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.
Comment 12pulp-infra@redhat.com
2016-12-12 17:32:07 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.
Comment 13pulp-infra@redhat.com
2016-12-12 18:01:52 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.
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.
https://access.redhat.com/errata/RHSA-2018:0336