← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1566188] [NEW] keystone client reports 500 error if database service is not running

 

Public bug reported:

When running keystone command to authenticate from cinderclient,
keystone reports 500 internal server error.

> /usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py(116)get_token()
-> return self.session.get_token(auth or self.auth)
(Pdb) 
InternalServerError: Internal...24d54)',)
> /usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py(116)get_token()
-> return self.session.get_token(auth or self.auth)
(Pdb) locals()
{'self': <cinderclient.client.SessionClient object at 0x7fa4e5f9d5d0>, '__exception__': (<class 'keystoneauth1.exceptions.http.InternalServerError'>, InternalServerError(u'An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-e4fbb478-79f4-4529-b061-512b29324d54)',)), 'auth': None}

It should report 400 error with proper details..


Steps to reproduce:

1. stop mysql.
2. run cinder list or any command.(It internally call keystone client to authenticate the request)
3. check output..

** Affects: keystone
     Importance: Undecided
     Assignee: Mark (rocky-asdf)
         Status: New

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

Title:
  keystone client reports 500 error if database service is not running

Status in OpenStack Identity (keystone):
  New

Bug description:
  When running keystone command to authenticate from cinderclient,
  keystone reports 500 internal server error.

  > /usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py(116)get_token()
  -> return self.session.get_token(auth or self.auth)
  (Pdb) 
  InternalServerError: Internal...24d54)',)
  > /usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py(116)get_token()
  -> return self.session.get_token(auth or self.auth)
  (Pdb) locals()
  {'self': <cinderclient.client.SessionClient object at 0x7fa4e5f9d5d0>, '__exception__': (<class 'keystoneauth1.exceptions.http.InternalServerError'>, InternalServerError(u'An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-e4fbb478-79f4-4529-b061-512b29324d54)',)), 'auth': None}

  It should report 400 error with proper details..

  
  Steps to reproduce:

  1. stop mysql.
  2. run cinder list or any command.(It internally call keystone client to authenticate the request)
  3. check output..

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


Follow ups