virt-who cannot connect to Hyper-V, error "HyperVException: Communication with Hyper-V failed, HTTP error: 415"
Environment
- Red Hat Enterprise Linux 6/7
- Microsoft Hyper-V
- virt-who
Issue
- virt-who cannot connect to Hyper-V, error:
2016-03-01 16:13:43,313 [DEBUG] @hyperv.py:172 - Hyper-V url: http://SCVMM-Server:5985/wsman
2016-03-01 16:13:43,327 [DEBUG] @hyperv.py:222 - Using NTLM authentication
2016-03-01 16:13:43,368 [DEBUG] @hyperv.py:249 - NTLM authentication successful
2016-03-01 16:13:43,421 [ERROR] @virt-who.py:210 - Unable to recover, retry in 60 seconds.
2016-03-01 16:14:43,413 [DEBUG] @hyperv.py:172 - Hyper-V url: http://SCVMM-Server:5985/wsman
2016-03-01 16:14:43,430 [DEBUG] @hyperv.py:222 - Using NTLM authentication
2016-03-01 16:14:43,471 [DEBUG] @hyperv.py:249 - NTLM authentication successful
2016-03-01 16:14:43,523 [ERROR] @virt-who.py:207 - Error in communication with virt backend, trying to recover:
Traceback (most recent call last):
File "/usr/share/virt-who/virt-who.py", line 198, in _send
virtualGuests = self.virt.getHostGuestMapping()
File "/usr/share/virt-who/hyperv.py", line 277, in getHostGuestMapping
uuid = hypervsoap.Enumerate("select BIOSGUID from Msvm_VirtualSystemSettingData where SettingType = 3")
File "/usr/share/virt-who/hyperv.py", line 95, in Enumerate
response = self.post(data)
File "/usr/share/virt-who/hyperv.py", line 75, in post
raise HyperVException("Communication with Hyper-V failed, HTTP error: %d" % response.status)
HyperVException: Communication with Hyper-V failed, HTTP error: 415
2016-03-01 16:14:43,524 [DEBUG] @hyperv.py:172 - Hyper-V url: http://SCVMM-Server:5985/wsman
2016-03-01 16:14:43,539 [DEBUG] @hyperv.py:222 - Using NTLM authentication
2016-03-01 16:14:43,576 [DEBUG] @hyperv.py:249 - NTLM authentication successful
Resolution
-
Currently virt-who can not be integrated with Microsoft SCVMM. There is a RFE for this :
This content is not included.Bug 1400260 - [RFE] Need SCVMM support for virt-who
-
Current workaround:
- Each Hyper-V host needs its own virt-who configuration. Please check solution below for details :
How to configure virt-who service to communicate with Hyper-V
- Each Hyper-V host needs its own virt-who configuration. Please check solution below for details :
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
Root Cause
- At the moment , Microsoft SCVMM is not supported by virt-who unlike vCenter and RHEV-M.
Diagnostic Steps
# less rhsm.log
2016-03-01 16:13:43,313 [DEBUG] @hyperv.py:172 - Hyper-V url: http://SCVMM-Server:5985/wsman
2016-03-01 16:13:43,327 [DEBUG] @hyperv.py:222 - Using NTLM authentication
2016-03-01 16:13:43,368 [DEBUG] @hyperv.py:249 - NTLM authentication successful
2016-03-01 16:13:43,421 [ERROR] @virt-who.py:210 - Unable to recover, retry in 60 seconds.
2016-03-01 16:14:43,413 [DEBUG] @hyperv.py:172 - Hyper-V url: http://SCVMM-Server:5985/wsman
2016-03-01 16:14:43,430 [DEBUG] @hyperv.py:222 - Using NTLM authentication
2016-03-01 16:14:43,471 [DEBUG] @hyperv.py:249 - NTLM authentication successful
2016-03-01 16:14:43,523 [ERROR] @virt-who.py:207 - Error in communication with virt backend, trying to recover:
Traceback (most recent call last):
File "/usr/share/virt-who/virt-who.py", line 198, in _send
virtualGuests = self.virt.getHostGuestMapping()
File "/usr/share/virt-who/hyperv.py", line 277, in getHostGuestMapping
uuid = hypervsoap.Enumerate("select BIOSGUID from Msvm_VirtualSystemSettingData where SettingType = 3")
File "/usr/share/virt-who/hyperv.py", line 95, in Enumerate
response = self.post(data)
File "/usr/share/virt-who/hyperv.py", line 75, in post
raise HyperVException("Communication with Hyper-V failed, HTTP error: %d" % response.status)
HyperVException: Communication with Hyper-V failed, HTTP error: 415
2016-03-01 16:14:43,524 [DEBUG] @hyperv.py:172 - Hyper-V url: http://SCVMM-Server:5985/wsman
2016-03-01 16:14:43,539 [DEBUG] @hyperv.py:222 - Using NTLM authentication
2016-03-01 16:14:43,576 [DEBUG] @hyperv.py:249 - NTLM authentication successful
SBR
Product(s)
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.