Skip to content

Conversation

mathias-ioki
Copy link

The Wait for SSH task in the create.yml playbook makes some assumptions:

  • ansible host is always directly accessible from the control node
  • port 22 is always used for connection

Both of them are not always true, especially the first one. Especially in cloud environments a bastion node / jumphost is used very often to connect to the VMs. Such a scenario can't be used with the current implementation.

Therefore I would suggest to move this task to the prepare.yml playbook. We can use wait_for_connection then, which respects the ssh config (jumphost, ports, ...) and the ansible config for these hosts. So both described use cases are now possible.

This can break existing configurations, if the prepare.yml is overridden within the actual molecule test.

Copy link

Label error. Requires exactly 1 of: bug, enhancement, major, minor, patch, skip-changelog. Found:

@mathias-ioki
Copy link
Author

Hey @apatard, after you reviewed the other OpenStack related PRs, I was hoping you could review this one too.

@apatard
Copy link
Member

apatard commented Feb 21, 2025

Hey @apatard, after you reviewed the other OpenStack related PRs, I was hoping you could review this one too.

It's on the TODO. I wanted to test it with a devstack, but did not manage to find enough time to do it, sorry :(

@zadjadr
Copy link

zadjadr commented Aug 15, 2025

Any updates on this?

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