Skip to content

Commit ebfc0a7

Browse files
committed
[rally] Fixes Ubuntu binary
This is a follow up for [1]. "rally-manage db" command was deprecated since 0.10.0 but Ubuntu ships 0.9.1 for Bionic. [1] https://bugs.launchpad.net/kolla/+bug/1856693 Closes-Bug: #1872283 Change-Id: I5fb0fc4e6a8bf7ab07abc9c78f0673e3e764b4d1
1 parent e22fb97 commit ebfc0a7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docker/rally/extend_start.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ fi
1010
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
1111
# of the KOLLA_BOOTSTRAP variable being set, including empty.
1212
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
13-
rally db create || rally db upgrade
13+
# NOTE(osmanlicilegi): "rally-manage db" command was deprecated since 0.10.0 but
14+
# Ubuntu ships 0.9.1 for Bionic.
15+
if [[ ${KOLLA_BASE_DISTRO} == "ubuntu" && ${KOLLA_INSTALL_TYPE} == "binary" ]]; then
16+
rally-manage db create || rally-manage db upgrade
17+
else
18+
rally db create || rally db upgrade
19+
fi
1420
exit 0
1521
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes Rally for Ubuntu binary deployment.
5+
`LP#1872283 <https://launchpad.net/bugs/1872283>`__

0 commit comments

Comments
 (0)