Ceph - ansible playbook fails on "TASK [ceph-dashboard : update dashboard admin password] "

Solution Verified - Updated -

Issue

The ansible-playbook TASK fails with :

    dashboard ac-user-set-password <username> :  Set user password from -i <file>
    Error EINVAL: invalid command

Full TASK output:

TASK [ceph-dashboard : update dashboard admin password] **************************************************************************************************************************************************************************************
task path: /usr/share/ceph-ansible/roles/ceph-dashboard/tasks/configure_dashboard.yml:127
Thursday 06 May 2021  10:54:16 -0400 (0:00:26.153)       1:02:29.566 ********** 
FAILED - RETRYING: update dashboard admin password (6 retries left).
FAILED - RETRYING: update dashboard admin password (5 retries left).
FAILED - RETRYING: update dashboard admin password (4 retries left).
FAILED - RETRYING: update dashboard admin password (3 retries left).
FAILED - RETRYING: update dashboard admin password (2 retries left).
FAILED - RETRYING: update dashboard admin password (1 retries left).
fatal: [10.74.177.14 -> 10.74.177.14]: FAILED! => changed=true 
  attempts: 6
  cmd:
  - timeout
  - --foreground
  - -s
  - KILL
  - '10'
  - ceph
  - --cluster
  - ceph
  - dashboard
  - ac-user-set-password
  - admin
  - p@ssw0rd
  delta: '0:00:00.580026'
  end: '2021-05-06 10:54:53.869808'
  msg: non-zero return code
  rc: 22
  start: '2021-05-06 10:54:53.289782'
  stderr: |-
    Invalid command: unused arguments: ['p@ssw0rd']
    dashboard ac-user-set-password <username> :  Set user password from -i <file>
    Error EINVAL: invalid command
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

Environment

Red Hat Ceph Storage 4.2z1 - 14.2.11-147
with ceph-ansible-4.0.41-1 or older

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