Open jangel97 opened 2 years ago
HI, are you sure that the Kerberos login is working? The error which you got is because the engine does not return the XML. Could you try logging into the engine with a python api/curl request? (I'm thinking to implement better logging for these errors.)
Getting similar error when run through ovirt module
ovirtsdk4.Error: The response content type 'text/html; charset=utf-8' isn't the expected JSON
When I tried to hit the API with curl and getting this error
[dev@tm ~]$ curl --cacert ca.crt --request GET --header 'Version: 4' --header 'Accept: application/xml' --user 'user@internal:***' https://olvm-domain1/ovirt-engine/api -k
Curl response:
But I could able to ping olvm-domain1 good from the host tm.
How to fix this issue?
Summary
Hi, module _ovirt_vminfo is failing with error:
The response content type 'text/html;charset=UTF-8' isn't the expected XML
.Environment:
My RHV instance has digital certificate expired. Even though,
ovirt_auth
has entryinsecure
set totrue
the error is still happening. Is this a bug? Or is it something I am missing?Steps to reproduce
Problem
I would expect the previous code to run successfully (even with the RHV instance with cert epired), but I am finding the following error:
Is this a bug? Could it be that I am missing something? If this is a bug, is there something I can do to bypass it temporarily?
Thanks in advance,