Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible-runner: list artifacts one by one #321

Merged
merged 6 commits into from May 2, 2022

Conversation

ahadas
Copy link
Member

@ahadas ahadas commented May 2, 2022

The artifacts created by ansible-runner have the id prefix, which we used to gather the events.
We were listing new artifacts by counting the number of previously processed artifacts and checking the new artifacts from that number as a prefix id. This approach causes multiple issues with async execution where the artifacts are not created in order but there could be a bit of time delay between them. For example, artifact 4 was created before 3.

The new approach fixes this issue by waiting for each file with an id prefix until the playbook finishes or times out.

Bug-Url: https://bugzilla.redhat.com/2076465

mnecas and others added 6 commits May 2, 2022 12:31
AnsibleRunnerHttpClient was listing all new artifacts in artifacts dir
becuase ansible-runner does not create the artifacts one by one. When we
are logging we need to wait for the proper artifacts to be generated and
then we can log it.
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
@ahadas
Copy link
Member Author

ahadas commented May 2, 2022

/ost

@michalskrivanek
Copy link
Member

we don't have ost set up on 4.5.0.z branch

@michalskrivanek michalskrivanek merged commit fc76ca3 into oVirt:ovirt-engine-4.5.0.z May 2, 2022
@ahadas ahadas deleted the ar_not_list_all branch May 6, 2022 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants