openstack CLI does not support OS_PASSWORD containing curly brackets

Bug #1721805 reported by Pierre Riteau
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
New
Undecided
Unassigned

Bug Description

When a user has a password containing curly brackets and specifies it via OS_PASSWORD, the openstack CLI fails with confusing errors:

    $ export OS_PASSWORD='abcd{efgh'
    $ openstack server list
    unmatched '{' in format

    $ export OS_PASSWORD='abcd}efgh'
    $ openstack server list
    Single '}' encountered in format string

    $ export OS_PASSWORD='abcd{}efgh'
    $ openstack server list
    tuple index out of range

    $ openstack --version
    openstack 3.12.0

It works fine if the password is provided via clouds.yaml or when prompted by `openstack` in the absence of the OS_PASSWORD variable.

Pierre Riteau (priteau)
description: updated
description: updated
summary: - openstack CLI does not support passwords with curly brackets
+ openstack CLI does not support OS_PASSWORD containing curly brackets
Revision history for this message
Cory Wright (corywright) wrote :

This is affecting our openstack installation as well.

Revision history for this message
Cory Wright (corywright) wrote :

It fails for us both when passed via the `OS_PASSWORD` environment variable and also when passed via `--os-password` on the command line.

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.