Bug 714253 - Traceback in the log when deleting repos with errata
Summary: Traceback in the log when deleting repos with errata
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 28
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-17 17:44 UTC by Preethi Thomas
Modified: 2013-09-09 16:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:11:45 UTC


Attachments (Terms of Use)

Description Preethi Thomas 2011-06-17 17:44:56 UTC
Description of problem:

Depulp-admin repo delete --id=foo
Deleting repo that has errata results in a traceback in the log

Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.191-1.fc14.noarch


How reproducible:


From the log


2011-06-17 13:54:59,882 [INFO][Dummy-5] delete() @ repo.py:461 - Delete API call invoked SON([(u'use_symlinks', False), (u'package_count', 7), (u'distributionid', []), (u'consumer_cert', None), (u'consumer_ca', None), (u'filters', []), (u'id', u'foo-clone'), (u'repomd_xml_path', u'/var/lib/pulp//repos/foo-clone/repodata/repomd.xml'), (u'_ns', u'repos'), (u'publish', True), (u'source', None), (u'sync_in_progress', False), (u'groupid', []), (u'packagegroups', SON([])), (u'files', []), (u'relative_path', u'foo-clone'), (u'arch', u'noarch'), (u'sync_schedule', None), (u'packages', [u'39726b44-78a1-4996-bed1-7f274e19b742', u'1241e3d4-5cb4-4618-abe0-a182eac3c490', u'0fdbe039-8f91-47b9-992e-939685fc40ee', u'5eee2eb6-3632-45e2-b27d-8eb8f20f8f91', u'c54e4f5f-ce46-4555-93b4-18d2d983fce5', u'fc3b2da0-0d8d-4156-ab19-a767573ffb46', u'fb69f340-68fa-43cc-99da-bf0d90e88b11']), (u'group_gz_xml_path', u''), (u'feed_cert', None), (u'name', u'foo-clone'), (u'feed_ca', None), (u'notes', SON([])), (u'last_sync', u'2011-06-17T13:53:54-04:00'), (u'clone_ids', []), (u'packagegroupcategories', SON([])), (u'group_xml_path', u''), (u'release', None), (u'checksum_type', u'sha256'), (u'_id', u'foo-clone'), (u'errata', SON([(u'enhancements', [u'RHEA-2010:9999'])]))])
2011-06-17 13:54:59,885 [INFO][Dummy-5] unlink() @ keystore.py:185 - unlinking: /var/lib/pulp/published/gpg/foo-clone
2011-06-17 13:54:59,939 [ERROR][Dummy-5] delete() @ repo.py:523 - 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 517, in delete
    self.errataapi.delete(eid)
  File "/usr/lib/python2.7/site-packages/pulp/server/auditing.py", line 197, in _audit
    result = method(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/errata.py", line 82, in delete
    if self.referenced(id):
  File "/usr/lib/python2.7/site-packages/pulp/server/api/errata.py", line 94, in referenced
    type = self.erratum(id)["type"]
TypeError: 'NoneType' object is not subscriptable
2011-06-17 13:54:59,941 [INFO][Dummy-5] delete() @ repo.py:564 - removing repo files .... /var/lib/pulp//repos/foo-clone

Comment 1 Jay Dobies 2011-09-09 14:03:42 UTC
commit e346091c76c9a199dbe4f4e1235620238c082c2a
Author: Jay Dobies <jason.dobies>
Date:   Fri Sep 9 09:49:20 2011 -0400

    714253 - Added safety in case the erratum being checked isn't there.

src/pulp/server/api/errata.py

Comment 2 Jeff Ortel 2011-09-14 20:27:02 UTC
build: 0.231

Comment 3 Preethi Thomas 2011-09-26 18:31:56 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.233-1.fc15.noarch
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo delete --id=f14-updates
Successful deleted repository [ f14-updates ]

Comment 4 Preethi Thomas 2012-02-24 20:11:45 UTC
Pulp v1.0 is released
Closed Current Release.


Note You need to log in before you can comment on or make changes to this bug.