Project

Profile

Help

Issue #6768

whitenoise expects /var/lib/pulp/assets on single container

Added by fao89 11 months ago. Updated 9 months 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:
CI/CD
Sprint:
Sprint 74
Quarter:

Description

127.0.0.1 - - [19/May/2020:14:43:28 +0000] "GET /pulp/api/v3/status/ HTTP/1.0" 200 1033 "-" "ansible-httpget" /usr/local/lib/python3.7/site-packages/whitenoise/base.py:116: UserWarning: No directory at: /var/lib/pulp/assets/ warnings.warn(u"No directory at: {}".format(root))

whitenoise uses STATIC_URL and STATIC_ROOT from pulpcore: https://github.com/pulp/pulpcore/blob/master/pulpcore/app/settings.py#L31-L37

History

#1 Updated by fao89 11 months ago

  • Subject changed from whitenoise expects var/lib/pulp/assets on single container to whitenoise expects /var/lib/pulp/assets on single container

#2 Updated by fao89 11 months ago

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

#3 Updated by dkliban@redhat.com 11 months ago

We need to run 'collectstatic' when the container is starting up. Need to add an extra stanza here[0].

foreground { redirfd -w 1 /dev/null redirfd -w 2 /dev/null export DJANGO_SETTINGS_MODULE pulpcore.app.settings export PULP_CONTENT_ORIGIN localhost /usr/local/bin/django-admin collectstatic }

[0] https://github.com/pulp/pulp-oci-images/blob/master/assets/postgres.prep#L108

#4 Updated by rchan 11 months ago

  • Sprint changed from Sprint 73 to Sprint 74

#5 Updated by fao89 11 months ago

  • Status changed from NEW to ASSIGNED

#6 Updated by fao89 11 months ago

  • Assignee set to fao89

#7 Updated by fao89 11 months ago

  • Status changed from ASSIGNED to POST

#8 Updated by fao89 11 months ago

  • Status changed from POST to MODIFIED

#9 Updated by daviddavis 9 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF