Pin version of virtualbmc in devstack plugin

Virtualbmc is absent from global requirements and upper constraints,
but it depends on pyghmi which is in those requirements.

With new releases of virtualbmc it might lead to newer version of
virtualbmc installed together with old, unsupported by it version of
pyghmi, breaking vbmc functionality.

Until virtualbmc is introduced into g-r and u-c, let's pin the version
of installed virtualbmc to the latest one that existed at the time when
the stable branch was created (0.0.4 for stable/mitaka).

Change-Id: Ic964f0dda043f927547962dd8fd78cb11b4f7064
This commit is contained in:
Pavlo Shchelokovskyy 2017-03-02 12:02:00 +02:00
parent 7e350c869a
commit fdd01ca736
1 changed files with 4 additions and 1 deletions

View File

@ -249,7 +249,10 @@ function install_ironic {
fi
if is_deployed_by_ipmitool && [[ "$IRONIC_IS_HARDWARE" == "False" ]]; then
pip_install "virtualbmc"
# NOTE(pas-ha) as virtualbmc is not in the global requiremets
# and upper constraints, but depends on pyghmi which is in gr and uc,
# we better pin the version for now
pip_install "virtualbmc==0.0.4"
if [[ ! -d $(dirname $IRONIC_VBMC_CONFIG_FILE) ]]; then
mkdir -p $(dirname $IRONIC_VBMC_CONFIG_FILE)