-
Notifications
You must be signed in to change notification settings - Fork 23
add playbook with workaround for 'tc mirred to Houston' #1013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+76
−0
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
# When OVS HW offloading is enabled - typically in conjunction with VF-LAG and ASAP^2 | ||
# the DMESG log reports frequent errors on the internal OVS Bridge interface: | ||
# "tc mirred to Houston: device bond0-ovs is down". | ||
# This interface is down by default. The errors are mitigated by bringing the interface up. | ||
# For further context, see: | ||
# https://bugs.launchpad.net/charm-neutron-openvswitch/+bug/1899364 | ||
# https://patchwork.kernel.org/project/netdevbpf/patch/c2ef23da1d9a4eb62f4e7b7c4540f9bafb553c15.1658420239.git.dcaratti@redhat.com/ | ||
# To deploy this playbook, use the following commands: | ||
# kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/fix-houston.yml | ||
# Enable with Kayobe Hooks by running: | ||
# mkdir -p ${KAYOBE_CONFIG_PATH}/hooks/overcloud-service-deploy/post.d | ||
# cd ${KAYOBE_CONFIG_PATH}/hooks/overcloud-service-deploy/post.d | ||
# ln -s ../../../ansible/fix-houston.yml 90-fix-houston.yml | ||
|
||
- name: Create Systemd Unit to workaround 'tc mirred to Houston' error | ||
hosts: network,compute | ||
become: yes | ||
|
||
tasks: | ||
- name: Include kolla-ansible host vars | ||
include_vars: "{{ kolla_config_path }}/inventory/overcloud/host_vars/{{ inventory_hostname }}" | ||
|
||
- name: Create systemd service for -ovs network interface | ||
template: | ||
src: fix-houston-interface.service.j2 | ||
dest: "/etc/systemd/system/fix-houston-{{ item }}.service" | ||
loop: "{{ neutron_bridge_name.split(',') }}" | ||
vars: | ||
interface_name: "{{ item }}" | ||
when: neutron_bridge_name | length > 0 | ||
notify: reload systemd | ||
|
||
- name: Enable and start systemd service for -ovs network interface | ||
systemd: | ||
name: "fix-houston-{{ item }}" | ||
enabled: yes | ||
state: started | ||
when: neutron_bridge_name | length > 0 | ||
loop: "{{ neutron_bridge_name.split(',') }}" | ||
|
||
handlers: | ||
- name: reload systemd | ||
command: systemctl daemon-reload |
20 changes: 20 additions & 0 deletions
20
etc/kayobe/ansible/templates/fix-houston-interface.service.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Unit] | ||
# This service addresses a specific issue when OVS HW offloading is enabled | ||
# typically in conjunction with VF-LAG and ASAP^2 | ||
# the DMESG log reports frequent errors on the internal OVS Bridge interface: | ||
# "tc mirred to Houston: device bond0-ovs is down". | ||
# This interface is down by default. The errors are mitigated by bringing the interface up. | ||
# For further context, see: | ||
# https://bugs.launchpad.net/charm-neutron-openvswitch/+bug/1899364 | ||
# https://patchwork.kernel.org/project/netdevbpf/patch/c2ef23da1d9a4eb62f4e7b7c4540f9bafb553c15.1658420239.git.dcaratti@redhat.com/ | ||
Description=Bring up {{ interface_name }} interface | ||
After=kolla-openvswitch_vswitchd-container.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStartPre=/usr/bin/timeout 60s /bin/bash -c 'until ip link show {{ interface_name }}; do sleep 1; done' | ||
ExecStart=/sbin/ip link set {{ interface_name }} up | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/fix-houston-tc-mirred-bfb16c89f63b472a.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
fixes: | ||
- | | ||
Adds a custom ``fix-houston.yml`` playbook to address dmesg errors, specifically: | ||
"tc mirred to Houston: device bond0-ovs is down". This error typically appears | ||
when OVS HW offloading is enabled, often in conjunction with VF-LAG and ASAP^2. | ||
Detailed usage instructions are provided within the playbook's comments. | ||
Additional context is available at the following links: | ||
`LP#1899364 | ||
<https://bugs.launchpad.net/charm-neutron-openvswitch/+bug/1899364>`__ | ||
`Kernel Patch | ||
<https://patchwork.kernel.org/project/netdevbpf/patch/c2ef23da1d9a4eb62f4e7b7c4540f9bafb553c15.1658420239.git.dcaratti@redhat.com/>`__ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.