Workaround rhel8,0 iptables bug causing neutron_ovs_agent to restart continuously

On rhel8 the ovs_neutron_agent container endlessly restarts with:

2019-03-05 15:41:57.096 534226 DEBUG oslo_concurrency.lockutils [req-a004e117-dba8-42bf-81fe-abf7a9f2faab - - - - -] Lock "conntrack" released by "neutron.agent.linux.ip_conntrack.get_conntrack" :: held 0.257s inner /usr/lib/python3.6/site-packages/oslo_concurrency/lockutils.py:339
2019-03-05 15:41:57.096 534226 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-a004e117-dba8-42bf-81fe-abf7a9f2faab - - - - -] Exit code: 1; Stdin: ; Stdout: Table `raw' does not exist
; Stderr:  Agent terminated!: neutron_lib.exceptions.ProcessExecutionError: Exit code: 1; Stdin: ; Stdout: Table `raw' does not exist
2019-03-05 15:41:57.098 534226 INFO oslo_rootwrap.client [-] Stopping rootwrap daemon process with pid=534237

This is due to an iptables bug listing tables that were not initialized:
https://bugzilla.redhat.com/show_bug.cgi?id=1673609

Let us just load the raw module by listing it so that the issue does not
appear. Slawomir and I tested this on an environment and could confirm
that the agent does not restart any longer:
[root@undercloud-0 ~]# podman logs neutron_ovs_agent 2>&1|grep -i error
[root@undercloud-0 ~]#

We are leaving these commands running on any OS version as they are
harmless in any case.

Closes-Bug: #1818834

Co-Authored-By: Slawomir Kaplonski <skaplons@redhat.com>

Change-Id: Ifddcec009ae93ad0e51abfe1425eb81c1817db55
This commit is contained in:
Michele Baldessari 2019-03-06 11:53:39 +01:00
parent c94964e45e
commit b1d82e6acb
1 changed files with 4 additions and 0 deletions

View File

@ -352,6 +352,10 @@ outputs:
name: virt_sandbox_use_netlink
persistent: yes
state: yes
- name: Run iptables -t raw -L to workaround a rhel8.0 bug (remove once rhbz#1673609 is fixed)
shell: |
iptables -t raw -nL
ip6tables -t raw -nL
upgrade_tasks:
- when: step|int == 3
block: