While connecting virt-who to RHEVM 4.0 it fails with error "HTTP Error 404: Not Found"
Issue
-
While connecting virt-who to RHEVM 4.0 it fails with error "HTTP Error 404: Not Found"
-
Virt-who configuration:
# grep -v \# /etc/virt-who.d/config
[rhev]
type=rhevm
hypervisor_id=hostname
owner=Example
env=Library
server=https://rhevm.example.com:443/ovirt-engine
username=admin@internal
encrypted_password=3d5e601...
- Virt-who error message
# virt-who -od
2016-11-17 11:26:26,382 DEBUG: Using config named 'rhev'
2016-11-17 11:26:26,382 INFO: Using configuration "rhev" ("rhevm" mode)
2016-11-17 11:26:26,437 ERROR: Virt backend 'rhev' fails with exception:
Traceback (most recent call last):
File "/usr/share/virt-who/virt/virt.py", line 301, in run
self._run()
File "/usr/share/virt-who/virt/virt.py", line 332, in _run
report = self._get_report()
File "/usr/share/virt-who/virt/virt.py", line 274, in _get_report
return HostGuestAssociationReport(self.config, self.getHostGuestMapping())
File "/usr/share/virt-who/virt/rhevm/rhevm.py", line 104, in getHostGuestMapping
clusters_xml = ElementTree.parse(self.get(self.clusters_url))
File "/usr/share/virt-who/virt/rhevm/rhevm.py", line 89, in get
return urllib2.urlopen(request)
File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
2016-11-17 11:26:27,440 DEBUG: virt-who shut down started
Environment
- Red Hat Enterprise Linux
- Virt-who
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.