Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 only vCenter registration fails when IPv6 proxy is configured. #1053

Closed
rutuja-chaudhary opened this issue Oct 20, 2023 · 1 comment
Closed
Labels

Comments

@rutuja-chaudhary
Copy link

Describe the bug

We are trying to connect to a IPV6 only vcenter server from IPv6 only VM which has a IPv6 only proxy server configured on it.
below code snippet we are using to connect to the vCenter server.
Note: we are adding square brackets for ipv6 proxy server address.

 SmartConnect(host=server_url,
                               user=username,
                               pwd=password,
                               sslContext=context,
                               httpProxyHost=proxy_address,
                               httpProxyPort=proxy_port,
                               customHeaders=proxy_headers)

We are seeing the below error with this configuration.

Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/etc/vcp/applianceRTVEnv/lib/python3.10/site-packages/vcp_common_utils/vcenter_service_manager.py", line 47, in connect
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     self.si = SmartConnect(host=self.server_url,
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/etc/vcp/applianceRTVEnv/lib/python3.10/site-packages/pyVim/connect.py", line 974, in SmartConnect
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     supportedVersion = __FindSupportedVersion(protocol, host, port, path,
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/etc/vcp/applianceRTVEnv/lib/python3.10/site-packages/pyVim/connect.py", line 787, in __FindSupportedVersion
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     serviceVersionDescription = __GetServiceVersionDescription(
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/etc/vcp/applianceRTVEnv/lib/python3.10/site-packages/pyVim/connect.py", line 711, in __GetServiceVersionDescription
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     return __GetElementTree(protocol, server, port,
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/etc/vcp/applianceRTVEnv/lib/python3.10/site-packages/pyVim/connect.py", line 665, in __GetElementTree
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     conn.request(method="GET", url=path, headers=headers)
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/usr/lib/python3.10/http/client.py", line 1285, in request
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     self._send_request(method, url, body, headers, encode_chunked)
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/usr/lib/python3.10/http/client.py", line 1331, in _send_request
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     self.endheaders(body, encode_chunked=encode_chunked)
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/usr/lib/python3.10/http/client.py", line 1280, in endheaders
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     self._send_output(message_body, encode_chunked=encode_chunked)
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/usr/lib/python3.10/http/client.py", line 1040, in _send_output
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     self.send(msg)
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/usr/lib/python3.10/http/client.py", line 978, in send
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     self.connect()
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/usr/lib/python3.10/http/client.py", line 1450, in connect
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     super().connect()
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/usr/lib/python3.10/http/client.py", line 944, in connect
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     self.sock = self._create_connection(
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/usr/lib/python3.10/socket.py", line 828, in create_connection
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:   File "/usr/lib/python3.10/socket.py", line 959, in getaddrinfo
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]:     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
Oct 19 08:02:05 nvidia-gpu-manager bash[85427]: socket.gaierror: [Errno -2] Name or service not known

Is anything wrong or missing here?

Reproduction steps

...

Expected behavior

vCenter Connection should succeed without any error.

Additional context

No response

@jobingeo
Copy link

jobingeo commented Nov 17, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants