Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
#!/bin/bash
set -o errexit

bridge=$1
port=$2

ip link show $port
if [[ $? -ne 0 ]]; then
if ! ip link show $port; then
# fail when device doesn't exist
exit 1
fi

ovs-vsctl br-exists $bridge
if [[ $? -eq 2 ]]; then
ovs-vsctl br-exists $bridge || if [[ $? -eq 2 ]]; then
changed=changed
ovs-vsctl --no-wait add-br $bridge
fi
Expand Down
7 changes: 7 additions & 0 deletions releasenotes/notes/bug-1999778.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
fixes:
- |
Fixes an issue where the script ``kolla_ensure_openvswitch_configured`` in
the ``openvswitch-db-server`` image would ignore errors encountered while
configuring bridges and ports.
`LP#1999778 <https://launchpad.net/bugs/1999778>`__