Hide Forgot
Description of problem: After updating from 0.244 to 0.254 deleting a repository via the API is not anymore possible. Version-Release number of selected component (if applicable): # rpm -qa | grep pulp python-isodate-0.4.4-3.pulp.fc15.noarch pulp-common-0.0.254-1.fc15.noarch pulp-0.0.254-1.fc15.noarch pulp-selinux-server-0.0.254-1.fc15.noarch pulp-admin-0.0.254-1.fc15.noarch mod_wsgi-3.2-6.pulp.fc15.i686 python-oauth2-1.5.170-2.pulp.fc15.noarch m2crypto-0.21.1.pulp-5.fc15.i686 pulp-client-lib-0.0.254-1.fc15.noarch How reproducible: Always Steps to Reproduce: 1. Try to delete a repository via DELETE /api/repositories/some_repo/ Actual results: 500 Internal Server Error: 2011-12-07 11:16:29,087 943:-1215760560: pulp:CRITICAL: version:158 data model version is up to date, but has not been validated 2011-12-07 11:16:29,087 943:-1215760560: pulp:CRITICAL: version:159 use the 'pulp-migrate' tool to fix this before restarting the web server 2011-12-07 11:21:04,500 943:-1237202064: pulp.server.api.repo:INFO: repo:522 Delete API call invoked prod_rhel6-pulp-x86_64 2011-12-07 11:21:04,503 943:-1237202064: pulp.server.webservices.controllers.decorators:ERROR: decorators:52 Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", line 48, in report_error return method(self, *args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator value = method(self, *args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py", line 356, in DELETE api.delete(id=id) File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 528, in delete if self.find_if_running_sync(id): File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 508, in find_if_running_sync tasks = [t for t in find_async(method_name="_sync") File "/usr/lib/python2.7/site-packages/pulp/server/async.py", line 105, in find_async return _queue.find(**kwargs) AttributeError: 'NoneType' object has no attribute 'find' Expected results: Repository should be deleted Additional info: Afair this worked before. The migration issue are a seperated bug report.
After having deleted the database due to #760958 and re-imported the repositories, deleting the repositories seems to work again.
BZ# 760958 is fixed and verified. Moving to on_qa.
verified [root@preethi ~]# rpm -q pulp pulp-0.0.254-7.fc15.noarch [root@preethi ~]# curl -k -u admin:admin -X DELETE https://localhost/pulp/api/repositories/content1/ {}[root@preethi ~]#
Pulp v1.0 is released Closed Current Release.
Pulp v1.0 is released.