awx icon indicating copy to clipboard operation
awx copied to clipboard

Confusing error if a project sync is canceled before a job starts

Open AlanCoding opened this issue 3 years ago • 0 comments

Please confirm the following

  • [X] I agree to follow this project's code of conduct.
  • [X] I have checked the current issues for duplicates.
  • [X] I understand that AWX is open source software provided for free and that I might not receive a timely response.

Bug Summary

If the project source tree isn't available locally inside of /var/lib/awx/projects then a job will initiated a project sync to pull the last-known revision of the project into that folder on that machine.

If you cancel the project sync while it's running, the job will error with ugly details.

AWX version

devel

Select the relevant components

  • [ ] UI
  • [X] API
  • [ ] Docs
  • [ ] Collection
  • [ ] CLI
  • [ ] Other

Installation method

docker development environment

Modifications

no

Ansible version

N/A

Operating system

N/A

Web browser

Chrome

Steps to reproduce

Create a job template, and delete the folder corresponding to its project in the AWX projects folder.

Now run the job, observe the project sync start, and then cancel that project sync.

Expected results

The job should report that it was canceled, and maybe give some details about the fact that this is a cancel propagation from a downstream job.

Actual results

job tries to run and gives output

Error: workdir "/runner/project" does not exist on container bdc4764598c7447d1cd2f70eeb9e22b94764bb295f662bc2127b59fa91720758

Ends in "error" status.

Additional information

No response

AlanCoding avatar Sep 06 '22 15:09 AlanCoding