"ImportError: No module named passlib.hash"; HTTP error 403 while getting ipaddr from googledrive.com

Bug #1277507 reported by Davanum Srinivas (DIMS)
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Invalid
Undecided
Unassigned
OpenStack Identity (keystone)
Invalid
Undecided
Unassigned
devstack
Invalid
Undecided
Unassigned
gantt
New
Undecided
Unassigned
oslo-incubator
Invalid
Undecided
Unassigned
python-keystoneclient
Invalid
Undecided
Unassigned
zaqar
Invalid
Undecided
Unassigned

Bug Description

Example from http://logs.openstack.org/99/69799/9/gate/gate-tempest-dsvm-full/ca0c1b3/console.html

2014-02-06 20:20:45.531 | 2014-02-06 20:20:45 File "/opt/stack/new/keystone/bin/keystone-manage", line 37, in <module>
2014-02-06 20:20:45.532 | 2014-02-06 20:20:45 from keystone import cli
2014-02-06 20:20:45.534 | 2014-02-06 20:20:45 File "/opt/stack/new/keystone/keystone/cli.py", line 26, in <module>
2014-02-06 20:20:45.535 | 2014-02-06 20:20:45 from keystone.common import openssl
2014-02-06 20:20:45.537 | 2014-02-06 20:20:45 File "/opt/stack/new/keystone/keystone/common/openssl.py", line 21, in <module>
2014-02-06 20:20:45.539 | 2014-02-06 20:20:45 from keystone.common import utils
2014-02-06 20:20:45.540 | 2014-02-06 20:20:45 File "/opt/stack/new/keystone/keystone/common/utils.py", line 28, in <module>
2014-02-06 20:20:45.543 | 2014-02-06 20:20:45 import passlib.hash
2014-02-06 20:20:45.543 | 2014-02-06 20:20:45 ImportError: No module named passlib.hash
2014-02-06 20:20:45.545 | 2014-02-06 20:20:45 + [[ PKI == \P\K\I ]]
2014-02-06 20:20:45.571 | 2014-02-06 20:20:45 + rm -rf /etc/keystone/ssl
2014-02-06 20:20:45.572 | 2014-02-06 20:20:45 + /opt/stack/new/keystone/bin/keystone-manage pki_setup
2014-02-06 20:20:45.573 | 2014-02-06 20:20:45 Traceback (most recent call last):
2014-02-06 20:20:45.573 | 2014-02-06 20:20:45 File "/opt/stack/new/keystone/bin/keystone-manage", line 37, in <module>
2014-02-06 20:20:45.573 | 2014-02-06 20:20:45 from keystone import cli
2014-02-06 20:20:45.574 | 2014-02-06 20:20:45 File "/opt/stack/new/keystone/keystone/cli.py", line 26, in <module>
2014-02-06 20:20:45.574 | 2014-02-06 20:20:45 from keystone.common import openssl
2014-02-06 20:20:45.574 | 2014-02-06 20:20:45 File "/opt/stack/new/keystone/keystone/common/openssl.py", line 21, in <module>
2014-02-06 20:20:45.575 | 2014-02-06 20:20:45 from keystone.common import utils
2014-02-06 20:20:45.577 | 2014-02-06 20:20:45 File "/opt/stack/new/keystone/keystone/common/utils.py", line 28, in <module>
2014-02-06 20:20:45.577 | 2014-02-06 20:20:45 import passlib.hash
2014-02-06 20:20:45.578 | 2014-02-06 20:20:45 ImportError: No module named passlib.hash

Tags: gate-failure
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

logstash query -
"ImportError: No module named passlib.hash"

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

probably triggered by
https://github.com/openstack/requirements/commit/a13ec8a6f45a633d0ad204977ad5e43f33f545b3

Merge "Update python-keystoneclient to 0.5.0"

tags: added: gate-failure
Revision history for this message
Dolph Mathews (dolph) wrote :

