geerlingguy / tower-operator

DEPRECATED: This project was moved and renamed to: https://github.com/ansible/awx-operator
82 stars 34 forks source link

Fix support for Tower 3.7 #45

Closed matburt closed 4 years ago

matburt commented 4 years ago

Work-in-progress towards supporting Tower 3.7

Closes #44.

matburt commented 4 years ago

Getting a lot closer now:

redis.exceptions.ConnectionError: Error 110 connecting to tower-redis.ansible-tower.svc.cluster.local:6379. Connection timed out.

RuntimeError: No instance found with the current cluster host id

django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: libpq.so.rh-postgresql10-5: cannot open shared object file: No such file or directory unable to load app 0 (mountpoint='') (callable not found or import error)

all from the task container

This is from the web container

2020-05-29 23:59:23,772 INFO exited: awx-rsyslogd (exit status 1; not expected) rsyslogd: cannot create '/var/run/awx-rsyslog/rsyslog.sock': No such file or directory [v8.1911.0-7.el7at try https://www.rsyslog.com/e/2176 ] rsyslogd: imuxsock does not run because we could not aquire any socket [v8.1911.0-7.el7at] rsyslogd: activation of module imuxsock failed [v8.1911.0-7.el7at] rsyslogd: error writing pid file (creation stage) : No such file or directory rsyslogd: run failed with error -3000 (see rsyslog.h or try https://www.rsyslog.com/e/3000 to learn what that number means)

matburt commented 4 years ago

So close!

image

This leads me to believe that perhaps the values defined on the CRD aren't getting picked up and the role is just using whatever is in the role defaults.

geerlingguy commented 4 years ago

Changed the title since technically #43 at least worked to spin things up, though not correctly for Tower itself. This PR is to get the operator building Tower more correctly for 3.7 (and in general).

I want to make sure we can get CI passing though, and that latest AWX can work correctly with any required settings differences configurable.