Project

Profile

Help

Issue #1518

closed

Pulp exception during repo group removal call

Added by ipanova@redhat.com about 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

$ pulp-admin -vv repo group delete --group-id test-group
Warning: path should have mode 0700 because it may contain sensitive information: /home/ipanova/.pulp/

2016-01-13 11:47:27,998 - DEBUG - sending DELETE request to /pulp/api/v2/repo_groups/test-group/
2016-01-13 11:47:28,127 - INFO - DELETE request to /pulp/api/v2/repo_groups/test-group/ with parameters None
2016-01-13 11:47:28,127 - INFO - Response status : 500 

2016-01-13 11:47:28,127 - INFO - Response body :
 {
  "exception": [
    "PulpExecutionException: Pulp exception occurred: PulpExecutionException\n"
  ], 
  "args": [], 
  "_href": "/pulp/api/v2/repo_groups/test-group/", 
  "traceback": [
    "  File \"/usr/lib/python2.7/site-packages/django/core/handlers/base.py\", line 112, 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 69, in view\n    return self.dispatch(request, *args, **kwargs)\n", 
    "  File \"/usr/lib/python2.7/site-packages/django/views/generic/base.py\", line 87, in dispatch\n    return handler(request, *args, **kwargs)\n", 
    "  File \"/home/ipanova/pulp_development/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/ipanova/pulp_development/pulp/server/pulp/server/webservices/views/decorators.py\", line 195, in _verify_auth\n    value = method(self, *args, **kwargs)\n", 
    "  File \"/home/ipanova/pulp_development/pulp/server/pulp/server/webservices/views/repo_groups.py\", line 127, in delete\n    manager.delete_repo_group(repo_group_id)\n", 
    "  File \"/home/ipanova/pulp_development/pulp/server/pulp/server/managers/repo/group/cud.py\", line 165, in delete_repo_group\n    RepoGroupDistributorManager.remove_distributor(group_id, distributor['id'])\n", 
    "  File \"/home/ipanova/pulp_development/pulp/server/pulp/server/managers/repo/group/distributor.py\", line 221, in remove_distributor\n    distributor_instance.distributor_removed(transfer_group, call_config)\n", 
    "  File \"/home/ipanova/pulp_development/pulp_rpm/plugins/pulp_rpm/plugins/distributors/export_distributor/groupdistributor.py\", line 137, in distributor_removed\n    ids.TYPE_ID_DISTRIBUTOR_GROUP_EXPORT),\n", 
    "  File \"/home/ipanova/pulp_development/pulp_rpm/plugins/pulp_rpm/plugins/distributors/yum/configuration.py\", line 195, in get_master_publish_dir\n    return os.path.join(MASTER_PUBLISH_DIR, distributor_type, repo.repo_id)\n"
  ], 
  "error_message": "Pulp exception occurred: PulpExecutionException", 
  "http_request_method": "DELETE", 
  "http_status": 500, 
  "error": {
    "code": "PLP0000", 
    "data": {}, 
    "description": "Pulp exception occurred: PulpExecutionException", 
    "sub_errors": []
  }
}

2016-01-13 11:47:28,128 - ERROR - Exception occurred:
        href:      /pulp/api/v2/repo_groups/test-group/
        method:    DELETE
        status:    500
        error:     Pulp exception occurred: PulpExecutionException
        traceback: [u'  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\n', u'  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view\n    return self.dispatch(request, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch\n    return handler(request, *args, **kwargs)\n', u'  File "/home/ipanova/pulp_development/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', u'  File "/home/ipanova/pulp_development/pulp/server/pulp/server/webservices/views/decorators.py", line 195, in _verify_auth\n    value = method(self, *args, **kwargs)\n', u'  File "/home/ipanova/pulp_development/pulp/server/pulp/server/webservices/views/repo_groups.py", line 127, in delete\n    manager.delete_repo_group(repo_group_id)\n', u'  File "/home/ipanova/pulp_development/pulp/server/pulp/server/managers/repo/group/cud.py", line 165, in delete_repo_group\n    RepoGroupDistributorManager.remove_distributor(group_id, distributor[\'id\'])\n', u'  File "/home/ipanova/pulp_development/pulp/server/pulp/server/managers/repo/group/distributor.py", line 221, in remove_distributor\n    distributor_instance.distributor_removed(transfer_group, call_config)\n', u'  File "/home/ipanova/pulp_development/pulp_rpm/plugins/pulp_rpm/plugins/distributors/export_distributor/groupdistributor.py", line 137, in distributor_removed\n    ids.TYPE_ID_DISTRIBUTOR_GROUP_EXPORT),\n', u'  File "/home/ipanova/pulp_development/pulp_rpm/plugins/pulp_rpm/plugins/distributors/yum/configuration.py", line 195, in get_master_publish_dir\n    return os.path.join(MASTER_PUBLISH_DIR, distributor_type, repo.repo_id)\n']
        data:      {u'args': [], u'error': {u'code': u'PLP0000', u'data': {}, u'description': u'Pulp exception occurred: PulpExecutionException', u'sub_errors': []}}

An internal error occurred on the Pulp server:

RequestException: DELETE request
on /pulp/api/v2/repo_groups/test-group/ failed with 500 - Pulp exception
occurred: PulpExecutionException

Steps to reproduce:
1 create repo group
2 export repo group( repo group must have a distributor to reproduce the issue)
3 try to delete repo group
4 observe traceback

Actions #1

Updated by ipanova@redhat.com about 8 years ago

  • Assignee set to ipanova@redhat.com
  • Platform Release set to 2.8.0
Actions #2

Updated by ipanova@redhat.com about 8 years ago

  • Status changed from NEW to POST
Actions #3

Updated by mhrivnak about 8 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by mhrivnak about 8 years ago

  • Priority changed from Normal to High

Added by ipanova@redhat.com about 8 years ago

Revision d121b205 | View on GitHub

Pulp exception during repo group removal call

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

Actions #5

Updated by ipanova@redhat.com about 8 years ago

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

Updated by rbarlow about 8 years ago

  • Status changed from MODIFIED to 5
Actions #7

Updated by dkliban@redhat.com about 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