Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Guillaume Abrioux 09d795b5b7 tests: add mimic support for test_rbd_mirror_is_up()
prior mimic, the data structure returned by `ceph -s -f json` used to
gather information about rbd-mirror daemons looked like below:

```
  "servicemap": {
    "epoch": 8,
    "modified": "2018-07-05 13:21:06.207483",
    "services": {
      "rbd-mirror": {
        "daemons": {
          "summary": "",
          "ceph-nano-luminous-faa32aebf00b": {
            "start_epoch": 8,
            "start_stamp": "2018-07-05 13:21:04.668450",
            "gid": 14107,
            "addr": "172.17.0.2:0/2229952892",
            "metadata": {
              "arch": "x86_64",
              "ceph_version": "ceph version 12.2.5 (cad919881333ac92274171586c827e01f554a70a) luminous (stable)",
              "cpu": "Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz",
              "distro": "centos",
              "distro_description": "CentOS Linux 7 (Core)",
              "distro_version": "7",
              "hostname": "ceph-nano-luminous-faa32aebf00b",
              "instance_id": "14107",
              "kernel_description": "#1 SMP Wed Mar 14 15:12:16 UTC 2018",
              "kernel_version": "4.9.87-linuxkit-aufs",
              "mem_swap_kb": "1048572",
              "mem_total_kb": "2046652",
              "os": "Linux"
            }
          }
        }
      }
    }
  }
```

This part has changed from mimic and became:
```
  "servicemap": {
    "epoch": 2,
    "modified": "2018-07-04 09:54:36.164786",
    "services": {
      "rbd-mirror": {
        "daemons": {
          "summary": "",
          "14151": {
            "start_epoch": 2,
            "start_stamp": "2018-07-04 09:54:35.541272",
            "gid": 14151,
            "addr": "192.168.1.80:0/240942528",
            "metadata": {
              "arch": "x86_64",
              "ceph_release": "mimic",
              "ceph_version": "ceph version 13.2.0 (79a10589f1f80dfe21e8f9794365ed98143071c4) mimic (stable)",
              "ceph_version_short": "13.2.0",
              "cpu": "Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz",
              "distro": "centos",
              "distro_description": "CentOS Linux 7 (Core)",
              "distro_version": "7",
              "hostname": "ceph-rbd-mirror0",
              "id": "ceph-rbd-mirror0",
              "instance_id": "14151",
              "kernel_description": "#1 SMP Wed May 9 18:05:47 UTC 2018",
              "kernel_version": "3.10.0-862.2.3.el7.x86_64",
              "mem_swap_kb": "1572860",
              "mem_total_kb": "1015548",
              "os": "Linux"
            }
          }
        }
      }
    }
  }
```

This patch modifies the function `test_rbd_mirror_is_up()` in
`test_rbd_mirror.py` so it works with `mimic` and keeps backward compatibility
with `luminous`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2018-07-06 14:39:13 +02:00
contrib contrib: check for lt 3 arguments 2018-05-16 19:03:33 +02:00
docker docker: add README documenting directory purpose 2016-09-21 18:21:50 -04:00
docs docs: make "OSD Configuration" a subsection 2018-07-04 13:05:57 +02:00
group_vars ceph-defaults: add default application to pool 2018-07-02 10:28:34 +00:00
infrastructure-playbooks Rolling upgrades: Migrate to ceph-key module 2018-07-03 18:22:14 +02:00
library library: add a placeholder module for the validate action plugin 2018-05-18 17:58:24 +02:00
plugins Sync config_template with upstream 2018-06-29 09:41:13 +00:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles ceph-config: do not log cluster log on container 2018-07-05 15:11:45 +00:00
tests tests: add mimic support for test_rbd_mirror_is_up() 2018-07-06 14:39:13 +02:00
.gitignore Revert "add .vscode/ to gitignore" 2018-04-27 13:20:04 +02:00
.mergify.yml ci: remove DCO 2018-07-02 16:08:18 +02:00
CONTRIBUTING.md doc: Update CONTRIBUTING.md 2018-06-22 14:48:23 +02:00
LICENSE Add Ceph Playbook 2014-03-03 19:08:51 +01:00
Makefile Makefile: followup on #2585 2018-06-01 12:50:03 +02:00
README-MULTISITE.md Experimental RGW Multisite Support 2016-08-16 14:57:01 -04:00
README.rst Update Documentation example link to 3.0 2018-02-07 16:34:45 +01:00
Vagrantfile ceph-iscsi: rename group iscsi_gws 2018-06-08 10:21:54 +02:00
ansible.cfg tests: increase ssh timeout and retries in ansible.cfg 2018-06-07 18:00:52 +02:00
ceph-aio-no-vagrant.sh osd: simplify scenarios 2017-08-03 10:20:39 +02:00
ceph-ansible.spec.in set the python-notario version to >= 0.0.13 in ceph-ansible.spec.in 2018-05-18 17:58:24 +02:00
dummy-ansible-hosts Fix Travis 2015-01-21 16:33:26 +01:00
example-ansible-role-requirements.yml add a galaxy dependency file example 2016-02-12 15:55:42 +01:00
generate_group_vars_sample.sh contrib: fix generate group_vars samples 2018-06-08 10:21:54 +02:00
monitor_keys_example Add Monitor Keys example 2015-01-30 16:17:46 +01:00
requirements.txt core: make ansible pinning to latest ansible 2.4 2018-06-12 14:26:29 +08:00
rhcs_edits.txt rhcs: bump version to 3.0 for stable 3.1 2018-05-23 14:42:39 -07:00
rundep.sample Allow ceph-ansible to be run on a locally built/installed Ceph 2016-08-12 10:02:15 -04:00
rundep_installer.sh Allow ceph-ansible to be run on a locally built/installed Ceph 2016-08-12 10:02:15 -04:00
site-docker.yml.sample ceph-iscsi: rename group iscsi_gws 2018-06-08 10:21:54 +02:00
site.yml.sample ceph-iscsi: rename group iscsi_gws 2018-06-08 10:21:54 +02:00
test.yml remove rbd-mirror as well from testing. No packages are available yet 2016-04-12 07:38:13 -04:00
tox.ini tests: reduce the amount of time we wait 2018-06-27 10:13:26 +00:00
vagrant_variables.yml.atomic Adding mgr_vms variable 2018-05-17 17:30:27 +02:00
vagrant_variables.yml.linode remove kernel.pid_max 2018-02-23 13:57:57 +01:00
vagrant_variables.yml.openstack vagrantfile: Ensure `devices` variable is a list 2017-07-13 00:44:49 +02:00
vagrant_variables.yml.sample remove kernel.pid_max 2018-02-23 13:57:57 +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/