You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the comment here, the name passed to the virConnectOpen should be stripped of port names.
// According to https://libvirt.org/uri.html
// The name passed to the remote virConnectOpen function is formed by removing
// transport, hostname, port number, username and extra parameters from the remote URI
// unless the name option is specified.
However, it seems specifying a port name does not correctly do this. This bug is subtle, however adding a test scenario reveals its presence. It also affects ssh-config based settings (specifically #1116) because the server name becomes incorrectly parsed as the string "servername:port" instead of "servername", causing the ssh_config to fail loading specific settings.
This code affects this call. However, I do not know how it affects the operation of virConnectOpen itself.
if err := l.ConnectToURI(libvirt.ConnectURI(u.RemoteName())); err != nil {
The text was updated successfully, but these errors were encountered:
This issue relates to #1116.
System Information
Linux distribution
Debian 6.1.94-1 (2024-06-21) x86_64 GNU/Linux
Terraform version
Provider and libvirt versions
Description of Issue/Question
Setup
As per the comment here, the name passed to the virConnectOpen should be stripped of port names.
However, it seems specifying a port name does not correctly do this. This bug is subtle, however adding a test scenario reveals its presence. It also affects ssh-config based settings (specifically #1116) because the server name becomes incorrectly parsed as the string "servername:port" instead of "servername", causing the ssh_config to fail loading specific settings.
This code affects this call. However, I do not know how it affects the operation of virConnectOpen itself.
The text was updated successfully, but these errors were encountered: