Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
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
.github/ISSUE_TEMPLATE Update issue templates 2018-07-12 14:10:15 +02:00
contrib docker-common: rename role 2018-11-12 10:51:48 +01:00
docs docs: Update ceph.conf supported section 2019-04-15 07:11:46 +00:00
group_vars update: refact msgr2 migration 2019-04-18 19:10:10 +02:00
infrastructure-playbooks update: set osd flags before upgrading any mon 2019-04-18 19:10:10 +02:00
library ceph_key: `lookup_ceph_initial_entities` shouldn't fail on update 2019-03-25 16:02:56 -04:00
plugins plugin: validate.py do not check osd_scenario 2019-04-12 00:45:21 +00:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles update: refact msgr2 migration 2019-04-18 19:10:10 +02:00
tests test_mons: test mon listening on port 3300 2019-04-18 09:28:23 +02:00
.gitignore repo: update gitignore file 2019-02-06 15:06:27 +00:00
.mergify.yml mergify: need 2 approvals to merge a 'skip ci' PR 2019-02-28 13:07:51 +01:00
.travis.yml travis: Remove galaxy lint rules repository 2019-03-26 11:08:38 +00:00
CONTRIBUTING.md CONTRIBUTING: add more guiline for backport 2018-12-20 14:34:17 +00:00
LICENSE Add Ceph Playbook 2014-03-03 19:08:51 +01:00
Makefile makefile: change distro to el8 2019-02-20 08:10:30 +00:00
README-MULTISITE.md rgw multisite: add more than 1 rgw to the master or secondary zone 2019-04-07 10:00:18 +00:00
README.rst Update Documentation example link to 3.0 2018-02-07 16:34:45 +01:00
Vagrantfile osd: remove variable osd_scenario 2019-04-12 00:45:21 +00:00
ansible.cfg ansible.cfg: Add library path to configuration 2019-02-18 19:52:50 +01:00
ceph-ansible.spec.in rpm: add RHEL 8 + Fedora support 2019-02-20 08:10:30 +00:00
dummy-ansible-hosts Fix Travis 2015-01-21 16:33:26 +01:00
generate_group_vars_sample.sh docker-common: rename role 2018-11-12 10:51:48 +01:00
raw_install_python.yml common: fix retry on raw install python for rhel 2019-02-25 10:05:34 +00:00
requirements.txt tests: test master against ansible 2.7 2018-10-30 17:07:05 +01:00
rhcs_edits.txt Remove trailing forward slash in ceph_docker_registry variable from group_vars/rhcs.yml.sample file. 2019-03-19 13:15:59 +00:00
site-container.yml.sample Revert "site.yml: run ceph-validate before facts/defaults roles" 2019-03-15 16:17:15 +00:00
site-docker.yml.sample site: symlink site-docker to site-container 2018-11-27 16:47:40 +00:00
site.yml.sample Revert "site.yml: run ceph-validate before facts/defaults roles" 2019-03-15 16:17:15 +00:00
test.yml Remove spurious ceph. prefix for roles path in test.yml 2019-01-11 11:10:52 +01:00
tox-update.ini tests: pass osd_scenario value to lvm_setup.yml 2019-04-12 00:45:21 +00:00
tox.ini allow adding a monitor to a deployed cluster 2019-04-16 11:14:21 +02:00
vagrant_variables.yml.sample Revert "tests: add ubuntu bionic support" 2019-02-22 16:24:18 +01:00

README.rst

ceph-ansible
============
Ansible playbooks for Ceph, the distributed filesystem.

Please refer to our hosted documentation here: http://docs.ceph.com/ceph-ansible/master/

You can view documentation for our ``stable-*`` branches by substituting ``master`` in the link
above for the name of the branch. For example: http://docs.ceph.com/ceph-ansible/stable-3.0/