No documentation on viewing a generated private keypair

Bug #1549410 reported by James
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Wishlist
Rui Chen

Bug Description

Currently, under the keypair create, there is no documentation on how to view the private key pair necessary to log into instances.

I recommend showing that there is an private-key option and that the file can be saved using a --private-key <file> option as well otherwise the private key can never be recovered.

James (james-o-benson)
tags: added: documentation wishlist
Changed in python-openstackclient:
assignee: nobody → James (james-o-benson)
Revision history for this message
Steve Martinelli (stevemar) wrote :

Automatically unassigning due to inactivity.

Changed in python-openstackclient:
assignee: James (james-o-benson) → nobody
Changed in python-openstackclient:
importance: Undecided → Wishlist
status: New → Confirmed
Anne Gentle (annegentle)
Changed in python-openstackclient:
assignee: nobody → Anne Gentle (annegentle)
Revision history for this message
Anne Gentle (annegentle) wrote :

Right now, there's an if/else so no argument is passed; instead, if the user doesn't indicate --public-key, then a private key is created. Is this how we want it to work, or should a private-key argument be added?

Changed in python-openstackclient:
assignee: Anne Gentle (annegentle) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/390220
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=5055074db00f75285034c056b631d85f42cd9086
Submitter: Jenkins
Branch: master

commit 5055074db00f75285034c056b631d85f42cd9086
Author: Anne Gentle <email address hidden>
Date: Mon Oct 24 10:55:10 2016 +0200

    Adds information about private key generation for instance access

    - Also updated the help text in the command itself.

    Change-Id: Ib3d4f94ef415a3f12024d0d7c000d2de20de001b
    Partial-Bug: 1549410

Revision history for this message
Rui Chen (kiwik-chenrui) wrote :

I like the idea about "--private-key" option to save the private key when we create keypair, currently we use I/O redirection command "openstack keypair create xxx > my_private_key.pem" to do it, but if we use interactive mode, it don't work. The "--private-key" option can help us to save private key to a file directly, not any more copy output string and paste it.

Changed in python-openstackclient:
assignee: nobody → Rui Chen (kiwik-chenrui)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/438352
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=dee22d8faa0c8a0da1d6ff62c0997c2cc770b759
Submitter: Jenkins
Branch: master

commit dee22d8faa0c8a0da1d6ff62c0997c2cc770b759
Author: Rui Chen <email address hidden>
Date: Mon Feb 27 14:35:05 2017 +0800

    Add "--private-key" option for "keypair create"

    Aim to specify the private key file to save when keypair
    is created. That is a convenient way to save private key
    in OSC interactive mode, avoid to copy CLI output, then
    paste it into file.

    Change-Id: I119d2f2a3323d17ecbe3de4e27f35e1ceef6e0a5
    Closes-Bug: #1549410

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.10.0

This issue was fixed in the openstack/python-openstackclient 3.10.0 release.

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.