Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move files to artifact storage from WORKING_DIRECTORY. #1541

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

dkliban
Copy link
Member

@dkliban dkliban commented Aug 3, 2021

Copy files from all other sources. Since users are able to change the
WORKING_DIRECTORY settings, this patch also ensures that we check that
the WORKING_DIRECTORY and MEDIA_ROOT are on the same device. Django's
FILE_UPLOAD_TEMP_DIR is now set to the value of WORKING_DIRECTORY.

fixes: #9146
https://pulp.plan.io/issues/9146/

@pulpbot
Copy link
Member

pulpbot commented Aug 3, 2021

Attached issue: https://pulp.plan.io/issues/9146

Copy files from all other sources. Since users are able to change the
WORKING_DIRECTORY settings, this patch also ensures that we check that
the WORKING_DIRECTORY and MEDIA_ROOT are on the same device. Django's
FILE_UPLOAD_TEMP_DIR is now set to the value of WORKING_DIRECTORY.

fixes: #9146
https://pulp.plan.io/issues/9146/
warnings.append(
CheckWarning(
"MEDIA_ROOT and FILE_UPLOAD_TEMP_DIR are on different filesystems. "
"MEDIA_ROOT and WORKING_DIRECTORY are on different filesystems. "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dkliban dkliban merged commit c828ca5 into pulp:master Aug 3, 2021
@dkliban dkliban deleted the 9146 branch August 3, 2021 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants