Bug 796139
Summary: | Deleting multiple repos at one go raised: "TypeError: 'NoneType' object is unsubscriptable" | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Sachin Ghai <sghai> | ||||
Component: | RHUA | Assignee: | James Slagle <jslagle> | ||||
Status: | CLOSED ERRATA | QA Contact: | wes hayutin <whayutin> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 2.1 | CC: | achan, kbidarka, mkovacik, sghai, tsanders | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
Deleting 20 or more multiple repositories simultaneously causes a traceback error to occur. This update uses an updated version of RHUI that fixes these traceback errors.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-08-24 11:53:27 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Sachin Ghai
2012-02-22 11:35:38 UTC
This error appears while deleting these 34 repos: ============================================= Enter value (1-44) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1-34 Select one or more repositories: Custom Repositories Red Hat Repositories x 1 : Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI (5Server-i386) x 2 : Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI (5Server-x86_64) x 3 : Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI (5Server-i386) x 4 : Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI (5Server-x86_64) x 5 : Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI (5Server-i386) x 6 : Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI (5Server-x86_64) x 7 : Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI (5Server-i386) x 8 : Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI (5Server-x86_64) x 9 : Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI (5Server-i386) x 10: Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI (5Server-x86_64) x 11: Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs) from RHUI (6Server-i386) x 12: Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs) from RHUI (6Server-x86_64) x 13: Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI (6Server-i386) x 14: Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI (6Server-x86_64) x 15: Red Hat Enterprise Linux 6 Server - Optional (Source RPMs) from RHUI (6Server-i386) x 16: Red Hat Enterprise Linux 6 Server - Optional (Source RPMs) from RHUI (6Server-x86_64) x 17: Red Hat Enterprise Linux 6 Server - Optional Beta (Source RPMs) from RHUI (6Server-i386) x 18: Red Hat Enterprise Linux 6 Server - Optional Beta (Source RPMs) from RHUI (6Server-x86_64) x 19: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs) (6Server-i386) x 20: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs) (6Server-x86_64) x 21: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs) (6Server-i386) x 22: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs) (6Server-x86_64) x 23: Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI (6Server-i386) x 24: Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI (6Server-x86_64) x 25: Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-i386) x 26: Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-x86_64) x 27: Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI (6Server-i386) x 28: Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI (6Server-x86_64) x 29: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI (6Server-i386) x 30: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI (6Server-x86_64) x 31: Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI (6Server-i386) x 32: Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI (6Server-x86_64) x 33: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI (6Server-i386) x 34: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI (6Server-x86_64) - 35: Red Hat Update Infrastructure 1.2 (Debug RPMs) (5Server-i386) - 36: Red Hat Update Infrastructure 1.2 (Debug RPMs) (5Server-x86_64) - 37: Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386) - 38: Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) - 39: Red Hat Update Infrastructure 1.2 (Source RPMs) (5Server-i386) - 40: Red Hat Update Infrastructure 1.2 (Source RPMs) (5Server-x86_64) - 41: Red Hat Update Infrastructure 2.0 (Debug RPMs) (6Server-i386) - 42: Red Hat Update Infrastructure 2.0 (Debug RPMs) (6Server-x86_64) - 43: Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386) - 44: Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64) Enter value (1-44) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following repositories will be deleted: Red Hat Repositories Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI (5Server-i386) Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI (5Server-x86_64) Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI (5Server-i386) Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI (5Server-x86_64) Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI (5Server-i386) Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI (5Server-x86_64) Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI (5Server-i386) Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI (5Server-x86_64) Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI (5Server-i386) Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI (5Server-x86_64) Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Optional (Source RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Optional (Source RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Optional Beta (Source RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Optional Beta (Source RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs) (6Server-i386) Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs) (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs) (6Server-i386) Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs) (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI (6Server-x86_64) Proceed? (y/n) y Deleting Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI (5Server-i386)... Deleting Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI (5Server-x86_64)... Deleting Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI (5Server-i386)... Deleting Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI (5Server-x86_64)... Deleting Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI (5Server-i386)... Deleting Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI (5Server-x86_64)... Deleting Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI (5Server-i386)... Deleting Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI (5Server-x86_64)... Deleting Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI (5Server-i386)... Deleting Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI (5Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs) from RHUI (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Optional (Source RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Optional (Source RPMs) from RHUI (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Optional Beta (Source RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Optional Beta (Source RPMs) from RHUI (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs) (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs) (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs) (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs) (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI (6Server-x86_64)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI (6Server-i386)... Deleting Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI (6Server-x86_64)... ------------------------------------------------------------------------------ rhui (repo) => ^ All repos deleted successfully but with above traceback in pulp.log. Later I tried to delete few more in one go. These were smaller repos but this time I didn't get any traceback and repos were deleted successfully -- The following repositories will be deleted: Red Hat Repositories Red Hat Update Infrastructure 1.2 (Debug RPMs) (5Server-i386) Red Hat Update Infrastructure 1.2 (Debug RPMs) (5Server-x86_64) Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386) Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) Red Hat Update Infrastructure 1.2 (Source RPMs) (5Server-i386) Red Hat Update Infrastructure 1.2 (Source RPMs) (5Server-x86_64) Red Hat Update Infrastructure 2.0 (Debug RPMs) (6Server-i386) Red Hat Update Infrastructure 2.0 (Debug RPMs) (6Server-x86_64) Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386) Proceed? (y/n) y Deleting Red Hat Update Infrastructure 1.2 (Debug RPMs) (5Server-i386)... Deleting Red Hat Update Infrastructure 1.2 (Debug RPMs) (5Server-x86_64)... Deleting Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386)... Deleting Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64)... Deleting Red Hat Update Infrastructure 1.2 (Source RPMs) (5Server-i386)... Deleting Red Hat Update Infrastructure 1.2 (Source RPMs) (5Server-x86_64)... Deleting Red Hat Update Infrastructure 2.0 (Debug RPMs) (6Server-i386)... Deleting Red Hat Update Infrastructure 2.0 (Debug RPMs) (6Server-x86_64)... Deleting Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386)... --- So I guess the issue appears when we delete multiple repos ( around 20-30) in one go. I can try to reproduce this, but I'm thinking this is probably a not fix for RHUI 2.0.2. It definitely looks like a race condition when deleting large amounts of repos simultaneously. As this also would affect Pulp, I'm going to file a Pulp bug for this as well. punting to next release the associated pulp bug is now VERIFIED. just need to confirm this got committed to the rhui branch. (In reply to comment #5) > the associated pulp bug is now VERIFIED. just need to confirm this got > committed to the rhui branch. I can't find a related pulp bug, at least by searching for delete or repo. I'm not able to recreate the delete issue listed in this bug running against pulp-master. I'll try w/ the rhui branch QA: try to delete many repos (20+) at once. You should not get this traceback. Created attachment 599158 [details]
Verifying screen log
The tracebak didn't happen while exercizing the repositories (even with an ongoing sync). See the attached screen log.
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: Deleting 20 or more multiple repositories simultaneously causes a traceback error to occur. This update uses an updated version of RHUI that fixes these traceback errors. 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/RHEA-2012-1205.html |