| Summary: | Traceback when deleting filter through API | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | cperry |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | Sprint 30 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:15:50 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Preethi Thomas
2011-11-22 19:12:27 UTC
Fixed. $ curl -k -u admin:admin -X POST https://localhost/pulp/api/filters/blacklist/delete_filter/ true build: 0.254. verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.254-6.fc15.noarch
[root@preethi ~]# pulp-admin filter list
+------------------------------------------+
Available Filters
+------------------------------------------+
Id : pulp
Description : pulp
Type : blacklist
Package List : ['gofer']
[root@preethi ~]# curl -k -u admin:admin -X POST
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
[root@preethi ~]# https://localhost/pulp/api/filters/blacklist/delete_filter/
-bash: https://localhost/pulp/api/filters/blacklist/delete_filter/: No such file or directory
[root@preethi ~]# curl -k -u admin:admin -X POST https://localhost/pulp/api/filters/pulp/delete_filter/
"Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py\", line 48, in report_error\n return method(self, *args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py\", line 127, in _auth_decorator\n value = method(self, *args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/filters.py\", line 126, in delete_filter\n api.delete(id, force)\n File \"/usr/lib/python2.7/site-packages/pulp/server/api/filter.py\", line 70, in delete\n % (id, associated_repo_ids))\nPulpException: Filter [pulp] cannot be deleted because of it's association with following repos: [u'content-1']. You can use --force to force deletion of filter by removing it's association with repositories.\n"[root@preethi ~]#
[root@preethi ~]#
[root@preethi ~]# pulp-admin filter delete --id=pulp
error: error: operation failed: PulpException: Filter [pulp] cannot be deleted because of it's association with following repos: [u'content-1']. You can use --force to force deletion of filter by removing it's association with repositories.
[root@preethi ~]# curl -k -u admin:admin -X POST https://localhost/pulp/api/filters/pulp/delete_filter/ --force
curl: option --force: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
[root@preethi ~]#
[root@preethi ~]# pulp-admin filter delete --id=content-1
error: error: operation failed: A filter with the id, content-1, does not exist
[root@preethi ~]# pulp-admin repo delete --id=content-1
Successful deleted repository [ content-1 ]
[root@preethi ~]# curl -k -u admin:admin -X POST https://localhost/pulp/api/filters/pulp/delete_filter/
true[root@preethi pulp-admin filter listNo filters available to list
[root@preethi ~]#
Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |