]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
update: reset mon_host after mons upgrade
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 27 Sep 2019 14:24:58 +0000 (16:24 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Sat, 28 Sep 2019 02:37:47 +0000 (04:37 +0200)
commitd84160a170d9d134dc5b7ca246004fbe8a14b7af
treee4ce830ab3432e99554144beb1fe815eda5a3391
parenta1811ca097415990211248648dc3d9480f6841eb
update: reset mon_host after mons upgrade

after all mon are upgraded, let's reset mon_host which is used in the
rest of the playbook for setting `container_exec_cmd` so we are sure to
use the right value.

Typical error:

```
failed: [mds0 -> mon0] (item={u'path': u'/var/lib/ceph/bootstrap-mds/ceph.keyring', u'name': u'client.bootstrap-mds', u'copy_key': True}) => changed=true
  ansible_loop_var: item
  cmd:
  - docker
  - exec
  - ceph-mon-mon2
  - ceph
  - --cluster
  - ceph
  - auth
  - get
  - client.bootstrap-mds
  delta: '0:00:00.016294'
  end: '2019-09-27 13:54:58.828835'
  item:
    copy_key: true
    name: client.bootstrap-mds
    path: /var/lib/ceph/bootstrap-mds/ceph.keyring
  msg: non-zero return code
  rc: 1
  start: '2019-09-27 13:54:58.812541'
  stderr: 'Error response from daemon: No such container: ceph-mon-mon2'
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/rolling_update.yml