Bug 760956 - Deleting Repository throws error with 0.254
Summary: Deleting Repository throws error with 0.254
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: 1.0.0
Hardware: i686
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-07 12:46 UTC by Peter Meier
Modified: 2015-03-23 01:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:16:14 UTC


Attachments (Terms of Use)

Description Peter Meier 2011-12-07 12:46:52 UTC
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.

Comment 1 Peter Meier 2011-12-07 15:32:54 UTC
After having deleted the database due to #760958 and re-imported the repositories, deleting the repositories seems to work again.

Comment 2 Sayli Karmarkar 2011-12-14 20:05:00 UTC
BZ# 760958 is fixed and verified. Moving to on_qa.

Comment 3 Preethi Thomas 2011-12-15 14:23:36 UTC
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 ~]#

Comment 4 Preethi Thomas 2012-02-24 20:16:14 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:17:38 UTC
Pulp v1.0 is released.


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