pip fails to install heat requirements
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Confirmed
|
Critical
|
Jan Provaznik |
Bug Description
Virtualenv newly installs pip 1.5 when installing openstack services in /opt/stack/venvs. Pip 1.5 by default ignores files that does not come from the primary index, then building an image which includes heat fails with this error:
Downloading/
Could not find a version that satisfies the requirement netaddr>=0.7.6 (from -r /opt/stack/
Some externally hosted files were ignored (use --allow-external to allow).
Some insecure and unverifiable files were ignored (use --allow-unverified netaddr to allow).
Cleaning up...
No distributions matching the version for netaddr>=0.7.6 (from -r /opt/stack/
Storing debug log for failure in /root/.pip/pip.log
Quickfix solution might be allow external source for netaddr package:
pip install --allow-unverified netaddr --allow-external netaddr
Changed in tripleo: | |
assignee: | nobody → Jan Provaznik (jan-provaznik) |
This hotfix worked for me: os-svc- install/ bin/os- svc-install b/elements/ os-svc- install/ bin/os- svc-install os-svc- install/ bin/os- svc-install os-svc- install/ bin/os- svc-install
diff --git a/elements/
index 46e42e6..1a7e775 100755
--- a/elements/
+++ b/elements/
@@ -33,7 +33,11 @@ function python-install() {
pip install -U 'setuptools>=1.0'
if [ -n "$reqs" ] ; then
- pip install -r $reqs
+ pip install \
+ --allow-insecure netaddr --allow-external netaddr \
+ --allow-insecure netifaces --allow-external netifaces \
+ --allow-insecure psutil --allow-external psutil \
+ -r $reqs
# FIXME: pip requires doesn't include MySQL-python
pip install MySQL-python
fi
Having whitelisted --allow-external params in os-svc-install script is far from ideal, any other ideas?