Comment 0 for bug 2025292

Revision history for this message
Manoel Benedito Neto (mbenedit) wrote : Failure when bootstrapping a new subcloud with complex password

Brief Description
-----------------
Subcloud bootstrap is failing due to missing single quotes '' around the ${admin_password} at keystone bootstrap stage.

When /usr/local/bin/set_keystone_user_option.sh script is called with quote enclosed password, the execution exits with no failures.

manual_run
root@controller-0:~# /usr/local/bin/set_keystone_user_option.sh admin 'VtRx4qtiQm0TcVUNnjW1pDd(' http://localhost:5000/v3 admin ignore_lockout_failure_attempts true

{"user": {"email": "admin@localhost", "id": "a8e1eba681ba4647b9e46cd78eb0f032", "name": "admin", "domain_id": "default", "enabled": true, "password_expires_at": null, "extra": {"email": "admin@localhost"}, "options": {"ignore_lockout_failure_attempts": true}, "links": {"self": "http://localhost:5000/v3/users/a8e1eba681ba4647b9e46cd78eb0f032"}}}

Severity
--------
Critical: Bootstrapping fails

Steps to Reproduce
------------------
Bootstrapping a new sub-cloud with complex password.

Expected Behavior
----------------
Successful bootstrapping

Actual Behavior
--------------
Bootstrapping fails

Reproducibility
---------------
100% reproducible

System Configuration
--------------------
Distributed Cloud 22.12 SW Version

Last Pass
---------
N/A

Timestamp/Logs
--------------
/var/log/puppet/latest/puppet.log

root@controller-0:~# /usr/local/bin/set_keystone_user_option.sh admin VtRx4qtiQm0TcVUNnjW1pDd( http://localhost:5000/v3 admin ignore_lockout_failure_attempts true
-bash: syntax error near unexpected token `('

Alarms
------
N/A

Test Activity
-------------
Others

Workaround
----------
Workaround is to use a password that doesn't need to be escaped.