Bug 813824 - deleting a repo does not update errata advisories attached to that repo
deleting a repo does not update errata advisories attached to that repo
Status: CLOSED CURRENTRELEASE
Product: Pulp
Classification: Community
Component: z_other (Show other bugs)
1.1.0
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Pradeep Kilambi
Preethi Thomas
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-18 09:53 EDT by Dennis Gregorovic
Modified: 2012-05-25 10:14 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-25 10:14:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dennis Gregorovic 2012-04-18 09:53:53 EDT
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 10:14:22 EDT
Pulp v1.1 Release

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