Comment 1 for bug 1581459

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote : Re: Nova CLI client doesn't support Nova API microverions: ERROR (UnsupportedVersion): Server doesn't support microversions

root@node-1:~# nova --debug --os-compute-api-version 2.1 list
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.0.2:5000/ -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.3.0 python-requests/2.9.1 CPython/2.7.6"
INFO (connectionpool:207) Starting new HTTP connection (1): 192.168.0.2
DEBUG (connectionpool:387) "GET / HTTP/1.1" 300 591
DEBUG (session:277) RESP: [300] Content-Length: 591 Vary: X-Auth-Token Server: Apache Connection: close Date: Fri, 13 May 2016 10:41:25 GMT Content-Type: application/json
RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://192.168.0.2:5000/v3/", "rel": "self"}]}, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.0.2:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}

DEBUG (v2:63) Making authentication request to http://192.168.0.2:5000/v2.0/tokens
INFO (connectionpool:242) Resetting dropped connection: 192.168.0.2
DEBUG (connectionpool:387) "POST /v2.0/tokens HTTP/1.1" 200 4863
DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.0.2:8774/v2/d9e2d67d894b4943aa55f6edc038c5d4 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}55149916cd912dd7d6c02f0407d418bef90a142c"
INFO (connectionpool:207) Starting new HTTP connection (1): 192.168.0.2
DEBUG (connectionpool:387) "GET /v2/d9e2d67d894b4943aa55f6edc038c5d4 HTTP/1.1" 404 52
DEBUG (session:277) RESP: [404] Date: Fri, 13 May 2016 10:41:25 GMT Connection: close Content-Type: text/plain; charset=UTF-8 Content-Length: 52 X-Compute-Request-Id: req-5a2d2d67-7bf2-4f94-b1df-5145e3ec22fc
RESP BODY: 404 Not Found

The resource could not be found.

DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.0.2:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}55149916cd912dd7d6c02f0407d418bef90a142c"
INFO (connectionpool:242) Resetting dropped connection: 192.168.0.2
DEBUG (connectionpool:387) "GET /v2/ HTTP/1.1" 200 376
DEBUG (session:277) RESP: [200] Date: Fri, 13 May 2016 10:41:25 GMT Connection: close Content-Type: application/json Content-Length: 376 X-Compute-Request-Id: req-088c18c9-e57d-43ca-b991-315ce554c2a9
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://192.168.0.2:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}

DEBUG (shell:1082) Server doesn't support microversions
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 1080, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 914, in main
    api_version = api_versions.discover_version(self.cs, api_version)
  File "/usr/lib/python2.7/dist-packages/novaclient/api_versions.py", line 273, in discover_version
    _("Server doesn't support microversions"))
UnsupportedVersion: Server doesn't support microversions
ERROR (UnsupportedVersion): Server doesn't support microversions