<div dir="ltr">Looks like we use API_MAX_VERSION and DEFAULT_OS_COMPUTE_API_VERSION with wrong way. This isn't broken with rackspace only, this broken novaclient runing with nova legacy v2 api(legacy v2 api's behavior is no version exposed).<div><br></div><div>API_MAX_VERSION is the max version of client supported, currently it should be '2.5'<br></div><div><br></div><div>DEFAULT_OS_COMPUTE_API_VERSION is the default value of CLI option of '--os-compute-api-version', ti should be '2.latest' which means let CLI to negotiate with server side choice most recently version. </div><div><br></div><div>Not sure whether we need revert, but at least a new fix should come after that.</div><div><br></div><div>Thanks</div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-21 7:52 GMT+08:00 melanie witt <span dir="ltr"><<a href="mailto:melwittt@gmail.com" target="_blank">melwittt@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
We have an issue [1] in python-novaclient 2.32.0 where it's not working with rackspace cloud.<br>
<br>
It's caused by a commit [2] that changed the default requested compute API version from "latest" to "client supported latest", a specific version. We have some logic in the discover_version method that does comparisons between a user-specified version and the server version. For rackspace, we get a "null" server version because the version list API isn't exposed. The discover_version falls back on compute API 2.0 when requested version is "latest" and server version is "null" but raises an error when requested version is "user-specified" and server version is "null". So more work is needed there to handle cases where version API isn't exposed.<br>
<br>
Should we revert [2] for now? Any other thoughts?<br>
<br>
Thanks,<br>
-melanie (irc: melwitt)<br>
<br>
[1] <a href="https://bugs.launchpad.net/python-novaclient/+bug/1508244" rel="noreferrer" target="_blank">https://bugs.launchpad.net/python-novaclient/+bug/1508244</a><br>
[2] <a href="https://review.openstack.org/#/c/230024/" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/230024/</a><br>
<br>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>