Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Dimitri Savineau d4a3e26534 ceph-handler: Fix rgw socket in restart script
Since Mimic the radosgw socket has two extra fields in the socket
name (before the .asok suffix): <pid>.<ctid>

Before:
  /var/run/ceph/ceph-client.rgw.cephaio-1.asok
After:
  /var/run/ceph/ceph-client.rgw.cephaio-1.16913.23928832.asok

The radosgw restart script doesn't handle this and could fail during
an upgrade.
If the SOCKETS variable isn't defined in the script then the test
command won't fail because the return code is 0

$ test -S
$ echo $?
0

There multiple issues in that script:
  - The default SOCKETS value isn't defined due to a typo
SOCKET vs SOCKETS.
  - Because the socket name uses the pid then we need to check the
socket name after the service restart.
  - After restarting the radosgw service we need to wait few seconds
otherwise the socket won't be created.
  - Update the wget parameters because the command is doing a loop.
We now use the same option than curl.
  - The check_rest function doesn't test the radosgw at all due to
a wrong test command (test against a string) and always returns 0.
This needs to use the DOCKER_EXECS variable in order to execute the
command.

$ test 'wget http://192.168.100.11:8080'
$ echo $?
0

Also remove the test based on the ansible_fqdn because we only use
the ansible_hostname + rgw instance name.

Finally group all for loop into a single one.

Resolves: #3926

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit c90f605b51)
2019-07-03 15:08:35 +00:00
.github/ISSUE_TEMPLATE Update issue templates 2018-07-12 14:10:15 +02:00
contrib remove ceph restapi references 2019-06-20 15:15:10 -04:00
docs switch to ansible 2.8 2019-05-21 09:17:46 +02:00
group_vars Add radosgw_frontend_ssl_certificate parameter 2019-07-02 20:13:09 +00:00
infrastructure-playbooks purge: ensure no ceph kernel thread is present 2019-06-24 13:20:50 +02:00
library ceph-volume: Set max open files limit on container 2019-06-20 20:00:53 -04:00
plugins validate.py: Fix alphabetical order on uca 2019-06-26 08:59:57 -04:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles ceph-handler: Fix rgw socket in restart script 2019-07-03 15:08:35 +00:00
tests tests: clean nfs_ganesha variables 2019-06-26 13:13:11 +02:00
.gitignore remove ceph-agent role and references 2019-06-17 15:56:00 -04: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 remove ceph-agent role and references 2019-06-17 15:56:00 -04: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 Fix units and add ability to have a dedicated instance 2019-06-12 11:48:12 +02:00
ansible.cfg tests: Update ansible ssh_args variable 2019-06-17 16:45:38 +02:00
ceph-ansible.spec.in spec: bring back possibility to install ceph with custom repo 2019-06-10 08:10:26 +02:00
dummy-ansible-hosts Fix Travis 2015-01-21 16:33:26 +01:00
generate_group_vars_sample.sh remove ceph-agent role and references 2019-06-17 15:56:00 -04:00
raw_install_python.yml improve coding style 2019-05-06 15:09:06 +00:00
requirements.txt switch to ansible 2.8 2019-05-21 09:17:46 +02:00
rhcs_edits.txt Update RHCS version with Nautilus 2019-05-13 16:23:24 +02:00
site-container.yml.sample Add condition on dashboard installer phase 2019-07-02 10:50:14 +00:00
site-docker.yml.sample site: symlink site-docker to site-container 2018-11-27 16:47:40 +00:00
site.yml.sample Add condition on dashboard installer phase 2019-07-02 10:50:14 +00:00
test.yml Remove spurious ceph. prefix for roles path in test.yml 2019-01-11 11:10:52 +01:00
tox-dashboard.ini tests: Update ansible ssh_args variable 2019-06-17 16:45:38 +02:00
tox-podman.ini tox-podman.ini: add missing reruns option 2019-07-02 09:01:38 -04:00
tox-update.ini tests: Update ansible ssh_args variable 2019-06-17 16:45:38 +02:00
tox.ini tests: Update ansible ssh_args variable 2019-06-17 16:45:38 +02:00
vagrant_variables.yml.sample Fix units and add ability to have a dedicated instance 2019-06-12 11:48:12 +02: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/