liberty - pkg_resources.VersionConflict: (six 1.5.2 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'))

Bug #1501065 reported by Ryan Beisner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
swift-proxy (Juju Charms Collection)
Fix Released
Undecided
Unassigned

Bug Description

Install hook fails on Trusty-Liberty with:

2015-09-29 20:35:11 INFO install Traceback (most recent call last):
2015-09-29 20:35:11 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/install.real", line 525, in <module>
2015-09-29 20:35:11 INFO install main()
2015-09-29 20:35:11 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/install.real", line 519, in main
2015-09-29 20:35:11 INFO install hooks.execute(sys.argv)
2015-09-29 20:35:11 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/charmhelpers/core/hookenv.py", line 704, in execute
2015-09-29 20:35:11 INFO install self._hooks[hook_name]()
2015-09-29 20:35:11 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/install.real", line 118, in install
2015-09-29 20:35:11 INFO install config('min-hours'))
2015-09-29 20:35:11 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/lib/swift_utils.py", line 400, in initialize_ring
2015-09-29 20:35:11 INFO install from swift.common.ring import RingBuilder
2015-09-29 20:35:11 INFO install File "/usr/lib/python2.7/dist-packages/swift/__init__.py", line 27, in <module>
2015-09-29 20:35:11 INFO install pkg_resources.Requirement.parse('swift')).version
2015-09-29 20:35:11 INFO install File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resources.py", line 223, in get_provider
2015-09-29 20:35:11 INFO install return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
2015-09-29 20:35:11 INFO install File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resources.py", line 725, in require
2015-09-29 20:35:11 INFO install needed = self.resolve(parse_requirements(requirements))
2015-09-29 20:35:11 INFO install File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resources.py", line 632, in resolve
2015-09-29 20:35:11 INFO install raise VersionConflict(dist,req) # XXX put more info here
2015-09-29 20:35:11 INFO install pkg_resources.VersionConflict: (six 1.5.2 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'))
2015-09-29 20:35:11 INFO juju.worker.uniter.context context.go:543 handling reboot
2015-09-29 20:35:11 ERROR juju.worker.uniter.operation runhook.go:103 hook "install" failed: exit status 1
2015-09-29 20:35:11 DEBUG juju.worker.uniter modes.go:31 [AGENT-STATUS] failed: run install hook
2015-09-29 20:35:11 INFO juju.worker.uniter modes.go:543 ModeContinue exiting
2015-09-29 20:35:11 INFO juju.worker.uniter modes.go:541 ModeHookError starting

Ryan Beisner (1chb1n)
summary: - pkg_resources.VersionConflict: (six 1.5.2 (/usr/lib/python2.7/dist-
- packages), Requirement.parse('six>=1.9.0'))
+ liberty - pkg_resources.VersionConflict: (six 1.5.2
+ (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'))
Revision history for this message
Ryan Beisner (1chb1n) wrote :

# swift-proxy unit traceback:

2015-10-05 11:15:06 INFO install Traceback (most recent call last):
2015-10-05 11:15:06 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/install.real", line 525, in <module>
2015-10-05 11:15:06 INFO install main()
2015-10-05 11:15:06 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/install.real", line 519, in main
2015-10-05 11:15:06 INFO install hooks.execute(sys.argv)
2015-10-05 11:15:06 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/charmhelpers/core/hookenv.py", line 704, in execute
2015-10-05 11:15:06 INFO install self._hooks[hook_name]()
2015-10-05 11:15:06 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/install.real", line 118, in install
2015-10-05 11:15:06 INFO install config('min-hours'))
2015-10-05 11:15:06 INFO install File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/lib/swift_utils.py", line 400, in initialize_ring
2015-10-05 11:15:06 INFO install from swift.common.ring import RingBuilder
2015-10-05 11:15:06 INFO install File "/usr/lib/python2.7/dist-packages/swift/__init__.py", line 27, in <module>
2015-10-05 11:15:06 INFO install pkg_resources.Requirement.parse('swift')).version
2015-10-05 11:15:06 INFO install File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resources.py", line 223, in get_provider
2015-10-05 11:15:06 INFO install return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
2015-10-05 11:15:06 INFO install File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resources.py", line 725, in require
2015-10-05 11:15:06 INFO install needed = self.resolve(parse_requirements(requirements))
2015-10-05 11:15:06 INFO install File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resources.py", line 632, in resolve
2015-10-05 11:15:06 INFO install raise VersionConflict(dist,req) # XXX put more info here
2015-10-05 11:15:06 INFO install pkg_resources.VersionConflict: (six 1.5.2 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'))

Revision history for this message
Ryan Beisner (1chb1n) wrote :

# juju-deployer fails with
2015-10-05 11:15:08 [DEBUG] deployer.env: Delta unit: swift-proxy/0 change:error
2015-10-05 11:15:08 [DEBUG] deployer.env: Delta unit: nova-compute/2 change:started
2015-10-05 11:15:08 [ERROR] deployer.env: The following units had errors:
   unit: swift-proxy/0: machine: 19 agent-state: error details: hook failed: "install"
2015-10-05 11:15:08 [INFO] deployer.cli: Deployment stopped. run time: 613.49

Revision history for this message
Ryan Beisner (1chb1n) wrote :

# juju stat after trace

http://paste.ubuntu.com/12689643/

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I'm a bit stumped on this. I've tried installing all related packages from the cloud archive (python-netifaces, python-netaddr, python-six, python-setuptools, and more) in the install hook. Interestingly when doing this I've had success manually running the install hook, but haven't had any success on a regular deployment.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

apt_upgrade() prior to the apt_install() calls in the install hook doesn't help either. I have to guess this is a packaging issue.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

And interestingly juju add-unit is successful.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

This appears to be fixed by the following swift-proxy charm commit:

118. By Liam Young 9 hours ago
[james-page, r=gnuoy] Add support for 2.5.0 of swift

Deal with six version change by moving init of rings into config changed, with appropriate check to ensure that rings don't already exist.

Merged branch lp:~james-page/charms/trusty/swift-proxy/2.5.0

Changed in swift-proxy (Juju Charms Collection):
status: New → Fix Committed
Changed in swift-proxy (Juju Charms Collection):
milestone: none → 15.10
status: Fix Committed → 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.