Actions
Issue #1542
closedRepository (un)binding for consumer_groups fails
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
Both
$ curl -H "Accept: application/json" -X DELETE -k -u admin:admin 'https://localhost/pulp/api/v2/consumer_groups/any_group/bindings/any_repo/any_dist/'
$ curl -H "Accept: application/json" -X POST -d {} -k -u admin:admin 'https://localhost/pulp/api/v2/consumer_groups/any_group/bindings/'
will result in
{
"_href": "/pulp/api/v2/consumer_groups/any_group/bindings/any_repo/any_dist/",
"error_message": "'module' object has no attribute 'repo_distributor_manager'",
"exception": [
"AttributeError: 'module' object has no attribute 'repo_distributor_manager'\n"
],
"http_request_method": "DELETE",
"http_status": 500,
"traceback": [
" File \"/usr/lib/python2.7/site-packages/django/core/handlers/base.py\", line 132, in get_response\n response = wrapped_callback(request, *callback_args, **callback_kwargs)\n",
" File \"/usr/lib/python2.7/site-packages/django/views/generic/base.py\", line 71, in view\n return self.dispatch(request, *args, **kwargs)\n",
" File \"/usr/lib/python2.7/site-packages/django/views/generic/base.py\", line 89, in dispatch\n return handler(request, *args, **kwargs)\n",
" File \"/home/user1/devel/pulp/server/pulp/server/webservices/views/decorators.py\", line 241, in _auth_decorator\n return _verify_auth(self, operation, super_user_only, method, *args, **kwargs)\n",
" File \"/home/user1/devel/pulp/server/pulp/server/webservices/views/decorators.py\", line 195, in _verify_auth\n value = method(self, *args, **kwargs)\n",
" File \"/home/user1/devel/pulp/server/pulp/server/webservices/views/consumer_groups.py\", line 363, in delete\n missing_resources = verify_group_resources(consumer_group_id, repo_id, distributor_id)\n",
" File \"/home/user1/devel/pulp/server/pulp/server/webservices/views/consumer_groups.py\", line 386, in verify_group_resources\n distributor_manager = factory.repo_distributor_manager()\n"
]
}
I guess this call to repo_distributor_manager was left unnoticed during conversion to mongoengine.
Updated by jortel@redhat.com almost 8 years ago
- Priority changed from Normal to Low
- Platform Release set to 2.8.0
- Triaged changed from No to Yes
Updated by ttereshc almost 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Added by ttereshc almost 8 years ago
Added by ttereshc almost 8 years ago
Revision d2ac7e2b | View on GitHub
1542 - Repository (un)binding for consumer_groups fails
Updated by ttereshc almost 8 years ago
- Status changed from ASSIGNED to POST
Updated by ttereshc almost 8 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|d2ac7e2be8df34425095aea73748ff6c90a8e1e6.
Updated by dkliban@redhat.com almost 8 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com over 7 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
1542 - Repository (un)binding for consumer_groups fails
closes #1542 https://pulp.plan.io/issues/1542