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

Qesap log ansible filename #281

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Conversation

mpagot
Copy link
Collaborator

@mpagot mpagot commented Oct 8, 2024

Reorganize the internal implementation of how the list of Ansible
command is composed by the glue script. This first commit does not result in any behavioral changes.
Improve the way the log filename is calculated from the Ansible playbook
name. Name is no more detected within the command at fixed position but
by parsing each element of the command and detecting playbook filename
by the path. This new approach allows further change in the
ansible-playbook command composition. This commit also restrict the dump
to file only at ansible-playbook execution, leaving out the first
Ansible command.

Preliminary PR to fix a limitation in #234
This PR is needed now as preliminary task for TEAM-9713, as adding the folder creation command in the glue script result in an exception at the point the glue script try to calculate the log filename for the mkdir command (that does not need to record any log).

Related ticket: TEAM-9713

Verifications:

qesap deployment

Azure

AWS

GCP

HanaSR

Reorganize the internal implementation of how the list of ansible
command is composed by the glue script. This commit does not have any
behavioral changes.
Improve the way the log filename is calculated from the ansible playbook
name. Name is no more detected within the command at fixed position but
by parsing each element of the command and detecting playbook filename
by the path. This new approach allow further change in the
ansible-playbook command composition. This commit also restrict the dump
to file only at ansible-playbook execution, leaving out the first
ansible command.
@mpagot mpagot marked this pull request as ready for review October 8, 2024 17:14
Copy link
Collaborator

@badboywj badboywj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

Copy link
Contributor

@jankohoutek jankohoutek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

  • Inline comments!
  • better verbosity and readability of an oQA output!

@mpagot mpagot merged commit 82abd2b into SUSE:main Oct 9, 2024
3 checks passed
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.

3 participants