<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }body { font-family: 微软雅黑; font-size: 10.5pt; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>Hi all,<div> <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"> I have an ovirt 4.0 </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">environment. I got an error when I excuted an python </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">script which could be </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">normally excuted in 3.6. I have figured out that in ovirt 4.0 the version of python sdk is still </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">3.6.7.0. It seemed that the </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">server thought it was an u</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">nsecured connection, but </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">HTTPS protocol and the right ca file was used.</span></div><div>Anyone can help? Thanks!</div><div><br></div><div>[root@test ~]# ./test.py<br>Traceback (most recent call last):<br> File "./test.py", line 30, in <module><br> vms = VirtualMachines()<br> File "/root/vm.py", line 31, in __init__<br> self.api = API(url=BASEURL,username=USERNAME,password=PASSWORD,ca_file=CAFILE)<br> File "/usr/lib/python2.7/site-packages/ovirtsdk/api.py", line 197, in __init__<br> raise UnsecuredConnectionAttemptError<br>ovirtsdk.infrastructure.errors.UnsecuredConnectionAttemptError: [ERROR]::No response returned from server. If you're using HTTP protocol<br>against a SSL secured server, then try using HTTPS instead.</div><div><br></div><div>(BASEURL<span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">: https://test.example.com/ovirt-engine</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">)</span></div></body></html>