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

Boardwalk CLI: Malformed YAML results in "unreachable" error #43

Open
m4wh6k opened this issue Dec 12, 2022 · 0 comments
Open

Boardwalk CLI: Malformed YAML results in "unreachable" error #43

m4wh6k opened this issue Dec 12, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@m4wh6k
Copy link
Contributor

m4wh6k commented Dec 12, 2022

In the course of running a Workflow, if the Boardwalk CLI encounters malformed YAML, it will mistakenly consider the remote host to be unreachable. Boardwalk handles errors with unreachable hosts differently than other errors. For example, Workflow exit_jobs are not run.

While it's possible there's a related issue where, where perhaps Boardwalk should be able to run Workflow exit_jobs in the event of an unreachable failure (such as for local cleanup tasks), Boardwalk would benefit from having an ability to more accurately understand the nature of Ansible errors.

Boardwalk uses Ansible's exit codes to determine the nature of errors returned by Ansible. Unfortunately for this case, Ansible returns the same exit code for unreachable host failures as it does for malformed YAML errors. Using exit codes to understand how Ansible has failed is probably naive anyway, because a given Ansible run may have several different kinds of errors simultaneously.

Consider updating Boardwalk's Ansible functions to parse the output of ansible_runner in a way that could produce more accurate errors to solve this issue

@m4wh6k m4wh6k added bug Something isn't working help wanted Extra attention is needed labels Dec 12, 2022
@m4wh6k m4wh6k mentioned this issue Dec 14, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant