]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: add missing parameter in `ceph_cmd`
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 1 Mar 2021 14:22:22 +0000 (15:22 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 12 Mar 2021 08:38:46 +0000 (09:38 +0100)
the `ceph_cmd` fact is missing the `--net=host` parameter.

Some tasks consuming this fact can fail like following:

```
Error: error configuring network namespace for container b8ec913db1fb694ae683faf202680de7a59c714a004e533aba87e8503d29261f: Missing CNI default network
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1931365
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit f143b1a6478bffe0e7ff1c23810d0a5368cf3592)

roles/ceph-dashboard/tasks/configure_dashboard.yml

index b4f6ce37b8fb9bdfd75aeae05ff8ce7d5da1fe7b..7e937bfbf8921c1dd4733195badfb983c4a7b4e7 100644 (file)
@@ -6,7 +6,7 @@
 
 - name: set_fact container_run_cmd
   set_fact:
-    ceph_cmd: "{{ hostvars[groups[mon_group_name][0]]['container_binary'] + ' run --interactive --rm -v /etc/ceph:/etc/ceph:z --entrypoint=ceph ' + ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else 'ceph' }}"
+    ceph_cmd: "{{ hostvars[groups[mon_group_name][0]]['container_binary'] + ' run --interactive --net=host --rm -v /etc/ceph:/etc/ceph:z --entrypoint=ceph ' + ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else 'ceph' }}"
 
 - name: disable SSL for dashboard
   when: dashboard_protocol == "http"