kolla/docker/rally/extend_start.sh
Dincer Celik 1114859b5c Fixes rally db commands
'rally-manage db' command was deprecated since 0.10.0 [1]. Should use
'rally db' instead.

[1] https://rally.readthedocs.io/en/latest/project_info/release_notes/archive/v0.10.0.html#command-line-interface

Closes-Bug: #1856693

Change-Id: I578f7a6d907d5579180bc64c99c7e6c8edf3afc8
2020-01-13 04:54:12 +03:00

16 lines
427 B
Bash

#!/bin/bash
if [[ ! -d "/var/log/kolla/rally" ]]; then
mkdir -p /var/log/kolla/rally
fi
if [[ $(stat -c %a /var/log/kolla/rally) != "755" ]]; then
chmod 755 /var/log/kolla/rally
fi
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
rally db create || rally db upgrade
exit 0
fi