← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1312730] Re: exceptions must be old-style classes or derived from BaseException, not NoneType (HTTP 400)

 

*** This bug is a duplicate of bug 1276221 ***
    https://bugs.launchpad.net/bugs/1276221

** This bug has been marked a duplicate of bug 1276221
    Keystone returns HTTP 400 as SQLAlchemy raises None exceptions

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1312730

Title:
  exceptions must be old-style classes or derived from BaseException,
  not NoneType (HTTP 400)

Status in OpenStack Identity (Keystone):
  Incomplete

Bug description:
  I follow:
  http://docs.openstack.org/trunk/install-guide/install/yum/content/keystone-users.html

  When I run:
    keystone --os-token 487089b7d994017258c2 --os-endpoint http://controller:35357/v2.0 user-create --name=admin --pass=743b12e76412acb4bdc9 --email=root@localhost
  it creates user correctly:
  +----------+----------------------------------+
  | Property |              Value               |
  +----------+----------------------------------+
  |  email   |          root@localhost          |
  | enabled  |               True               |
  |    id    | 32862c8d841c46bf8bd0212ea64db72c |
  |   name   |              admin               |
  | username |              admin               |
  +----------+----------------------------------+

  But if I run this command again, I will get:
  exceptions must be old-style classes or derived from BaseException, not NoneType (HTTP 400)

  # rpm -qf /usr/bin/keystone
  python-keystoneclient-0.8.0-2.el6.noarch

  I would expect more helpful message like:
  User already exist.

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


References