py3.5:Workaround fix for forcing virtualbmc installation with pip2

The IPMI commands fail for virtualbmc. This is a workaround
fix to enforce virtualbmc to be installed in python2 as
pyghmi is not ready for python3.5 yet.

Related-Bug: 1696736

Change-Id: Ie4ca923ef0b8363d2f016ebc5be4b2512d3b9a1a
This commit is contained in:
Nisha Agarwal 2017-06-13 16:51:19 +00:00
parent e003b071f3
commit 57e8186d30

View File

@ -661,7 +661,10 @@ function setup_virtualbmc {
git_clone_by_name "virtualbmc"
setup_dev_lib "virtualbmc"
else
pip_install_gr "virtualbmc"
# pyghmi is still not compatible with python3
# hence we need to install virtualbmc in python2
# environment else IPMI calls will fail at the gate.
USE_PYTHON3=False pip_install_gr "virtualbmc"
fi
if [[ ! -d $(dirname $IRONIC_VBMC_CONFIG_FILE) ]]; then