Project

Profile

Help

Issue #1542

closed

Repository (un)binding for consumer_groups fails

Added by ttereshc about 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
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.

Actions #1

Updated by ttereshc about 8 years ago

  • Description updated (diff)
Actions #2

Updated by jortel@redhat.com about 8 years ago

  • Priority changed from Normal to Low
  • Platform Release set to 2.8.0
  • Triaged changed from No to Yes
Actions #3

Updated by ttereshc about 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc

Added by ttereshc about 8 years ago

Revision d2ac7e2b | View on GitHub

1542 - Repository (un)binding for consumer_groups fails

closes #1542 https://pulp.plan.io/issues/1542

Added by ttereshc about 8 years ago

Revision d2ac7e2b | View on GitHub

1542 - Repository (un)binding for consumer_groups fails

closes #1542 https://pulp.plan.io/issues/1542

Actions #4

Updated by ttereshc about 8 years ago

  • Status changed from ASSIGNED to POST
Actions #5

Updated by ttereshc about 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #6

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from MODIFIED to 5
Actions #7

Updated by dkliban@redhat.com almost 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #8

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF