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>pull/3562/head
parent
cba9b23363
commit
410abd7745
|
@ -25,7 +25,7 @@
|
|||
|
||||
- name: get ceph version
|
||||
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 }}
|
||||
--version
|
||||
changed_when: false
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
|
||||
- name: set_fact ceph-authtool container command
|
||||
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
|
||||
command: >
|
||||
|
|
Loading…
Reference in New Issue