Project

Profile

Help

Issue #9428

Importer fails when using azure backend

Added by fao89 about 1 month ago. Updated 21 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:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 106
Quarter:

Description

(pulp) [vagrant@pulp3-source-fedora34 pulp_ansible]$ nc 127.0.0.1 4444
> /home/vagrant/devel/pulpcore/pulpcore/app/tasks/importer.py(403)pulp_import()
-> if not default_storage.exists(dest):
(Pdb) dest
'/var/lib/pulp/media/artifact/36/0548ba80e3dce478b7915ca89a5613dc80c650a55b96f5491012a8297e12ac'
(Pdb) default_storage.exists(dest)
*** django.core.exceptions.SuspiciousOperation: Attempted access to '/var/lib/pulp/media/artifact/36/0548ba80e3dce478b7915ca89a5613dc80c650a55b96f5491012a8297e12ac' denied.
(Pdb) default_storage.list_all()
['pulp3/artifact/36/0548ba80e3dce478b7915ca89a5613dc80c650a55b96f5491012a8297e12ac', 'pulp3/artifact/4e/042680c4cf9c54296e22e388e6058c469d9a09348523122d44165c2f2d61a8', 'pulp3/artifact/5a/9413fe085b128933884be1fb3f5094ac257e2383a0e869ce17b3c15624ae16', 'pulp3/artifact/6c/a52bdcb651b80b9655805bd44baf6e56c6b6de88210e1b412334be1278e4a5', 'pulp3/artifact/c1/05d0816dcfd2a4fa969ba063acdddf0fa43719fea8c556b2c70e96d60f84f2', 'pulp3/artifact/c1/e05337c06b438780bca6173925bc2f94904eb8cafb5595e2c7de2082009cb6', 'pulp3/pulp3/artifact/36/0548ba80e3dce478b7915ca89a5613dc80c650a55b96f5491012a8297e12ac', 'pulp3/pulp3/artifact/4e/042680c4cf9c54296e22e388e6058c469d9a09348523122d44165c2f2d61a8', 'pulp3/pulp3/artifact/5a/9413fe085b128933884be1fb3f5094ac257e2383a0e869ce17b3c15624ae16', 'pulp3/pulp3/artifact/6c/a52bdcb651b80b9655805bd44baf6e56c6b6de88210e1b412334be1278e4a5', 'pulp3/pulp3/artifact/c1/05d0816dcfd2a4fa969ba063acdddf0fa43719fea8c556b2c70e96d60f84f2', 'pulp3/pulp3/artifact/c1/e05337c06b438780bca6173925bc2f94904eb8cafb5595e2c7de2082009cb6', 'pulp3/tmp/files/95/597048-d7e4-4268-9d6d-96a4d22d365d']
(Pdb) dest = os.path.join(settings.AZURE_LOCATION, base_path)
(Pdb) default_storage.exists(dest)
True
(Pdb) dest
'pulp3/artifact/36/0548ba80e3dce478b7915ca89a5613dc80c650a55b96f5491012a8297e12ac'                                         

https://github.com/pulp/pulp_ansible/runs/3667335873?check_suite_focus=true

Associated revisions

Revision cb564bad View on GitHub
Added by Fabricio Aguiar about 1 month ago

Document Azure storage needs to set MEDIA_ROOT

closes #9428

History

#1 Updated by rchan about 1 month ago

  • Sprint changed from Sprint 105 to Sprint 106

#2 Updated by Anonymous about 1 month ago

  • Status changed from NEW to MODIFIED

#3 Updated by pulpbot 21 days ago

  • Sprint/Milestone set to 3.16.0

#4 Updated by pulpbot 21 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF