<div dir="ltr">I&#39;m trying on FC24, using python-ovirt-engine-sdk4-4.1.0<wbr>-0.0.20161003git056315d.fc24.x<wbr>86_64 to add a DC, and failing - against master. The client is unhappy:<div><div>File &quot;/home/ykaul/ovirt-system-test<wbr>s/basic-suite-master/test-scen<wbr>arios/002_bootstrap.py&quot;, line 98, in add_dc4</div><div>    version=sdk4.types.Version(maj<wbr>or=DC_VER_MAJ,minor=DC_VER_MIN<wbr>),</div><div>  File &quot;/usr/lib64/python2.7/site-pac<wbr>kages/ovirtsdk4/services.py&quot;, line 4347, in add</div><div>    response = self._connection.send(request)</div><div>  File &quot;/usr/lib64/python2.7/site-pac<wbr>kages/ovirtsdk4/__init__.py&quot;, line 276, in send</div><div>    return self.__send(request)</div><div>  File &quot;/usr/lib64/python2.7/site-pac<wbr>kages/ovirtsdk4/__init__.py&quot;, line 298, in __send</div><div>    self._sso_token = self._get_access_token()</div><div>  File &quot;/usr/lib64/python2.7/site-pac<wbr>kages/ovirtsdk4/__init__.py&quot;, line 460, in _get_access_token</div><div>    sso_response = self._get_sso_response(self._s<wbr>so_url, post_data)</div><div>  File &quot;/usr/lib64/python2.7/site-pac<wbr>kages/ovirtsdk4/__init__.py&quot;, line 498, in _get_sso_response</div><div>    return json.loads(body_buf.getvalue()<wbr>.decode(&#39;utf-8&#39;))</div><div>  File &quot;/usr/lib64/python2.7/json/__i<wbr>nit__.py&quot;, line 339, in loads</div><div>    return _default_decoder.decode(s)</div><div>  File &quot;/usr/lib64/python2.7/json/dec<wbr>oder.py&quot;, line 364, in decode</div><div>    obj, end = self.raw_decode(s, idx=_w(s, 0).end())</div><div>  File &quot;/usr/lib64/python2.7/json/dec<wbr>oder.py&quot;, line 382, in raw_decode</div><div>    raise ValueError(&quot;No JSON object could be decoded&quot;)</div><div>ValueError: No JSON object could be decoded</div><div><br></div><div><br></div><div>Surprisingly, I now can&#39;t find that RPM of this SDK in <a href="http://resources.ovirt.org" target="_blank">resources.ovirt.org</a> now.</div><div><br></div><div>I&#39;ve tried with <a href="http://resources.ovirt.org/pub/ovirt-master-snapshot/rpm/fc24/x86_64/python-ovirt-engine-sdk4-4.0.0-0.1.20161004gitf94eeb5.fc24.x86_64.rpm" target="_blank">http://resources.ovirt.or<wbr>g/pub/ovirt-master-snapshot/rp<wbr>m/fc24/x86_64/python-ovirt-eng<wbr>ine-sdk4-4.0.0-0.1.20161004git<wbr>f94eeb5.fc24.x86_64.rpm</a> </div></div><div><br></div><div>- same result.</div><div><br></div><div>Did not see anything obvious on server or engine logs.</div><div>The code:</div><div><div>def add_dc4(api):</div><div>    nt.assert_true(api != None)</div><div>    dcs_service = api.system_service().data_<wbr>centers_service()</div><div>    nt.assert_true(</div><div>        dc = dcs_service.add(</div><div>            sdk4.types.DataCenter(</div><div>                name=DC_NAME4,</div><div>                description=&#39;APIv4 DC&#39;,</div><div>                local=False,</div><div>                version=sdk4.types.Version(<wbr>major=DC_VER_MAJ,minor=DC_VER_<wbr>MIN),</div><div>            ),</div><div>        )</div><div>    )</div></div><div><br></div><div><br></div><div>And the api object is from:</div><div><div>            return sdk4.Connection(</div><div>                url=url,</div><div>                username=constants.ENGINE_<wbr>USER,</div><div>                password=str(self.metadata[&#39;<wbr>ovirt-engine-password&#39;]),</div><div>                insecure=True,</div><div>                debug=True,</div><div>            )</div></div><div><br></div></div>