Skip to content

Commit 2d13c0f

Browse files
andrewlee1089Andrew Lee
authored andcommitted
Update start-ic-db.sh to have gen_conn_addr function defined
Else we get log spam of the form: ``` ovn-ic-db-664f8c97bf-qd2gx ovn-ic-db ovsdb-client: failed to connect to "unix:/var/run/openvswitch/db.sock" (No such file or directory) ovn-ic-db-664f8c97bf-qd2gx ovn-ic-db ./start-ic-db.sh: line 44: gen_conn_addr: command not found ovn-ic-db-664f8c97bf-qd2gx ovn-ic-db ovsdb-client: failed to connect to "unix:/var/run/openvswitch/db.sock" (No such file or directory) ovn-ic-db-664f8c97bf-qd2gx ovn-ic-db ./start-ic-db.sh: line 44: gen_conn_addr: command not found ``` Signed-off-by: Andrew Lee <alee@evroc.com>
1 parent 8799331 commit 2d13c0f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dist/images/start-ic-db.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ function gen_conn_str {
5757
echo "$x"
5858
}
5959

60+
function gen_conn_addr {
61+
if [[ "$ENABLE_SSL" == "false" ]]; then
62+
echo "tcp:[$1]:$2"
63+
else
64+
echo "ssl:[$1]:$2"
65+
fi
66+
}
67+
6068
function ovn_db_pre_start() {
6169
local db=""
6270
local port=""

0 commit comments

Comments
 (0)