test: gate: Failure: ImportError (cannot import name availability_zones)

Bug #1707194 reported by Tom Barron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-manilaclient
Fix Released
Critical
Tom Barron

Bug Description

Since yesterday (Pike-3 deadline) py27 tests are failing in gate with this traceback:

======================================================================
2017-07-28 10:57:31.483526 | ERROR: Failure: ImportError (cannot import name availability_zones)
2017-07-28 10:57:31.483572 | ----------------------------------------------------------------------
2017-07-28 10:57:31.483604 | Traceback (most recent call last):
2017-07-28 10:57:31.483652 | File "/home/jenkins/workspace/gate-manila-ui-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
2017-07-28 10:57:31.483667 | addr.filename, addr.module)
2017-07-28 10:57:31.483709 | File "/home/jenkins/workspace/gate-manila-ui-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
2017-07-28 10:57:31.483726 | return self.importFromDir(dir_path, fqname)
2017-07-28 10:57:31.483768 | File "/home/jenkins/workspace/gate-manila-ui-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
2017-07-28 10:57:31.483786 | mod = load_module(part_fqname, fh, filename, desc)
2017-07-28 10:57:31.483839 | File "/home/jenkins/workspace/gate-manila-ui-python27-ubuntu-xenial/manila_ui/tests/dashboards/admin/security_services/tests.py", line 23, in <module>
2017-07-28 10:57:31.483957 | from manila_ui.tests.dashboards.project import test_data
2017-07-28 10:57:31.484030 | File "/home/jenkins/workspace/gate-manila-ui-python27-ubuntu-xenial/manila_ui/tests/dashboards/project/test_data.py", line 27, in <module>
2017-07-28 10:57:31.484048 | from manilaclient.v1 import quotas
2017-07-28 10:57:31.484116 | File "/home/jenkins/workspace/gate-manila-ui-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/manilaclient/v1/__init__.py", line 20, in <module>
2017-07-28 10:57:31.484134 | from manilaclient import v2
2017-07-28 10:57:31.484196 | File "/home/jenkins/workspace/gate-manila-ui-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/manilaclient/v2/__init__.py", line 17, in <module>
2017-07-28 10:57:31.484218 | from manilaclient.v2.client import Client # noqa
2017-07-28 10:57:31.484261 | File "/home/jenkins/workspace/gate-manila-ui-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/manilaclient/v2/client.py", line 24, in <module>
2017-07-28 10:57:31.484278 | from manilaclient.v2 import availability_zones
2017-07-28 10:57:31.484295 | ImportError: cannot import name availability_zones

manilaclient.v2.availability_zones.py still exists

Issue appears to be with manilaclient.v2 itself and the ipaddress module required by recent ipv6 work. In local environment, activating virtualenv for .tox/py27 and running python interpreter, I see 'import manilaclient' work but 'import manilaclient.v2' fail with:

 ImportError: No module named ipaddress

Tom Barron (tpb)
Changed in manila-ui:
importance: Undecided → Critical
assignee: nobody → Tom Barron (tpb)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila-ui (master)

Fix proposed to branch: master
Review: https://review.openstack.org/488406

Changed in manila-ui:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila-ui (master)

Change abandoned by Tom Barron (<email address hidden>) on branch: master
Review: https://review.openstack.org/488406
Reason: in favor of https://review.openstack.org/488427

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-manilaclient 1.17.1

This issue was fixed in the openstack/python-manilaclient 1.17.1 release.

Revision history for this message
Luigi Toscano (ltoscano) wrote :

It is really a missing dependency in manilaclient.

affects: manila-ui → python-manilaclient
Revision history for this message
Tom Barron (tpb) wrote :

This was fixed in python-manilaclient 1.17.1

Changed in python-manilaclient:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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