Skip to content
Snippets Groups Projects
Commit e207a97f authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix permission denied errors with ping on c8s"

parents 9449bcfb e6cfaee1
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,15 @@ ...@@ -41,6 +41,15 @@
- inventory_hostname not in groups['bifrost'] or - inventory_hostname not in groups['bifrost'] or
hostvars[inventory_hostname]['api_interface'] | replace('-', '_') in hostvars[inventory_hostname].ansible_facts hostvars[inventory_hostname]['api_interface'] | replace('-', '_') in hostvars[inventory_hostname].ansible_facts
- name: Ensure unprivileged users can use ping
become: true
sysctl:
name: net.ipv4.ping_group_range
value: '0 2147483647'
state: present
sysctl_file: "{{ kolla_sysctl_conf_path }}"
when: ansible_facts.os_family == 'RedHat'
# NOTE(osmanlicilegi): The distribution might come with cloud-init installed, and manage_etc_hosts # NOTE(osmanlicilegi): The distribution might come with cloud-init installed, and manage_etc_hosts
# configuration enabled. If so, it will override the file /etc/hosts from cloud-init templates at # configuration enabled. If so, it will override the file /etc/hosts from cloud-init templates at
# every boot, which will break RabbitMQ. To prevent this happens, first we check whether cloud-init # every boot, which will break RabbitMQ. To prevent this happens, first we check whether cloud-init
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
- managed_network_address_family == 'ipv6' - managed_network_address_family == 'ipv6'
- name: Ping across the managed network - name: Ping across the managed network
become: true
vars: vars:
ping_command: "{{ 'ping' if managed_network_address_family == 'ipv4' else 'ping6' }}" ping_command: "{{ 'ping' if managed_network_address_family == 'ipv4' else 'ping6' }}"
command: "{{ ping_command }} -c1 {{ hostvars[item].managed_interface_address }}" command: "{{ ping_command }} -c1 {{ hostvars[item].managed_interface_address }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment