Deployment fails when KeystonePasswordRegex is used

Solution Verified - Updated -

Issue

  • We are trying to implement the password regex pattern by adding KeystonePasswordRegex in deployment templates
parameter_defaults:
  KeystonePasswordRegex: '^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,10}$'
  KeystonePasswordRegexDescription: Passwords must contain at least 1 lowercase letter, 1 uppercase letter, at least 1 digit, and 1 symbol and be a minimum length of 8 characters.
  • When the above setting is included, deployment constantly fails with the below error:
    2022-07-23 13:35:35,966 p=703940 u=mistral n=ansible | 2022-07-23 13:35:35.966436 | 52540090-9f6e-xxxx-xxxx-00000001b0dc |      FATAL | Create admin user | undercloud | error={"changed": false, "extra_data": {"data": null, "details": "The password does not match the requirements: Passwords must contain at least 1 capital letter,1 small letter, 1 digit, 1 special character and be a minimum length of 8 characters..", "response": "{\"error\":{\"code\":400,\"message\":\"The password does not match the requirements: Passwords must contain at least 1 capital letter,1 small letter, 1 digit, 1 special character and be a minimum length of 8 characters..\",\"title\":\"Bad Request\"}}\n"}, "msg": "Error in updating user a4d14d34791f48e49071106e6905fb8e: Client Error for url: https://10.xxx.xx.1x0:13000/v3/users/a4d14d34xxxxx49071106xx905fb8e, The password does not match the requirements: Passwords must contain at least 1 capital letter,1 small letter, 1 digit, 1 special character and be a minimum length of 8 characters.."}

Environment

  • Red Hat OpenStack Platform release 16.2
  • Red Hat Enterprise Linux release 8.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content