mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
There was a race condition because the callback reciever tried to run this code:
File "/awx_devel/awx/main/management/commands/run_callback_receiver.py", line 31, in handle
CallbackBrokerWorker(),
File "/awx_devel/awx/main/dispatch/worker/callback.py", line 49, in __init__
self.subsystem_metrics = s_metrics.Metrics(auto_pipe_execute=False)
File "/awx_devel/awx/main/analytics/subsystem_metrics.py", line 156, in __init__
self.instance_name = Instance.objects.me().hostname
Before get_or_register was being called by the dispatcher.
23 lines
410 B
Bash
Executable File
23 lines
410 B
Bash
Executable File
#!/usr/bin/env bash
|
|
if [ `id -u` -ge 500 ]; then
|
|
echo "awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash" >> /tmp/passwd
|
|
cat /tmp/passwd > /etc/passwd
|
|
rm /tmp/passwd
|
|
fi
|
|
|
|
if [ -n "${AWX_KUBE_DEVEL}" ]; then
|
|
pushd /awx_devel
|
|
make awx-link
|
|
popd
|
|
|
|
export SDB_NOTIFY_HOST=$MY_POD_IP
|
|
fi
|
|
|
|
set -e
|
|
|
|
wait-for-migrations
|
|
|
|
awx-manage provision_instance
|
|
|
|
supervisord -c /etc/supervisord_task.conf
|