swift version is too low in pypi to enable havana tox

Bug #1289121 reported by ZhiQiang Fan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Medium
ZhiQiang Fan
OpenStack Object Storage (swift)
Invalid
Undecided
Unassigned

Bug Description

when try to backport a patch to havana, I found that stable/havana branch cannot run tox -epy27 successfully

$ tox -epy27
import errors\'tests.objectstore.test_swift_middleware\xca\xc0n\x81', stderr=None
error: testr failed (3)

$ . .tox/py27/bin/activate
$ python
>>> import tests.objectstore.test_swift_middleware
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "tests/objectstore/test_swift_middleware.py", line 27, in <module>
    from ceilometer.objectstore import swift_middleware
  File "ceilometer/objectstore/swift_middleware.py", line 56, in <module>
    from swift.common.middleware.proxy_logging import InputProxy
ImportError: No module named middleware.proxy_logging

$ pip freeze | grep swift
79:python-swiftclient==2.0.3
92:swift==1.0.2

but the jenkins uses http://pypi.openstack.org/openstack and gets
python-swiftclient==2.0.3
swift==1.11.0

so I reinstall the swift package from openstack mirrors and tox can run now

although swift update it release to pypi can solve this problem, I think maybe we should use http://pypi.openstack.org/openstack in tox.ini to align to jenkins, or something similiar will happen again.

Julien Danjou (jdanjou)
Changed in ceilometer:
status: New → Triaged
importance: Undecided → Medium
ZhiQiang Fan (aji-zqfan)
Changed in ceilometer:
assignee: nobody → ZhiQiang Fan (aji-zqfan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

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

Changed in ceilometer:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/83369
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=1c4a7944d003f9d627cece91fa2d2986de2c1d4d
Submitter: Jenkins
Branch: master

commit 1c4a7944d003f9d627cece91fa2d2986de2c1d4d
Author: ZhiQiang Fan <email address hidden>
Date: Thu Mar 27 20:59:09 2014 +0800

    Align to openstack python package index mirror

    Some modules we developed will not be updated to pypi in time, meanwhile,
    jenkins will poll packages from openstack mirror, so it is worth to be
    set as default index in tox.

    User can use -i option in tox cli to change default index server to any
    popular or his favorite.

    Change-Id: I4449f9b6861a327cf2fd888205843b51a57dcd2f
    Closes-Bug: #1289121

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-1 → 2014.2
Revision history for this message
Thiago da Silva (thiagodasilva) wrote :

I'd like to mark this bug as invalid for a few reasons:

- Havana is EOL.
- Swift services are not maintained in pypi any longer, only the swift client.
- The swift ceilometer middleware has moved to a new repo and there are no dependencies on swift that I can find.

Please feel free to re-open this bug if you think it is still valid.

Changed in swift:
status: New → Invalid
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.