Actions
Issue #7167
closedUnable to delete a Pulp Export
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Hit this on my pulpcore 3.4.1 installation.
- Create a repo and sync some data
- Create an exporter for this repo
- Export the content somewhere
- Try deleting the export with the following command "DELETE /pulp/api/v3/exporters/core/pulp/03116066-01a3-4abc-be65-29a84242744d/exports/ea4e0ec5-0460-4d58-92c1-b1916ded9920/ HTTP/1.1" 500 27 "-" "OpenAPI-Generator/3.4.1/ruby"
Notice the stack trace below
Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: response = get_response(request) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: response = self.process_exception_by_middleware(e, request) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: response = wrapped_callback(request, *callback_args, **callback_kwargs) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: return view_func(*args, **kwargs) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py", line 114, in view Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: return self.dispatch(request, *args, **kwargs) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 505, in dispatch Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: response = self.handle_exception(exc) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 465, in handle_exception Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: self.raise_uncaught_exception(exc) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: raise exc Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 502, in dispatch Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: response = handler(request, *args, **kwargs) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py", line 91, in destroy Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: self.perform_destroy(instance) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py", line 95, in perform_destroy Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: instance.delete() Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 918, in delete Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: collector.collect([self], keep_parents=keep_parents) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/django/db/models/deletion.py", line 224, in collect Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: field.remote_field.on_delete(self, field, sub_objs, self.using) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: File "/usr/local/lib/python3.6/site-packages/django/db/models/deletion.py", line 27, in PROTECT Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: sub_objs Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: django.db.models.deletion.ProtectedError: ("Cannot delete some instances of model 'PulpExport' because they are referenced through a protected foreign key: 'PulpExporter.last_export'", ]>) Jul 18 00:57:21 centos7-katello-devel-stable.example.com pulpcore-api[9185]: 127.0.0.1 - - [18/Jul/2020:00:57:21 +0000] "DELETE /pulp/api/v3/exporters/core/pulp/03116066-01a3-4abc-be65-29a84242744d/exports/ea4e0ec5-0460-4d58-92c1-b1916ded9920/ HTTP/1.1" 500 27 "-" "OpenAPI-Generator/3.4.1/ruby"
Updated by paji@redhat.com over 3 years ago
- Status changed from NEW to CLOSED - DUPLICATE
Actions