Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 813824

Summary: deleting a repo does not update errata advisories attached to that repo
Product: [Retired] Pulp Reporter: Dennis Gregorovic <dgregor>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.1.0Keywords: Triaged
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-25 14:14:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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