How to check if virt-who server can connect to vCenter (or other hypervisors)?
Environment
- Red Hat Satellite 6
- virt-who service configured on RHEL
Issue
- How to check if virt-who server can connect to vCenter?
- virt-who connection timeout:
2020-03-25 12:10:15,335 [INFO] @main.py:162 - Using configuration "virt-who-config-x" ("esx" mode)
2020-03-25 12:10:15,335 [INFO] @main.py:164 - Using reporter_id='virt-who-user2'
2020-03-25 12:12:22,731 [ERROR] @virt.py:416 - Thread 'virt-who-config-x' fails with error: ('Connection aborted.', error(110, 'Connection timed out'))
Resolution
- Check if the virt-who server can connect to VMware API:
# curl -k --verbose https://<vcenter fqdn>/sdk/vimService.wsdl
(or using vCenter_ip)
-
Make sure that port 443 is allowed on the virt-who server and the vcenter and vice-versa. This is documented in this document:
- Open a network port for communication between virt-who and the subscription service:
On Red Hat Enterprise Linux 7:
- Open a network port for communication between virt-who and the subscription service:
# firewall-cmd --add-port="443/tcp"
# firewall-cmd --add-port="443/tcp" --permanent
- Open a corresponding network port for communication between virt-who and each virtualization manager or hypervisor:
VMware vCenter: TCP port 443
Microsoft Hyper-V: TCP port 5985
Red Hat Enterprise Virtualization Manager 3.0 and earlier: TCP port 8443
Red Hat Enterprise Virtualization Manager 3.1 and later: TCP port 443
Red Hat OpenStack Platform compute node: depending on a transport type, default is TCP port 22 for SSH communication
More details in Virtual Instances Guide
For more KB articles/solutions related to Virt-who and Virtual Datacenter (VDC) Subscriptions Issues, please refer to the Consolidated Troubleshooting Article for Virt-who and Virtual Datacenter (VDC) Subscriptions Issues
SBR
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.