Run octavia-db-manage in grenade testing from venv

grenade is going to install and run everything from virtual env

- https://review.opendev.org/c/openstack/grenade/+/930507

octavia-db-manage in octavia grenade job needs to be run accordingly
and not from system level. Otherwise it will fail with below error
- https://zuul.opendev.org/t/openstack/build/5af245a887c3442f8771a21a5ddc146e/log/controller/logs/grenade.sh_log.txt#10442

Change-Id: I01e0fdd58a3b72398484dc01461c1e023832b3a4
This commit is contained in:
Ghanshyam Mann 2024-10-09 19:05:15 -07:00
parent e7b070a139
commit d1bb768220

View File

@ -58,7 +58,7 @@ octavia_install
upgrade_project octavia $RUN_DIR $BASE_DEVSTACK_BRANCH $TARGET_DEVSTACK_BRANCH
# Migrate the database
octavia-db-manage upgrade head || die $LINO "DB migration error"
$OCTAVIA_BIN_DIR/octavia-db-manage upgrade head || die $LINO "DB migration error"
octavia_start