Bug 813824 - deleting a repo does not update errata advisories attached to that repo
Summary: deleting a repo does not update errata advisories attached to that repo
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: 1.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-18 13:53 UTC by Dennis Gregorovic
Modified: 2012-05-25 14:14 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-25 14:14:22 UTC


Attachments (Terms of Use)

Description Dennis Gregorovic 2012-04-18 13:53:53 UTC
If you delete a repo that has errata advisories attached to it, those advisories are still marked as attached to the now non-existent repo.

$ pulp-admin repo create --id="foo" --checksum=sha
$ pulp-admin repo add_errata --id=foo --errata=RHBA-2011:1771
$ curl -s -k --cert ~/.pulp/user-cert.pem https://pulp01/pulp/api/errata/RHBA-2011:1771/ | json_reformat | grep foo
    "foo"
$ pulp-admin repo delete --id=foo 
Repository [ foo ] being deleted
$ curl -s -k --cert ~/.pulp/user-cert.pem https://pulp01/pulp/api/errata/RHBA-2011:1771/ | json_reformat | grep foo
    "foo"

I would expect either:

a) repo deletion fails if one or more advisories are attached
b) advisories are removed from a repo when the repo is deleted

Comment 5 Preethi Thomas 2012-05-25 14:14:22 UTC
Pulp v1.1 Release


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