openstack keypair create does not support --user parameter

Bug #1668827 reported by yong sheng gong
This bug affects 4 people
Affects Status Importance Assigned to Milestone
M V P Nitesh

Bug Description

gongysh@ubuntu64:/opt/stack/tacker$ openstack keypair create --help
usage: openstack keypair create [-h] [-f {html,json,shell,table,value,yaml}]
                                [-c COLUMN] [--max-width <integer>]
                                [--print-empty] [--noindent] [--prefix PREFIX]
                                [--public-key <file>]

Create new public or private key for server ssh access

positional arguments:
  <name> New public or private key name

optional arguments:
  -h, --help show this help message and exit
  --public-key <file> Filename for public key to add. If not used, creates a
                        private key.

output formatters:
  output formatter options

  -f {html,json,shell,table,value,yaml}, --format {html,json,shell,table,value,yaml}
                        the output format, defaults to table
  -c COLUMN, --column COLUMN
                        specify the column(s) to include, can be repeated

table formatter:
  --max-width <integer>
                        Maximum display width, <1 to disable. You can also use
                        the CLIFF_MAX_TERM_WIDTH environment variable, but the
                        parameter takes precedence.
  --print-empty Print empty table if there is no data to show.

json formatter:
  --noindent whether to disable indenting the JSON

shell formatter:
  a format a UNIX shell can parse (variable="value")

  --prefix PREFIX add a prefix to all variable names


gongysh@ubuntu64:/opt/stack/tacker$ nova help keypair-add
usage: nova keypair-add [--pub-key <pub-key>] [--key-type <key-type>]
                        [--user <user-id>]

Create a new key pair for use with servers.

Positional arguments:
  <name> Name of key.

Optional arguments:
  --pub-key <pub-key> Path to a public ssh key.
  --key-type <key-type> Keypair type. Can be ssh or x509. (Supported by API
                         versions '2.2' - '2.latest')
  --user <user-id> ID of user to whom to add key-pair (Admin only).
                         (Supported by API versions '2.10' - '2.latest')

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

Hi yong sheng:

I face the same issue, and draft a blueprint a week ago to add the support, but osc have to call the Nova micro version API to make the new options available, i need to talk with osc core team about how to implement it.

Dean Troyer (dtroyer)
Changed in python-openstackclient:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
David Rabel (rabel-b1) wrote :

I would like to implement this, but I think we would need microversions in OSC first.

Changed in python-openstackclient:
assignee: nobody → David Rabel (rabel-b1)
David Rabel (rabel-b1)
Changed in python-openstackclient:
assignee: David Rabel (rabel-b1) → nobody
M V P Nitesh (m-nitesh)
Changed in python-openstackclient:
assignee: nobody → M V P Nitesh (m-nitesh)
Revision history for this message
Gaëtan Trellu (goldyfruit) wrote :

Any update about this ?
Octavia needs a SSH key in the service tenant.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers