ceph-ansible/roles
Dimitri Savineau eb51cc1bb1 dashboard: update layouts before the restart
If the mgr dashboard doesn't restart fast enough then the inject
dashboard task will fail with a HTTP error 400.

Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 914, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/dashboard/module.py", line 450, in handle_command
    push_local_dashboards()
  File "/usr/share/ceph/mgr/dashboard/grafana.py", line 132, in push_local_dashboards
    retry()
  File "/usr/share/ceph/mgr/dashboard/grafana.py", line 89, in call
    result = self.func(*self.args, **self.kwargs)
  File "/usr/share/ceph/mgr/dashboard/grafana.py", line 127, in push
    grafana.push_dashboard(body)
  File "/usr/share/ceph/mgr/dashboard/grafana.py", line 54, in push_dashboard
    response.raise_for_status()
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 834, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 400 Client Error: Bad Request

Instead we can trigger this task before the module restart.

Closes: #4565

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 3f6ff240b7)
2019-10-09 07:24:56 +00:00
..
ceph-client common: improve keyrings generation 2019-10-02 14:34:27 +02:00
ceph-common Revert "ceph-common: install only necesarry ceph-* packages on debian" 2019-09-29 13:28:40 +00:00
ceph-config global: make directories mode parameterizable 2019-08-23 11:39:23 +00:00
ceph-container-common container: Allow to use registry authentication 2019-09-18 23:43:21 +02:00
ceph-container-engine lint: fix error [201,206] 2019-08-30 09:04:00 -04:00
ceph-dashboard dashboard: update layouts before the restart 2019-10-09 07:24:56 +00:00
ceph-defaults ceph-dashboard: remove rgw api host,port,scheme 2019-10-07 10:25:29 -04:00
ceph-facts switch_to_containers: do not re-set `ceph_uid` 2019-10-07 10:18:17 -04: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 grafana dashboard support on Debian based OS 2019-09-27 09:12:39 +02:00
ceph-handler handler: followup on #4519 2019-10-07 09:09:36 +02:00
ceph-infra Support comma-delimited subnets in firewall 2019-09-10 09:34:48 -04:00
ceph-iscsi-gw common: improve keyrings generation 2019-10-02 14:34:27 +02:00
ceph-mds common: improve keyrings generation 2019-10-02 14:34:27 +02:00
ceph-mgr common: improve keyrings generation 2019-10-02 14:34:27 +02:00
ceph-mon container: isolate systemd tasks 2019-10-01 18:50:51 +02:00
ceph-nfs nfs: stop nfs server service in all context 2019-10-07 18:17:49 +02:00
ceph-node-exporter dashboard: remove cfg80211 module installation 2019-07-29 15:46:58 +02:00
ceph-osd common: improve keyrings generation 2019-10-02 14:34:27 +02:00
ceph-prometheus Add http_addr option to grafana config 2019-08-30 09:04:16 -04:00
ceph-rbd-mirror common: improve keyrings generation 2019-10-02 14:34:27 +02:00
ceph-rgw common: improve keyrings generation 2019-10-02 14:34:27 +02:00
ceph-rgw-loadbalancer Add role definitions of ceph-rgw-loadbalancer 2019-06-06 19:44:30 +00:00
ceph-validate validate: fix gpt header check 2019-10-01 13:02:45 -04:00