Project

Profile

Help

Issue #6768

closed

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

Added by fao89 almost 4 years ago. Updated over 3 years 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

Actions #1

Updated by fao89 almost 4 years ago

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

Updated by fao89 almost 4 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 73
Actions #3

Updated by dkliban@redhat.com almost 4 years 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

Actions #4

Updated by rchan almost 4 years ago

  • Sprint changed from Sprint 73 to Sprint 74
Actions #5

Updated by fao89 almost 4 years ago

  • Status changed from NEW to ASSIGNED
Actions #6

Updated by fao89 almost 4 years ago

  • Assignee set to fao89
Actions #7

Updated by fao89 almost 4 years ago

  • Status changed from ASSIGNED to POST
Actions #8

Updated by fao89 almost 4 years ago

  • Status changed from POST to MODIFIED
Actions #9

Updated by daviddavis over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF