ceph-ansible/infrastructure-playbooks
Guillaume Abrioux 4a678ac102 update: set osd flags before upgrading any mon
Typical error:

```
failed: [mon0 -> mon2] (item=noout) => changed=true
  cmd:
  - ceph
  - --cluster
  - ceph
  - osd
  - set
  - noout
  delta: '0:00:00.293756'
  end: '2019-04-17 06:31:57.552386'
  item: noout
  msg: non-zero return code
  rc: 1
  start: '2019-04-17 06:31:57.258630'
  stderr: |-
    Traceback (most recent call last):
      File "/bin/ceph", line 1222, in <module>
        retval = main()
      File "/bin/ceph", line 1146, in main
        sigdict = parse_json_funcsigs(outbuf.decode('utf-8'), 'cli')
      File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 788, in parse_json_funcsigs
        cmd['sig'] = parse_funcsig(cmd['sig'])
      File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 728, in parse_funcsig
        raise JsonFormat(s)
    ceph_argparse.JsonFormat: unknown type CephBool
  stderr_lines:
  - 'Traceback (most recent call last):'
  - '  File "/bin/ceph", line 1222, in <module>'
  - '    retval = main()'
  - '  File "/bin/ceph", line 1146, in main'
  - '    sigdict = parse_json_funcsigs(outbuf.decode(''utf-8''), ''cli'')'
  - '  File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 788, in parse_json_funcsigs'
  - '    cmd[''sig''] = parse_funcsig(cmd[''sig''])'
  - '  File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 728, in parse_funcsig'
  - '    raise JsonFormat(s)'
  - 'ceph_argparse.JsonFormat: unknown type CephBool'
  stdout: ''
  stdout_lines: <omitted>
```

Having mixed versions of monitors seems to cause this error.
Moving these tasks before any monitor gets upgraded seems to be enough
to get around this issue.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 543d1e2e41)
2019-04-18 19:10:10 +02:00
..
untested-by-ci Make python print statements python3 compatible 2019-02-01 15:23:27 +00:00
vars osd: remove variable osd_scenario 2019-04-12 00:45:21 +00:00
README.md rolling_update: fix wrong indent 2016-10-26 12:51:08 -05:00
add-mon.yml allow adding a monitor to a deployed cluster 2019-04-16 11:14:21 +02:00
add-osd.yml add-osd.yml: Add become flag for ceph-validate 2019-03-09 05:54:46 +00:00
ansible.cfg Cleanup plugins directories and references 2018-03-14 11:15:39 +01:00
ceph-keys.yml ceph_key: add fetch_initial_keys capability 2018-11-09 12:45:52 +01:00
gather-ceph-logs.yml infra: add a gather-ceph-logs.yml playbook 2018-10-17 13:52:19 +00:00
lv-create.yml osd: remove variable osd_scenario 2019-04-12 00:45:21 +00:00
lv-teardown.yml retry on packages and repositories failures 2018-12-19 14:48:27 +00:00
purge-cluster.yml purge-cluster: remove python-ceph-argparse package 2019-04-15 17:32:22 +02:00
purge-docker-cluster.yml osd: remove variable osd_scenario 2019-04-12 00:45:21 +00:00
purge-iscsi-gateways.yml igw: stop tcmu-runner on iscsi purge 2018-11-09 10:02:16 +01:00
rgw-add-users-buckets.yml Example ceph_add_users_buckets playbook 2018-12-20 14:23:25 +01:00
rgw-standalone.yml don't use private option for import_role 2018-12-04 23:45:59 +00:00
rolling_update.yml update: set osd flags before upgrading any mon 2019-04-18 19:10:10 +02:00
shrink-mon.yml introduce new role ceph-facts 2018-12-12 11:18:01 +01:00
shrink-osd.yml shrink_osd: use cv zap by fsid to remove parts/lvs 2019-01-24 16:34:13 +01:00
storage-inventory.yml playbook: report storage device inventory 2018-12-18 10:51:31 +01:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml switch-from-non-containerized: stop all osds 2019-04-12 00:45:21 +00:00
take-over-existing-cluster.yml use pre_tasks and post_tasks when necessary 2018-12-05 08:17:10 +00:00

README.md

Infrastructure playbooks

This directory contains a variety of playbooks that can be used independently of the Ceph roles we have. They aim to perform infrastructure related tasks that would help use managing a Ceph cluster or performing certain operational tasks.

To use them, you must move them to ceph-ansible's root directory, then run using ansible-playbook <playbook>.