Definitely a valid issue somewhere (I've seen pop up and disappear before), but I don't think this has anything to do with keystoneclient 0.5.0, which was released 4 days ago, and had no change in requirements related to passlib when compared to 0.4.x

Revision history for this message
Dolph Mathews (dolph) wrote :

So, this has nothing to do with passlib... passlib just happens to be the first-to-be-imported of many pypi packages that are not installed due to:

From a successful job: http://logs.openstack.org/36/62036/7/gate/gate-tempest-dsvm-full/3549a1d/console.html

2014-02-07 03:20:01.340 | 2014-02-07 03:20:01 Downloading/unpacking ipaddr (from WSME>=0.5b6->keystone==2014.1.dev171.gc213d9e)
2014-02-07 03:20:01.340 | 2014-02-07 03:20:01 Downloading ipaddr-2.1.10.tar.gz
2014-02-07 03:20:01.341 | 2014-02-07 03:20:01 Storing download in cache at /var/cache/pip/http%3A%2F%2Fpypi.openstack.org%2Fopenstack%2Fipaddr%2Fipaddr-2.1.10.tar.gz
2014-02-07 03:20:01.341 | 2014-02-07 03:20:01 Running setup.py egg_info for package ipaddr

From a failed job: http://logs.openstack.org/99/69799/9/gate/gate-tempest-dsvm-full/ca0c1b3/console.html

2014-02-06 20:18:22.509 | 2014-02-06 20:18:22 Downloading/unpacking ipaddr (from WSME>=0.5b6->keystone==2014.1.dev169.g0ed6d48)
2014-02-06 20:18:22.510 | 2014-02-06 20:18:22 You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files.
2014-02-06 20:18:22.512 | 2014-02-06 20:18:22 HTTP error 403 while getting https://googledrive.com/host/0Bwh63zyus-UlZ1dxQ08zczVRbXc/ipaddr-2.1.11.tar.gz (from http://code.google.com/p/ipaddr-py/)
2014-02-06 20:18:22.513 | 2014-02-06 20:18:22 Could not install requirement ipaddr (from WSME>=0.5b6->keystone==2014.1.dev169.g0ed6d48) because of error HTTP Error 403: Forbidden
2014-02-06 20:18:22.514 | 2014-02-06 20:18:22 Cleaning up...
2014-02-06 20:18:22.516 | 2014-02-06 20:18:22 Could not install requirement ipaddr (from WSME>=0.5b6->keystone==2014.1.dev169.g0ed6d48) because of HTTP error HTTP Error 403: Forbidden for URL https://googledrive.com/host/0Bwh63zyus-UlZ1dxQ08zczVRbXc/ipaddr-2.1.11.tar.gz (from http://code.google.com/p/ipaddr-py/)
2014-02-06 20:18:22.517 | 2014-02-06 20:18:22 Storing complete log in /opt/stack/new/.pip/pip.log

Changed in python-keystoneclient:
status: New → Invalid
Changed in keystone:
status: New → Invalid
Revision history for this message
Jeremy Stanley (fungi) wrote :

The ipaddr failure seems to have probably been an issue with pypi.python.org. That log is for a change to gantt, which does not currently use the restrictive http://pypi.openstack.org/openstack/ mirror. If it should do so, add it to openstack/requirements:projects.txt (it will also get requirements update proposals this way).

Changed in openstack-ci:
status: New → Invalid
Revision history for this message
Jeremy Stanley (fungi) wrote :

The other example pointed out was for a marconi change, which similarly doesn't participate in the mirror yet.

Revision history for this message
Jeremy Stanley (fungi) wrote :

And oslo.version too, it seems.

Dolph Mathews (dolph)
summary: - "ImportError: No module named passlib.hash"
+ "ImportError: No module named passlib.hash"; HTTP error 403 while
+ getting ipaddr from googledrive.com
Revision history for this message
Dolph Mathews (dolph) wrote :
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

The ipaddr author has uploaded a package to PyPI. https://groups.google.com/forum/#!topic/ipaddr-py-dev/T8jV4csZUE4

Changed in oslo:
status: New → Invalid
Revision history for this message
Liang Zhou (brightconan) wrote :

Per above comments, guess now the workaround is to install ipaddr manually, right?

Revision history for this message
Liang Zhou (brightconan) wrote :

Hi, I've tried "pip install ipaddr" after this bug occurs. Then I re-run devstack.sh, it seems OK now. Just a temporary workaround.

Kurt Griffiths (kgriffs)
Changed in marconi:
status: New → Invalid
Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.