User creation error not descriptive

Bug #1334734 reported by Ryan Rossiter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Undecided
Unassigned

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 address hidden>

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

Ryan Rossiter (rlrossit)
Changed in horizon:
assignee: nobody → Ryan Rossiter (rlrossit)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/105232

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by David Lyle (<email address hidden>) on branch: master
Review: https://review.openstack.org/105232
Reason: No updates since July. If this is still being worked on restore the review and rebase.

Matt Riedemann (mriedem)
Changed in horizon:
status: In Progress → New
assignee: Ryan Rossiter (rlrossit) → nobody
Revision history for this message
Matt Borland (palecrow) wrote :

I think there needs to be a little more detail in this bug as it doesn't clarify if the problem is due to Keystone not returning enough useful information in its response for Horizon to respond accordingly. Horizon cannot just pass on English errors, it needs distinguishable error indications so it can provide appropriate localization and detail in its error messages. If the problem is that Keystone is providing a unique error code, then it is a Horizon bug; otherwise this is a problem with Keystone not providing enough information.

Changed in horizon:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.