ceph-ansible/infrastructure-playbooks
Guillaume Abrioux 3b2f6c34e4 purge-docker: fix ceph-osd-zap name container
the `zap ceph osd disks` task should iter on `resolved_parent_device`
instead of `combined_devices_list` which contain only the base device
name (vs. full path name in `combined_devices_list`).

this fixes the issue where docker complain about container name because
of illegal characters such as `/` :
```
"/usr/bin/docker-current: Error response from daemon: Invalid container
name (ceph-osd-zap-magna074-/dev/sdb1), only [a-zA-Z0-9][a-zA-Z0-9_.-]
are allowed.","See '/usr/bin/docker-current run --help'."
""
```

having the the basename of the device path is enough for the container
name.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1540137

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2018-02-02 22:09:11 +01:00
..
untested-by-ci syntax: change local_action syntax 2018-01-31 10:45:34 +01:00
README.md rolling_update: fix wrong indent 2016-10-26 12:51:08 -05:00
ansible.cfg Update for infrastructure-playbooks execution 2016-10-26 09:43:37 -07:00
osd-configure.yml infrastructure-playbooks: update with ceph-defaults roles 2017-08-02 17:12:20 +02:00
purge-cluster.yml common: do not use `shell` module when it is not needed 2018-01-31 10:45:34 +01:00
purge-docker-cluster.yml purge-docker: fix ceph-osd-zap name container 2018-02-02 22:09:11 +01:00
purge-iscsi-gateways.yml purge-iscsi: fix group name 2017-10-11 12:52:12 +02:00
rgw-standalone.yml infrastructure-playbooks: update with ceph-defaults roles 2017-08-02 17:12:20 +02:00
rolling_update.yml upgrade: skip luminous tasks for jewel minor update 2018-01-25 18:30:34 +01:00
shrink-mon.yml shrink-mon: fix typo in the code doc 2017-10-27 11:59:22 +02:00
shrink-osd.yml shrink-osd: admin key not needed for container shrink 2017-10-07 00:20:43 +02:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml switch-to-containers: do not fail when stopping the nfs-ganesha service 2018-01-06 14:07:55 +01:00
take-over-existing-cluster.yml infra: fix take-over-existing-cluster.yml playbook 2017-11-06 15:00:30 -08: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>.