← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1593573] Re: flavor image listing failed while calling Nova API with token from http://[host-ip]/identity/v3

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1593573

Title:
  flavor image listing failed while calling Nova API with token from
  http://[host-ip]/identity/v3

Status in OpenStack Compute (nova):
  Expired

Bug description:
  With OpenStack Mitaka 14.0 release:

  Running list server, images and flavor with http://[host-
  ip]/identity/v2.0 token has no issue but when switching to http
  ://[host-ip]/identity/v3, error is returned for image listing and
  flavor listing but server listing is working fine.

  I did:

  (A) Obtaining a token from http://[host-ip]/identity/v2.0, token
  [203f7cfba41645cabddf06ea644dcc66]

  (B) Obtaining a token from http://[host-ip]/identity/v3, token
  [9cb08a8f126844318e7052ab7f62f14f]

  And by using the tokens, I did:

  a) With token from v2.0 [203f7cfba41645cabddf06ea644dcc66]

  - Get server listing

  curl --request GET 'http://[host-ip]:8774/v2.1/servers' --header 'X
  -Auth-Token:203f7cfba41645cabddf06ea644dcc66'

  Outcome: Get server listing with no error. Result in JSON is returned.

  -  Get image listing

  curl --request GET 'http://[host-ip]:8774/v2.1/images' --header 'X
  -Auth-Token:203f7cfba41645cabddf06ea644dcc66'

  Outcome: Get image listing with no error. Result in JSON is returned.

  - Get flavor listing

  curl --request GET 'http://[host-ip]:8774/v2.1/flavors' --header 'X
  -Auth-Token:203f7cfba41645cabddf06ea644dcc66'

  Outcome: Get flavor listing with no error. Result in JSON is returned.

  All above are working perfectly with v.20 token.

  b) With token from v3 [9cb08a8f126844318e7052ab7f62f14f]

  - Get server listing
  curl --request GET 'http://[host-ip]:8774/v2.1/servers' --header 'X-Auth-Token:9cb08a8f126844318e7052ab7f62f14f'

  Outcome: Get server listing with no error. Result in JSON is returned.

  -  Get image listing

  curl --request GET 'http://[host-ip]:8774/v2.1/images' --header 'X
  -Auth-Token:9cb08a8f126844318e7052ab7f62f14f'

  {
   "computeFault": {
    "message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<type 'exceptions.TypeError'>",
    "code": 500
   }
  }

  Outcome: Error

  - Get flavor listing

  curl --request GET 'http://[host-ip]:8774/v2.1/flavors' --header 'X
  -Auth-Token:9cb08a8f126844318e7052ab7f62f14f'

  {
   "computeFault": {
    "message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<type 'exceptions.TypeError'>",
    "code": 500
   }
  }

  Outcome: Error

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1593573/+subscriptions


References