]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: configure mgr backend before restart
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 26 Jun 2020 17:28:04 +0000 (13:28 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 29 Jun 2020 12:59:01 +0000 (14:59 +0200)
We need to set the mgr dashboard server ip address before restarting the
dashboard module otherwise we can try to bind the dashboard module on an
already used address.
We already do this configuration for the dashboard port value and ssl
setup so we should do the same for server address too.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1851455
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-dashboard/tasks/configure_dashboard.yml

index 19448dec3d150c9ca441fad40c4dbce2e7eabd60..f0e17eea48f8852812c2974c14f9dc8138e99306 100644 (file)
   changed_when: false
   failed_when: false # Do not fail if the option does not exist, it only exists post-14.2.0
 
+- include_tasks: configure_dashboard_backends.yml
+  with_items: '{{ groups[mgr_group_name] | default(groups[mon_group_name]) }}'
+  vars:
+    dashboard_backend: '{{ item }}'
+
 - name: disable mgr dashboard module (restart)
   command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} mgr module disable dashboard"
   delegate_to: "{{ groups[mon_group_name][0] }}"
   changed_when: false
   when: dashboard_frontend_vip is defined and dashboard_frontend_vip |length > 0
 
-- include_tasks: configure_dashboard_backends.yml
-  with_items: '{{ groups[mgr_group_name] | default(groups[mon_group_name]) }}'
-  vars:
-    dashboard_backend: '{{ item }}'
-
 - name: dashboard object gateway management frontend
   when: groups.get(rgw_group_name, []) | length > 0
   block: