Bug 1211987

Summary: [RFE]keypair-list should provide alternative to list keypairs by user name/id
Product: Red Hat OpenStack Reporter: Jaison Raju <jraju>
Component: openstack-novaAssignee: Vladik Romanovsky <vromanso>
Status: CLOSED ERRATA QA Contact: Gabriel Szasz <gszasz>
Severity: high Docs Contact:
Priority: medium    
Version: 6.0 (Juno)CC: berrange, dasmith, dmaley, eglynn, jhakimra, jraju, jruzicka, kchamart, ndipanov, nlevinki, pmukhedk, sbauza, sferdjao, sgordon, vromanso, yeylon
Target Milestone: gaKeywords: FutureFeature, ZStream
Target Release: 8.0 (Liberty)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-12.0.1-2.el7ost Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 21:00:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1274158    

Description Jaison Raju 2015-04-15 11:15:44 UTC
1. Proposed title of this feature request  
      keypair-list should provide alternative to list keypairs by user name/id
      
      
    3. What is the nature and description of the request?  
      'nova keypair-list ' command should provide options to list keypairs by userid or names , like 
nova keypair-list --all-users
nova keypair-list --user-id <uuid>
nova keypair-list --user <username>

    4. Why does the customer need this? (List the business requirements here)  
      This feature is useful for two reasons:
i. You can attach someone else's keypair to a VM, allowing them to login.
ii. An administrator can query for keypairs.

    5. How would the customer like to achieve this? (List the functional requirements here)  
      
    6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.  
      
    7. Is there already an existing RFE upstream or in Red Hat Bugzilla?  
      Yes. https://bugs.launchpad.net/nova/+bug/1182965
    8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?  
      
    9. Is the sales team involved in this request and do they have any additional input?  
      
    10. List any affected packages or components.  
      python-novaclient
    11. Would the customer be able to assist in testing this functionality if implemented?

Comment 16 Joe H. Rahme 2016-03-14 11:52:11 UTC
FYI I just came across this proposed Tempest test which should cover this case exactly:
https://review.openstack.org/#/c/277763

It hasn't been merged yet, but it shouldn't be very long until it is.

(PS: I have verified that the feature does indeed work for a RHOS8 deployment).

Comment 19 errata-xmlrpc 2016-04-07 21:00:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0603.html