Bug 1922135

Summary: Ceph Dashboard deployment fails when the ac-user-create command is run
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Francesco Pantano <fpantano>
Component: Ceph-AnsibleAssignee: Dimitri Savineau <dsavinea>
Status: CLOSED DUPLICATE QA Contact: Ameena Suhani S H <amsyedha>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2CC: alfrgarc, anharris, aschoen, ceph-eng-bugs, gfidente, gmeno, johfulto, nthomas, ykaul, yrabl
Target Milestone: ---   
Target Release: 4.2z1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-29 13:46:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1760354    

Description Francesco Pantano 2021-01-29 10:38:15 UTC
Description of problem:

The latest ceph-ansible version(s) (v4.0.41+) fail to configure the ceph dashboard because the ac-user-create tasks returns the following error:

````
2021-01-28 16:42:05,174 p=196552 u=root n=ansible | fatal: [controller-0 -> 192.168.24.36]: FAILED! => {"attempts": 6, "changed": true, "cmd": ["timeout", "--foreground", "-s", "KILL", "10", "podman", "exec", "ceph-mon-controller-0", "ceph", "--cluster", "Monolithic0", "dashboard"
, "ac-user-create", "admin", "uX4bjLHqr2HaXVu86mFDNPfQr"], "delta": "0:00:00.775096", "end": "2021-01-28 16:42:05.147239", "msg": "non-zero return code", "rc": 22, "start": "2021-01-28 16:42:04.372143", "stderr": "Error EINVAL: Please specify the file containing the password/secre
t with \"-i\" option.\nError: non zero exit code: 22: OCI runtime error", "stderr_lines": ["Error EINVAL: Please specify the file containing the password/secret with \"-i\" option.", "Error: non zero exit code: 22: OCI runtime error"], "stdout": "", "stdout_lines": []}
```
Sounds like a new change is introduced via [1] in the attempt of configuring the ceph dashboard user/psw with the new approach described in [2].


[1] https://github.com/ceph/ceph-ansible/commit/07d21604213e265717bc063d0e33a28cc12d2f89
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1915506


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: