]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
mon: enforce mon0 delegation for initial_mon_key register v4.0.0rc9
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 12 Jun 2019 09:38:49 +0000 (11:38 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Jun 2019 05:39:07 +0000 (07:39 +0200)
commitb1a3b6e2f1c56e21c1c20b1c995685b0309dd03c
treed773b46670e54b8fa7a6d65110523e178c86bc70
parentf71e8f249f98377032fac76a02b8c8798303cfa9
mon: enforce mon0 delegation for initial_mon_key register

since this task is designed to be always run on the first monitor, let's
enforce the container name accordingly otherwise it could fail like
following:

```
fatal: [mon1 -> mon0]: FAILED! => changed=true
  cmd:
  - docker
  - exec
  - ceph-mon-mon1
  - ceph
  - --cluster
  - ceph
  - --name
  - mon.
  - -k
  - /var/lib/ceph/mon/ceph-mon0/keyring
  - auth
  - get-key
  - mon.
  delta: '0:00:00.085025'
  end: '2019-06-12 06:12:27.677936'
  msg: non-zero return code
  rc: 1
  start: '2019-06-12 06:12:27.592911'
  stderr: 'Error response from daemon: No such container: ceph-mon-mon1'
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 905c2256bdf16fe19aa6e5ead641a30ee559f27d)
roles/ceph-mon/tasks/deploy_monitors.yml