Skip to content

Commit

Permalink
Reset connection when turning off TLS
Browse files Browse the repository at this point in the history
Jira: OSPRH-10415
  • Loading branch information
olliewalsh committed Sep 27, 2024
1 parent 577feca commit ad6e4d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/ovndbcluster/bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ set "$@" --db-${DB_TYPE}-create-insecure-remote=no
{{- else }}
set "$@" --db-${DB_TYPE}-cluster-local-proto=tcp
set "$@" --db-${DB_TYPE}-cluster-remote-proto=tcp
set "$@" --db-${DB_TYPE}-create-insecure-remote=yes
{{- end }}

# log to console
Expand Down Expand Up @@ -106,8 +107,10 @@ if [[ "$(hostname)" == "{{ .SERVICE_NAME }}-0" ]]; then

{{- if .TLS }}
${CTLCMD} set-ssl {{.OVNDB_KEY_PATH}} {{.OVNDB_CERT_PATH}} {{.OVNDB_CACERT_PATH}}
${CTLCMD} set-connection ${DB_SCHEME}:${DB_PORT}:${DB_ADDR}
{{- else }}
${CTLCMD} del-ssl
{{- end }}
${CTLCMD} set-connection ${DB_SCHEME}:${DB_PORT}:${DB_ADDR}

# OVN does not support setting inactivity-probe through --remote cli arg so
# we have to set it after database is up.
Expand Down

0 comments on commit ad6e4d4

Please sign in to comment.