ceph-ansible/roles
Dimitri Savineau c90f605b51 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>
2019-07-03 09:30:33 +02:00
..
ceph-client ansible: use 'bool' filter on boolean conditionals 2019-06-06 10:21:17 +02:00
ceph-common Change ansible_lsb by ansible_distribution_release 2019-06-21 11:55:05 -04:00
ceph-config Add radosgw_frontend_ssl_certificate parameter 2019-07-02 14:14:37 -04:00
ceph-container-common ansible: use 'bool' filter on boolean conditionals 2019-06-06 10:21:17 +02:00
ceph-container-engine ansible: use 'bool' filter on boolean conditionals 2019-06-06 10:21:17 +02:00
ceph-dashboard dashboard: fix dashboard_url setting 2019-06-12 15:59:58 +02:00
ceph-defaults Add radosgw_frontend_ssl_certificate parameter 2019-07-02 14:14:37 -04:00
ceph-facts Set grafana_server_addr fact for ipv6 scenarios. 2019-06-26 15:47:22 +02:00
ceph-fetch-keys meta: set the right minimum ansible version required for galaxy 2018-12-11 09:59:25 +01:00
ceph-grafana dashboard: add allow_embedding support 2019-06-12 16:00:32 +02:00
ceph-handler ceph-handler: Fix rgw socket in restart script 2019-07-03 09:30:33 +02:00
ceph-infra ceph-infra: make chronyd default NTP daemon 2019-06-13 14:53:22 -04:00
ceph-iscsi-gw containers: improve logging 2019-06-28 13:30:36 -04:00
ceph-mds containers: improve logging 2019-06-28 13:30:36 -04:00
ceph-mgr containers: improve logging 2019-06-28 13:30:36 -04:00
ceph-mon containers: improve logging 2019-06-28 13:30:36 -04:00
ceph-nfs nfs: clean template 2019-06-28 15:09:19 -04:00
ceph-node-exporter ceph-node-exporter: Fix systemd template 2019-06-11 21:48:40 +02:00
ceph-osd containers: improve logging 2019-06-28 13:30:36 -04:00
ceph-prometheus Fix units and add ability to have a dedicated instance 2019-06-10 18:18:46 +02:00
ceph-rbd-mirror containers: improve logging 2019-06-28 13:30:36 -04:00
ceph-rgw Add radosgw_frontend_ssl_certificate parameter 2019-07-02 14:14:37 -04:00
ceph-rgw-loadbalancer Add role definitions of ceph-rgw-loadbalancer 2019-06-06 17:12:04 +02:00
ceph-validate validate: fail in check_devices at the right task 2019-06-07 16:14:18 +02:00