Bug 703951
Summary: | errata delete does not check if the errata is part of the repo and deletes without warnings. | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | dgao |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | Sprint 23 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-16 12:09:00 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: | |||
Bug Depends On: | |||
Bug Blocks: | 647488 |
Description
Preethi Thomas
2011-05-11 18:58:30 UTC
fixed! commit 6bee1ad6cca3951b2d713d792b6cc75e0ac89bd9 This fix will do the following: * checks if an errata to referenced before performing a delete * pulp-admin repo remove_errata will only unassociate the errata from the repo and make it orphaned. [pkilambi@localhost unit]$ sudo pulp-admin errata delete --id=RHEA-2008:0467 error: operation failed: ErrataHasReferences: errata [RHEA-2008:0467] has references, delete not permitted [pkilambi@localhost unit]$ sudo pulp-admin repo remove_errata --id=test_a -e RHEA-2008:0467 Successfully removed Errata ['RHEA-2008:0467'] from repo [test_a]. [pkilambi@localhost unit]$ sudo pulp-admin errata delete --id=RHEA-2008:0467 Successfully deleted Erratum with id [RHEA-2008:0467] build: 0.177 [root@pulp-qe ~]# pulp-admin errata create --id=RHBA-2011-1111 --title=RHBA-2011-1111 --version=1 --release=1 --type=bugfix Successfully created an Erratum with id [RHBA-2011-1111] [root@pulp-qe ~]# pulp-admin errata create --id=RHBA-2011-1112 --title=RHBA-2011-1112 --version=1 --release=1 --type=bugfix Successfully created an Erratum with id [RHBA-2011-1112] [root@pulp-qe ~]# pulp-admin repo create --id=foo Successfully created repository [ foo ] [root@pulp-qe ~]# pulp-admin repo add_errata --id=foo -e RHBA-2011-1111 Successfully added Errata ['RHBA-2011-1111'] to repo [foo]. [root@pulp-qe ~]# grep '<id>' /var/lib/pulp/repos/foo/updateinfo.xml <id>RHBA-2011-1111</id> [root@pulp-qe ~]# pulp-admin repo add_errata --id=foo -e RHBA-2011-1112 Successfully added Errata ['RHBA-2011-1112'] to repo [foo]. [root@pulp-qe ~]# grep '<id>' /var/lib/pulp/repos/foo/updateinfo.xml <id>RHBA-2011-1111</id> <id>RHBA-2011-1112</id> [root@pulp-qe ~]# [root@pulp-qe ~]# pulp-admin errata delete --id=RHBA-2011-1112 error: operation failed: ErrataHasReferences: errata [RHBA-2011-1112] has references, delete not permitted [root@pulp-qe ~]# pulp-admin repo remove_errata --id=foo -e RHBA-2011-1112 Successfully removed Errata ['RHBA-2011-1112'] from repo [foo]. [root@pulp-qe ~]# grep '<id>' /var/lib/pulp/repos/foo/updateinfo.xml <id>RHBA-2011-1111</id> [root@pulp-qe ~]# pulp-admin errata delete --id=RHBA-2011-1112 Successfully deleted Erratum with id [RHBA-2011-1112] [root@pulp-qe ~]# Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |