Project

Profile

Help

Issue #4732

closed

pulp workers only use localhost for redis

Added by Anonymous almost 5 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

I'm trying to use pulp with a postgres db in rds on aws and an aws redis backend.

echo REDIS_HOST=fqdn >> /etc/pulp/settings.py

rq worker -n 'reserved-resource-worker-1@%h' -w 'pulpcore.tasking.worker.PulpWorker' 2>&1 | less

2019-04-24:13:11:10,491 ERROR [redis_loader.py:58 - load] Error 111 connecting to localhost:6379. Connection refused.

Further.. this could be an error on my part... but the env vars for REDIS seem fine. The /etc/pulp/settings.py file seems to be ignored.


(.venv) ubuntu@buildbox:~$ echo $DJANGO_SETTINGS_MODULE
pulpcore.app.settings
(.venv) ubuntu@buildbox:~$ ipython
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.4.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from django.conf import settings

In [2]: print(settings.REDIS_HOST)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-2807dc9204c5> in <module>
----> 1 print(settings.REDIS_HOST)

~/.venv/lib/python3.6/site-packages/django/conf/__init__.py in __getattr__(self, name)
     78         if self._wrapped is empty:
     79             self._setup(name)
---> 80         val = getattr(self._wrapped, name)
     81         self.__dict__[name] = val
     82         return val

AttributeError: 'Settings' object has no attribute 'REDIS_HOST'

Also available in: Atom PDF