← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1487960] [NEW] ValueError when creating a user

 

Public bug reported:

The keystone.conf gives no guidelines as to the minimum and maximum
values of crypt_strength in keystone.conf.  If set too high or low, the
user creation will fail.  The min, max is defined in
https://pythonhosted.org/passlib/lib/passlib.hash.sha512_crypt.html, but
this info is not indicated in keystone.

To recreate:
- install devstack (I ran keystone without mod_wsgi in my case, don't think its relevant though)
- change crypt_strength value to 500 in keystone.conf
- login to horizon
- click on Identity -> Users
- click Create User
- enter any values you want for the new user
- Notice the creation of the user fails.  The keystone log contains the following ValueError.  http://paste.openstack.org/show/425692/

I believe similar errors would occur when setting admin_port,
public_port, and pydev-debug-port outside the range of 1-65535

** Affects: keystone
     Importance: Undecided
     Assignee: Eric Brown (ericwb)
         Status: In Progress

** Changed in: keystone
     Assignee: (unassigned) => Eric Brown (ericwb)

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

Title:
  ValueError when creating a user

Status in Keystone:
  In Progress

Bug description:
  The keystone.conf gives no guidelines as to the minimum and maximum
  values of crypt_strength in keystone.conf.  If set too high or low,
  the user creation will fail.  The min, max is defined in
  https://pythonhosted.org/passlib/lib/passlib.hash.sha512_crypt.html,
  but this info is not indicated in keystone.

  To recreate:
  - install devstack (I ran keystone without mod_wsgi in my case, don't think its relevant though)
  - change crypt_strength value to 500 in keystone.conf
  - login to horizon
  - click on Identity -> Users
  - click Create User
  - enter any values you want for the new user
  - Notice the creation of the user fails.  The keystone log contains the following ValueError.  http://paste.openstack.org/show/425692/

  I believe similar errors would occur when setting admin_port,
  public_port, and pydev-debug-port outside the range of 1-65535

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


Follow ups