Skip to content

[reproducer] Use include_role for install_ca in delegated block#3919

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
mnietoji:fix/install-ca-include-role
May 11, 2026
Merged

[reproducer] Use include_role for install_ca in delegated block#3919
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
mnietoji:fix/install-ca-include-role

Conversation

@mnietoji
Copy link
Copy Markdown
Contributor

@mnietoji mnietoji commented May 8, 2026

When import_role is used inside a delegate_to block, Ansible triggers Python interpreter discovery on the original host (hypervisor) rather than the delegate target (controller-0). If the SSH connection to the hypervisor is unavailable at that point, the task fails with UNREACHABLE.

Switch to include_role which loads tasks dynamically within the delegated execution context, avoiding the interpreter discovery on the original host.

When import_role is used inside a delegate_to block, Ansible
triggers Python interpreter discovery on the original host
(hypervisor) rather than the delegate target (controller-0).
If the SSH connection to the hypervisor is unavailable at that
point, the task fails with UNREACHABLE.

Switch to include_role which loads tasks dynamically within the
delegated execution context, avoiding the interpreter discovery
on the original host.

Signed-off-by: Miguel Angel Nieto Jimenez <mnietoji@redhat.com>
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

@nemarjan
Copy link
Copy Markdown
Contributor

/approve

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 11, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nemarjan

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

The pull request process is described 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

@openshift-merge-bot openshift-merge-bot Bot merged commit 52e11d1 into openstack-k8s-operators:main May 11, 2026
9 checks passed
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