v0.9 keystone-manage user delete not working

Bug #877504 reported by Jason Hedden
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Dolph Mathews

Bug Description

Is this a known issue, or do I have something wrong in my environment?

# keystone-manage --version
keystone-manage 0.9

# keystone-manage user help
add, disable, delete, and list are the only supported commands (right now)

# keystone-manage user delete demo
ERROR: unrecognized command user delete

Dolph Mathews (dolph)
Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
Revision history for this message
Dolph Mathews (dolph) wrote :

This is both an issue with command-line feedback and possibly a gap with the keystone-manage feature set.

 - We don't support deleting users.
 - We *do* support disabling users.
 - We also don't support enabling users.

As a first pass at this, I've slightly improved the messages as follows:

$ ./keystone-manage user help
Supported commands: add, list, disable, delete, grant, revoke

$ ./keystone-manage user delete demo
Action not supported for users

The problem here is that 'help' isn't a supported command at all, and it's just responding with the entire supported list of verbs, regardless of what type of object you're operating on (so you'd get the same response from 'keystone-manage user asdf').

This might be a good excuse to refactor the management API to be a little more OO... which would be a step towards... dun dun dun... making it EXTENSIBLE!

Changed in keystone:
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : A change has been merged to openstack/keystone

Reviewed: https://review.openstack.org/947
Committed: http://github.com/openstack/keystone/commit/498496938e77226b01c00bbb9fe4ebc0bdc61211
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 498496938e77226b01c00bbb9fe4ebc0bdc61211
Author: Dolph Mathews <email address hidden>
Date: Wed Oct 19 09:08:31 2011 -0500

    Improved CLI error feedback (bug 877504)

    - Renamed 'commands' to 'actions' to avoid confusion
    - Fixed: --help not showing usage options
    - Fixed: lists of 'objects' and 'actions' were out of date
      - They are now generated at runtime

    Change-Id: I055ae6c40d846efa3cea96f822aa6bec02afdfd2

Changed in keystone:
status: In Progress → Fix Committed
Joe Savak (jsavak)
tags: added: diablo-backport
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to keystone (stable/diablo)

Reviewed: https://review.openstack.org/1342
Committed: http://github.com/openstack/keystone/commit/7dc4d40b8a9ba0e9728e346880dd55c1bef9483e
Submitter: Jenkins
Branch: stable/diablo

 status fixcommitted
 done

commit 7dc4d40b8a9ba0e9728e346880dd55c1bef9483e
Author: Dolph Mathews <email address hidden>
Date: Wed Oct 19 09:08:31 2011 -0500

    Improved CLI error feedback (bug 877504)

    - Renamed 'commands' to 'actions' to avoid confusion
    - Fixed: --help not showing usage options
    - Fixed: lists of 'objects' and 'actions' were out of date
      - They are now generated at runtime

    Change-Id: I055ae6c40d846efa3cea96f822aa6bec02afdfd2

Thierry Carrez (ttx)
Changed in keystone:
milestone: none → essex-1
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-1 → 2012.1
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.