Skip to content

fix: openstack driver private address retrieval when auto_ip is False (ansible 2.19)#326

Open
ednxzu wants to merge 7 commits intoansible-community:mainfrom
ednxzu:fix/openstack-private-address-conditional
Open

fix: openstack driver private address retrieval when auto_ip is False (ansible 2.19)#326
ednxzu wants to merge 7 commits intoansible-community:mainfrom
ednxzu:fix/openstack-private-address-conditional

Conversation

@ednxzu
Copy link
Copy Markdown

@ednxzu ednxzu commented Aug 19, 2025

In ansible 2.19, the template for retrieving the public(floating) address of a molecule instance returns a NoneType value, which in turn evaluates to False when compared to "" , which cause the private address of the instance to never get picked up as fallback. This commit changes the condition to not address | bool which in both case will evaluate to True if the retrieval of the public ip failed.

This will fix #325

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 8, 2025

Label error. Requires exactly 1 of: breaking, chore, feat, fix. Found: . Follow https://www.conventionalcommits.org to get auto-labeling to work correctly.

@ednxzu
Copy link
Copy Markdown
Author

ednxzu commented Sep 12, 2025

Not sure about the current error, but it seems like this PR is missing a label ?

@ednxzu
Copy link
Copy Markdown
Author

ednxzu commented Oct 22, 2025

Any news on this ?

@ednxzu
Copy link
Copy Markdown
Author

ednxzu commented Nov 12, 2025

up

@ednxzu
Copy link
Copy Markdown
Author

ednxzu commented Mar 3, 2026

anyone cares to have a look at this ?

ednxzu and others added 6 commits March 22, 2026 23:33
In ansible 2.19, the template for retrieving the public(floating) address
of a molecule instance returns a NoneType value, which in turn evaluates
to False when compared to , which cause the private address of the instance
to never get picker up as fallback. This commit changes the condition to
not address | bool which in both case will evaluate to True if the retrieval
of the public ip failed.
ansible-community#358)

* fix(devel): drop --driver-name from init scenario, patch molecule.yml for Molecule 4.x

Made-with: Cursor

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* linting fixes

* force pipeline to re-run due to timeout on last job

* revert dict sort back

* XFAIL fixes?

* fix role init

* remove linting not needed

* remove --role-name

* fix docker test?

* docker fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@ednxzu ednxzu force-pushed the fix/openstack-private-address-conditional branch from 1bb64cb to 6a828ab Compare March 22, 2026 22:33
@ednxzu
Copy link
Copy Markdown
Author

ednxzu commented Mar 22, 2026

oh no there was a merge I didn't see... whoops

@BenjaminCarpenter480
Copy link
Copy Markdown

Oops, apologies! It seems my fix changing Git history was not the problem. I was following https://www.conventionalcommits.org/en/v1.0.0/#summary. Now that I reread the error, I wonder if you might need to update your PR title to use the 'fix:' label, as with other PRs in the repo?

@ednxzu ednxzu changed the title Fix openstack driver private address retrieval when auto_ip is False (ansible 2.19) fix: openstack driver private address retrieval when auto_ip is False (ansible 2.19) Mar 23, 2026
@ednxzu
Copy link
Copy Markdown
Author

ednxzu commented Mar 23, 2026

@BenjaminCarpenter480 it looks like it's missing a label but I can't seems to be able to add one myself

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.

OpenStack driver fails waiting on ssh in ansible 2.19

4 participants