ansible / ansible/awx

Canceling inventory source sync leads to error state on job output

Open
#10,941 3 comments 0 reactions 0 assignees View on GitHub
component:api
Dominant language
Python
Stars
15.6k
Forks
3.7k
Avg merge
2d 15h
Merged PRs (30d)
25

Description

### Please confirm the following

- [X] I agree to follow this project's [code of conduct](http://docs.ansible.com/ansible/latest/community/code_of_conduct.html).
- [X] I have checked the [current issues](https://github.com/ansible/awx/issues) for duplicates.
- [X] I understand that AWX is open source software provided for free and that I am not entitled to status updates or other assurances.

### Summary

Canceling inventory source sync leads to error state on job output.

Inventory source was sourced from a project.

### AWX version

devel

### Installation method

docker for mac

### Modifications

no

### Ansible version

_No response_

### Operating system

_No response_

### Web browser

_No response_

### Steps to reproduce

1 - Create an inventory source - sourced from a project
2 - Sync the inventory source
3 - Cancel the inventory source sync
4 - See job output

### Expected results

Job output status to be cancelled.

### Actual results

Job output status is in error state.

![image](https://user-images.githubusercontent.com/9053044/130817442-31935995-7f2a-43f8-93ec-4bfa5fb06c21.png)

![image](https://user-images.githubusercontent.com/9053044/130817570-128cb782-86b4-45a0-b1c6-40a8ac2b4082.png)

On the older versions we shown this status as canceled as below.

![image](https://user-images.githubusercontent.com/9053044/130817335-e3a6cd65-1adf-4cc1-aa50-8452cde1d758.png)

### Additional information

HTTP Requests made:

image

image

There is also the job data related to the inventory source sync.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the inventory source sync from a project, cancel it, and inspect the resulting job output and related job data. Compare the HTTP requests and older canceled-status behavior shown in the issue; done means the canceled sync is displayed with a cancelled status rather than an error state.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.