Project

Profile

Help

Issue #7521

Performing a filesystem export fails

Added by daviddavis about 1 month ago. Updated 28 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 81
Quarter:

Description

Steps to reproduce

Run this script: https://github.com/pulp/pulp_file/blob/master/docs/_scripts/export.sh

Result

This failure:

rq[9925]: Traceback (most recent call last):
rq[9925]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", line 886, in perform_job
rq[9925]:     rv = job.perform()
rq[9925]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 664, in perform
rq[9925]:     self._result = self._execute()
rq[9925]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 670, in _execute
rq[9925]:     return self.func(*self.args, **self.kwargs)
rq[9925]:   File "/home/vagrant/devel/pulpcore/pulpcore/app/tasks/export.py", line 49, in fs_publication_export
rq[9925]: exporter.export_publication(publication)
rq[9925]:   File "/home/vagrant/devel/pulpcore/pulpcore/app/models/exporter.py", line 130, in export_publication
rq[9925]: self._export_to_file_system(content_artifacts)
rq[9925]:   File "/home/vagrant/devel/pulpcore/pulpcore/app/models/exporter.py", line 89, in _export_to_file_system
rq[9925]: ExportSerializer.validate_path(self.path)
rq[9925]: AttributeError: type object 'ExportSerializer' has no attribute 'validate_path'

Associated revisions

Revision 6343df7a View on GitHub
Added by daviddavis about 1 month ago

Fixed failing filesystem export due to undefined validate_path method

Just removing the call since we're already validating the path in the serializer. Also, adding some tests so we don't break this functionality again later.

Required PR: https://github.com/pulp/pulp_file/pull/429

fixes #7521

History

#1 Updated by daviddavis about 1 month ago

  • Description updated (diff)

#2 Updated by bmbouter about 1 month ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 81

#3 Updated by daviddavis about 1 month ago

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

#4 Updated by pulpbot about 1 month ago

  • Status changed from ASSIGNED to POST

#5 Updated by daviddavis about 1 month ago

  • Status changed from POST to MODIFIED

#6 Updated by bmbouter 28 days ago

  • Sprint/Milestone set to 3.7.0

#7 Updated by pulpbot 28 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF