Skip to content

Commit

Permalink
Stop the OVN database during the cleanup script
Browse files Browse the repository at this point in the history
Closes-Issue: OSPRH-8118
  • Loading branch information
ralonsoh committed Jul 5, 2024
1 parent 39edd44 commit 76e4107
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/ovndbcluster/bin/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ if [[ "$(hostname)" != "{{ .SERVICE_NAME }}-0" ]]; then
# now that we left, the database file is no longer valid
cleanup_db_file
fi

# Stop the DB server gracefully; this will also end the pod running script.
if [ "$DB_TYPE" == "nb" ]; then
/usr/share/ovn/scripts/ovn-ctl stop_nb_ovsdb
elif [ "$DB_TYPE" == "sb" ]; then
/usr/share/ovn/scripts/ovn-ctl stop_sb_ovsdb
fi

0 comments on commit 76e4107

Please sign in to comment.