Skip to content

Commit

Permalink
Merge pull request #562 from stackhpc/upstream/yoga-2024-05-06
Browse files Browse the repository at this point in the history
Synchronise yoga with upstream
  • Loading branch information
mnasiadka authored May 6, 2024
2 parents 0e09856 + a89f92e commit d2d91e0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ansible/roles/loadbalancer/tasks/config-host.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---

- name: Check IPv6 support
command: /usr/sbin/sysctl -n net.ipv6.conf.all.disable_ipv6
register: ipv6_disabled
changed_when: false

- name: Setting sysctl values
vars:
should_set: "{{ item.value != 'KOLLA_UNSET' }}"
Expand All @@ -17,6 +23,7 @@
when:
- set_sysctl | bool
- item.value != 'KOLLA_SKIP'
- not ('ipv6' in item.name and ipv6_disabled.stdout | bool)

- name: Load and persist keepalived module
import_role:
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/neutron/tasks/config-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
list |
length > 0
- name: Check IPv6 support
command: /usr/sbin/sysctl -n net.ipv6.conf.all.disable_ipv6
register: ipv6_disabled
changed_when: false

- name: Setting sysctl values
become: true
vars:
Expand All @@ -38,3 +43,4 @@
- set_sysctl | bool
- item.value != 'KOLLA_SKIP'
- (neutron_l3_agent.enabled | bool and neutron_l3_agent.host_in_groups | bool)
- not ('ipv6' in item.name and ipv6_disabled.stdout | bool)
8 changes: 8 additions & 0 deletions releasenotes/notes/bug-1906306-640d5085576656f9.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
fixes:
- |
Add conditionals for IPv6 sysctl settings
that have IPV6 disabled in kernel.
Changing sysctl settings related to IPv6 on those
systems lead to errors.
`LP#1906306 <https://launchpad.net/bugs/1906306>`__

0 comments on commit d2d91e0

Please sign in to comment.