-
Bug
-
Resolution: Done-Errata
-
Critical
-
None
-
None
Description of problem:
Upon importing Windows VMs using the KubeVirt plugin, the ansible_connection fact uses "ssh" instead of "winrm". This causes a failure to connect to the Windows VMs.
Steps to Reproduce:
1. Create a Win VM 2. Import the VM via KubeVirt Plugin 3. Check the Host Variables and you will see ansible_connection: "ssh"
Expected results:
ansible_connection: "winrm"
Additional info:
In addition, if you attempt to make these changes in the Group level, the variables don't have precedence over Host vars (as expected) so setting ansible_connections: winrm at the group level will not work. The workaround for now is to manually adjust the ansible_connection var at the host level and set to winrm.
Also as an FYI, if you are using self-signed certificates you need:
ansible_winrm_server_cert_validation: ignore
We need to make sure if do need this, set it at the Group Level and let users know how to do that.
- relates to
-
CNV-38268 Do not hardcode ansible_connection
- Closed
- links to
-
RHEA-2023:122979 OpenShift Virtualization 4.16.0 Images