← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1245342] Re: create user returns 400 without a password, which should be optional

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => icehouse-2

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

Title:
  create user returns 400 without a password, which should be optional

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  Recreate the problem steps:
  1. Install OSEE using install scripts.
  2. Create a new user for keystone:
  2.1 Running "help" to get the parameter list:
  [root@localhost init.d]# keystone help user-create
  usage: keystone user-create --name <user-name> [--tenant <tenant>]
                              [--pass <pass>] [--email <email>]
                              [--enabled <true|false>]

  From the result, the "user-name" is mandatory, others are optional.

  2.2 But when only setting username in command, it prompts below error:
  [root@localhost init.d]# keystone user-create --name test1
  KS-B7349D8 Expecting to find string in password. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400)

  So I must also set password at the same time.
  [root@localhost init.d]# keystone user-create --name test1 --pass passw0rd
  +----------+----------------------------------+
  | Property |              Value               |
  +----------+----------------------------------+
  |  email   |                                  |
  | enabled  |               True               |
  |    id    | 23c5ca72fdb54e3a89d19261fd5ac669 |
  |   name   |              test1               |
  +----------+----------------------------------+

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