Replace 'sudo pip install' with pip_install
Configuration of sahara in devstack behind a proxy fails because the installation of "tooz[zookeeker]" does not work. This is because sudo does not preserve environment variables, so pip does not use the configured proxy. Using 'pip_install' instead of 'sudo pip install' should fix this, since 'pip_install' ensures that the environment is preserved. Change-Id: I78d483e86c586846f92bdc7118d495efe7e6df17 Closes-Bug: #1632673
This commit is contained in:
parent
b900c5bf55
commit
f254ad73cb
@ -157,7 +157,7 @@ function configure_sahara {
|
|||||||
# Enable distributed periodic tasks
|
# Enable distributed periodic tasks
|
||||||
iniset $SAHARA_CONF_FILE DEFAULT periodic_coordinator_backend_url\
|
iniset $SAHARA_CONF_FILE DEFAULT periodic_coordinator_backend_url\
|
||||||
$SAHARA_PERIODIC_COORDINATOR_URL
|
$SAHARA_PERIODIC_COORDINATOR_URL
|
||||||
sudo pip install tooz[zookeeper]
|
pip_install tooz[zookeeper]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
recreate_database sahara
|
recreate_database sahara
|
||||||
|
Loading…
Reference in New Issue
Block a user