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

Run a migration job after changing the storage backend #1232

Closed
git-hyagi opened this issue Mar 27, 2024 · 1 comment · Fixed by #1244
Closed

Run a migration job after changing the storage backend #1232

git-hyagi opened this issue Mar 27, 2024 · 1 comment · Fixed by #1244
Assignees
Labels

Comments

@git-hyagi
Copy link
Collaborator

Describe the bug
Modifying the storage backend in settings.py without running a migration will break the downloads:

[2024-03-26 21:00:54 +0000] [30] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/local/lib64/python3.9/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib64/python3.9/site-packages/aiohttp/web_app.py", line 543, in _handle
resp = await handler(request)
...
File "/usr/local/lib/python3.9/site-packages/django/core/files/storage/base.py", line 121, in path
raise NotImplementedError("This backend doesn't support absolute paths.")
NotImplementedError: This backend doesn't support absolute paths.

To Reproduce
Steps to reproduce the behavior:

  • install Pulp with a Storage Class or PVC
  • update the CR to use object storage

Expected behavior
The operator should run/create a migration job if the storage backend has been modified.

@git-hyagi
Copy link
Collaborator Author

note: as of now, the artifacts from the old storage will not be copied/migrated to the new storage backend: pulp/pulpcore#3358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants