yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #16674
[Bug 1334734] [NEW] User creation error not descriptive
Public bug reported:
When the creation of a user fails by some exceptions within Keystone,
the error message given by Horizon is "Error: Unable to create user."
The error message within Keystone CLI shows detailed description of
error.
To replicate:
1. Raise an exception within keystone/keystone/identity/controllers.py
by adding this line:
def create_user(...):
...
self.assert_admin(context)
# Add this line
raise exception.ValidationTimeStampError()
...
2. Restart keystone service
3a. Within CLI:
> keystone user-create --name=example --pass=examplepass --email=example@xxxxxxxxxxx
Output:
> Timestamp not in expected format. 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)
3b. Within Horizon:
Create user with same information as CLI (add to any project and role)
Output:
Error: Unable to create user
** Affects: horizon
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1334734
Title:
User creation error not descriptive
Status in OpenStack Dashboard (Horizon):
New
Bug description:
When the creation of a user fails by some exceptions within Keystone,
the error message given by Horizon is "Error: Unable to create user."
The error message within Keystone CLI shows detailed description of
error.
To replicate:
1. Raise an exception within keystone/keystone/identity/controllers.py
by adding this line:
def create_user(...):
...
self.assert_admin(context)
# Add this line
raise exception.ValidationTimeStampError()
...
2. Restart keystone service
3a. Within CLI:
> keystone user-create --name=example --pass=examplepass --email=example@xxxxxxxxxxx
Output:
> Timestamp not in expected format. 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)
3b. Within Horizon:
Create user with same information as CLI (add to any project and role)
Output:
Error: Unable to create user
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1334734/+subscriptions
Follow ups
References