You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
process in awx-task container continually crashes with
Traceback (most recent call last):
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "main_instance_ip_address_key"
DETAIL: Key (ip_address)=(10.42.240.2) already exists.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/awx-manage", line 8, in <module>
sys.exit(manage())
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/__init__.py", line 152, in manage
execute_from_command_line(sys.argv)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/management/commands/run_dispatcher.py", line 55, in handle
reaper.reap()
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/dispatch/reaper.py", line 38, in reap
(changed, me) = Instance.objects.get_or_register()
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/managers.py", line 142, in get_or_register
return self.register(ip_address=pod_ip)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/managers.py", line 129, in register
instance.save(update_fields=['ip_address'])
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/models/ha.py", line 40, in save
super(BaseModel, self).save(*args, **kwargs)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/models/base.py", line 741, in save
force_update=force_update, update_fields=update_fields)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/models/base.py", line 779, in save_base
force_update, using, update_fields,
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/models/base.py", line 851, in _save_table
forced_update)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/models/base.py", line 900, in _do_update
return filtered._update(values) > 0
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/models/query.py", line 760, in _update
return query.get_compiler(self.db).execute_sql(CURSOR)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1469, in execute_sql
cursor = super().execute_sql(result_type)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1140, in execute_sql
cursor.execute(sql, params)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: duplicate key value violates unique constraint "main_instance_ip_address_key"
DETAIL: Key (ip_address)=(10.42.240.2) already exists.
Logging into the container and running
bash-4.4$ supervisorctl -c /supervisor_task.conf status all
awx-config-watcher RUNNING pid 99, uptime 0:15:46
tower-processes:callback-receiver RUNNING pid 101, uptime 0:15:46
tower-processes:dispatcher STARTING
The tower-process:dispatcher continually crashes with the error above
(looks like IPs get reused when pods spin down and back up. Maybe if we find a conflict in the .register() method, we should assume the prior instance is gone, since obviously they can't both have the IP assigned; I expect this is probably just a race between pod spin-up and our deprovisioning grace period)
After discussion w/ devs, I'm going to say "good 'nuf" because it would require deleting the node itself that a pod is running on, which is not something I want to do to our openshift. thanks @fosterseth
ISSUE TYPE
SUMMARY
process in awx-task container continually crashes with
Logging into the container and running
The tower-process:dispatcher continually crashes with the error above
ENVIRONMENT
Additional information
Running
Allows the process to start and then AWX is responsive.
The text was updated successfully, but these errors were encountered: