mirror of https://github.com/ceph/ceph-ansible.git
Fix CNI error when net=host is not used in some podman calls
With 'podman version 1.0.0' on RHEL8 beta the 'get ceph version' and
'ceph monitor mkfs' commands fail [1] with "error configuring network
namespace for container Missing CNI default network".
When net=host is added these errors are resolved. net=host is used in
many other calls (grep -R net=host | wc -l --> 38).
Fixes: #3561
Signed-off-by: John Fulton <fulton@redhat.com>
(cherry picked from commit 410abd7745
)
pull/3571/head
parent
a31058374b
commit
dab3f6ee3f
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
- name: get ceph version
|
- name: get ceph version
|
||||||
command: >
|
command: >
|
||||||
{{ container_binary }} run --rm --entrypoint /usr/bin/ceph
|
{{ container_binary }} run --rm --net=host --entrypoint /usr/bin/ceph
|
||||||
{{ ceph_client_docker_registry }}/{{ ceph_client_docker_image }}:{{ ceph_client_docker_image_tag }}
|
{{ ceph_client_docker_registry }}/{{ ceph_client_docker_image }}:{{ ceph_client_docker_image_tag }}
|
||||||
--version
|
--version
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
|
|
||||||
- name: set_fact ceph-authtool container command
|
- name: set_fact ceph-authtool container command
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_authtool_cmd: "{{ container_binary + ' run --rm -v /var/lib/ceph:/var/lib/ceph:z -v /etc/ceph/:/etc/ceph/:z --entrypoint=ceph-authtool ' + ceph_client_docker_registry + '/' + ceph_client_docker_image + ':' + ceph_client_docker_image_tag if containerized_deployment else 'ceph-authtool' }}"
|
ceph_authtool_cmd: "{{ container_binary + ' run --net=host --rm -v /var/lib/ceph:/var/lib/ceph:z -v /etc/ceph/:/etc/ceph/:z --entrypoint=ceph-authtool ' + ceph_client_docker_registry + '/' + ceph_client_docker_image + ':' + ceph_client_docker_image_tag if containerized_deployment else 'ceph-authtool' }}"
|
||||||
|
|
||||||
- name: import admin keyring into mon keyring
|
- name: import admin keyring into mon keyring
|
||||||
command: >
|
command: >
|
||||||
|
|
Loading…
Reference in New Issue