| Summary: | pulp-admin repo list produce IndexError | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | dgao |
| Component: | user-experience | Assignee: | Jason Dobies <jdobies> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | dgao |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | jason.dobies, skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:14:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
dgao
2011-10-18 15:27:50 UTC
This is likely a bug in the cds unassociate code. For some reason when a repo has been unassociated from cds, the following still returns a cds instance:
cds = round_robin._find_association(repo['id'])
if cds is not None:
return cds['next_permutation'][0]
re-assigning to jdobies
I was just in there fixing another bug, it's possible it was related to that change. But David, can you give a little more context to what your setup was? Screen grabs are nice but, especially when dealing with a setup with CDS instances, I really can't do much to reproduce it if I don't know what you did to set it up in the first place. commit b11195f26401a152ab2fa4639b713543c3dfd385
Author: Jay Dobies <jason.dobies>
Date: Mon Oct 31 10:49:16 2011 -0400
747026 - When removing a CDS/repo association, remove the association
document if no more CDSes are assigned for the given repo.
src/pulp/server/cds/round_robin.py
src/pulp/server/webservices/serialization/repo.py
test/unit/test_round_robin.py
Side note: I added a note in the serialization module that it was done incorrectly. It bypasses the round-robin concept entirely by calling to a private method and always returning a single URL. It will need to be addressed in the future.
Fixed in build 0.247. Verified, no longer seeing this in automation or manual testing. Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |