Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc bug - Postgres password requirements #2386

Open
jshawdell opened this issue Dec 2, 2024 · 2 comments
Open

doc bug - Postgres password requirements #2386

jshawdell opened this issue Dec 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jshawdell
Copy link

Describe the bug
During deployment of (v1.6.1-4-g9eb3885b), I ran into an issue where the postgres password was configured with 8 characters ending with a "!"

We ran into the following errors when running discovery_provision:

TASK [discovery/roles/discovery_validations/common : Assert postgresdb_password] ********************************************************************************
fatal: [localhost]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}

TASK [discovery/roles/discovery_validations/common : Validation check for postgresdb_password] ******************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed. postgresdb_password should contain only alphanumeric characters and minimum length 8 in provision_config_credentials.yml"}

PLAY RECAP ******************************************************************************************************************************************************
localhost : ok=120 changed=13 unreachable=0 failed=1 skipped=56 rescued=1 ignored=0

root@omnia-cp:/git/omnia#

The Documentation on this page suggests that the exclamation point is allowed:
(https://omnia-doc.readthedocs.io/en/latest/InstallationGuides/InstallingProvisionTool/provisionparams.html#) :

Password set for the postgresDB on target nodes during provisioning.
Length >= 8 characters
Password must not contain -,, ‘,”

The error in ansible indicates differently (alphanumeric only):
"Failed. postgresdb_password should contain only alphanumeric characters and minimum length 8 in provision_config_credentials.yml"

The Ask:
I recommend updating the documentation with the proper password requirements for Postgres to prevent errors.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@jshawdell jshawdell added the bug Something isn't working label Dec 2, 2024
@abhishek-sa1
Copy link
Contributor

@jshawdell Omnia support only alphanumeric for postgres password. We will update the documentation as well. Its part of input variable.
image

@abhishek-sa1
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants