Public bug reported: 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 ia 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 ia 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 ia 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 ia 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 ** Affects: nova Importance: Undecided Status: New ** Attachment added: "n-api.log" https://bugs.launchpad.net/bugs/1593573/+attachment/4685416/+files/n-api.log -- 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): New 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 ia 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 ia 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 ia 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 ia 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

