dell/omnia

doc bug - Postgres password requirements

Opened this issue · 2 comments

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 Omnia support only alphanumeric for postgres password. We will update the documentation as well. Its part of input variable.
image