Skip to content

Ensure molecule finds group_vars#3333

Merged
amartyasinha merged 1 commit intoopenstack-k8s-operators:mainfrom
amartyasinha:make_molecule_read
Oct 1, 2025
Merged

Ensure molecule finds group_vars#3333
amartyasinha merged 1 commit intoopenstack-k8s-operators:mainfrom
amartyasinha:make_molecule_read

Conversation

@amartyasinha
Copy link
Copy Markdown
Contributor

@amartyasinha amartyasinha commented Sep 25, 2025

Molecule can also use group_vars. For that, we have to add the path to group_vars dir in molecule config. This commit adds the path. It should be noted that relative path from config file wont work. Since molecule will expand the relative path during the molecule test run, the path to group_vars dir should be relative with molecule jobs from where they are run. More details will be in the PR.

Molecule is loading and using the group_vars. One of the examples of passing job is here 1. In this job, molecule used the config file, and also read the group_vars. Before adding the group_vars, the molecule test was failing with undefined var. But the moment it was added, it passed. There is one failure at the playbook executed by zuul-executor, but that failure is independent of this specific change, and that will be fixed in another patch. More details in 2.

Depends-On: #3353

@amartyasinha amartyasinha requested a review from a team as a code owner September 25, 2025 08:04
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 25, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha amartyasinha changed the title Ensure molecule finds group_vars DNM: Ensure molecule finds group_vars Sep 26, 2025
@softwarefactory-project-zuul

This comment was marked as outdated.

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha amartyasinha force-pushed the make_molecule_read branch 4 times, most recently from cee872d to 565b011 Compare September 26, 2025 10:01
Molecule can also use group_vars. For that, we have to add the path to group_vars dir in molecule config. This commit adds the path. It should be noted that relative path from config file wont work. Since molecule will expand the relative path during the molecule test run, the path to group_vars dir should be relative with molecule jobs from where they are run. More details will be in the PR
@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

This change depends on a change that failed to merge.

Change #3352 is needed.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

This change depends on a change that failed to merge.

Change #3352 is needed.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

This comment was marked as outdated.

@amartyasinha
Copy link
Copy Markdown
Contributor Author

recheck

@amartyasinha amartyasinha changed the title DNM: Ensure molecule finds group_vars Ensure molecule finds group_vars Sep 30, 2025
Copy link
Copy Markdown
Contributor

@evallesp evallesp left a comment

Choose a reason for hiding this comment

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

LGTM!

@amartyasinha amartyasinha merged commit 1bdafa7 into openstack-k8s-operators:main Oct 1, 2025
9 checks passed
amartyasinha added a commit to amartyasinha/ci-framework that referenced this pull request Oct 1, 2025
…status/molecule.yml

PR [1] ensured our molecule jobs can use group_vars. During this, adding molecule group to one file was missed. This commit adds that.

[1] openstack-k8s-operators#3333
amartyasinha added a commit that referenced this pull request Oct 1, 2025
…status/molecule.yml

PR [1] ensured our molecule jobs can use group_vars. During this, adding molecule group to one file was missed. This commit adds that.

[1] #3333
@amartyasinha amartyasinha deleted the make_molecule_read branch January 9, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants