Project

Profile

Help

Issue #1542

Repository (un)binding for consumer_groups fails

Added by ttereshc over 4 years ago. Updated over 1 year 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.

Associated revisions

Revision d2ac7e2b View on GitHub
Added by ttereshc over 4 years ago

1542 - Repository (un)binding for consumer_groups fails

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

Revision d2ac7e2b View on GitHub
Added by ttereshc over 4 years ago

1542 - Repository (un)binding for consumer_groups fails

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

History

#1 Updated by ttereshc over 4 years ago

  • Description updated (diff)

#2 Updated by jortel@redhat.com over 4 years ago

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

#3 Updated by ttereshc over 4 years ago

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

#4 Updated by ttereshc over 4 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by ttereshc over 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#6 Updated by dkliban@redhat.com over 4 years ago

  • Status changed from MODIFIED to 5

#7 Updated by dkliban@redhat.com over 4 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#8 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF