ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.98k stars 3.41k forks source link

The project could not sync because there is no Execution Environment #15003

Open smilejj91 opened 7 months ago

smilejj91 commented 7 months ago

Please confirm the following

Bug Summary

Hello! πŸ˜ƒ

I am deploying and using awx in a k8s environment, and intermittently, I see the following error between project updates.

The project could not sync because there is no Execution Environment.

Traceback (most recent call last):
  File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py", line 509, in run
    env = self.build_env(self.instance, private_data_dir, private_data_files=private_data_files)
  File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py", line 1145, in build_env
    env = super(RunProjectUpdate, self).build_env(project_update, private_data_dir, private_data_files=private_data_files)
  File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py", line 314, in build_env
    raise RuntimeError('The project could not sync because there is no Execution Environment.')
RuntimeError: The project could not sync because there is no Execution Environment.

awx-task and awx-ee are running as containers in the same pod, and there did not seem to be anything special when checking the status / ping through receptorctl.

image

If this is a problem that already has a solution, I would appreciate it if you could let me know the solution. πŸ™‡πŸ»β€β™‚οΈ

AWX version

21.11.0

Select the relevant components

Installation method

kubernetes

Modifications

yes

Ansible version

2.14.2

Operating system

No response

Web browser

Chrome

Steps to reproduce

just project update

Expected results

project updated

Actual results

Traceback (most recent call last):
  File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py", line 509, in run
    env = self.build_env(self.instance, private_data_dir, private_data_files=private_data_files)
  File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py", line 1145, in build_env
    env = super(RunProjectUpdate, self).build_env(project_update, private_data_dir, private_data_files=private_data_files)
  File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py", line 314, in build_env
    raise RuntimeError('The project could not sync because there is no Execution Environment.')
RuntimeError: The project could not sync because there is no Execution Environment.

Additional information

No response

smilejj91 commented 7 months ago

image

fosterseth commented 7 months ago

that error message doesn't appear in the repo anymore, which means we've probably changed this area of the code quite a bit since 21.11.0

There is a good chance this has been resolved in awx 24.0.0

smilejj91 commented 6 months ago

@fosterseth hello!!

As you mentioned, when updating to version 24, the same error occurs intermittently. RuntimeError: The ProjectUpdate could not run because there is no Execution Environment.  Is there any solution? πŸ™