swift-proxy - can't find openstack version for package

Bug #1568687 reported by Brad Marshall
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
swift-proxy (Juju Charms Collection)
Invalid
High
Unassigned

Bug Description

Today I redeployed a Trusty Mitaka cloud archive Openstack cloud, and swift-proxy errored out with the following:

2016-04-11 04:09:34 INFO config-changed Traceback (most recent call last):
2016-04-11 04:09:34 INFO config-changed File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/config-changed", line 591, in <module>
2016-04-11 04:09:34 INFO config-changed main()
2016-04-11 04:09:34 INFO config-changed File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/config-changed", line 584, in main
2016-04-11 04:09:34 INFO config-changed hooks.execute(sys.argv)
2016-04-11 04:09:34 INFO config-changed File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/charmhelpers/core/hookenv.py", line 717, in execute
2016-04-11 04:09:34 INFO config-changed self._hooks[hook_name]()
2016-04-11 04:09:34 INFO config-changed File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/charmhelpers/core/host.py", line 435, in wrapped_f
2016-04-11 04:09:34 INFO config-changed f(*args, **kwargs)
2016-04-11 04:09:34 INFO config-changed File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/config-changed", line 142, in config_changed
2016-04-11 04:09:34 INFO config-changed openstack.openstack_upgrade_available('python-swift'):
2016-04-11 04:09:34 INFO config-changed File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 530, in openstack_upgrade_available
2016-04-11 04:09:34 INFO config-changed major_cur_vers = cur_vers.split('.', 1)[0]
2016-04-11 04:09:34 INFO config-changed AttributeError: 'NoneType' object has no attribute 'split'

I'm using swift-proxy charm rev 141, with python-swift version 2.6.0-0ubuntu1~cloud0, and tracing back the code shows that SWIFT_CODENAMES in charmhelpers.contrib.openstack.utils has version for up to 2.5.0, but nothing for 2.6.0.

Please let me know if you have any questions.

Liam Young (gnuoy)
Changed in swift-proxy (Juju Charms Collection):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Liam Young (gnuoy)
milestone: none → 16.04
Revision history for this message
Liam Young (gnuoy) wrote :

It looks like this was fixed on the 11th of March. Could you confirm whether your using a version of the charm that pre-dates this?

Changed in swift-proxy (Juju Charms Collection):
status: Confirmed → Invalid
Revision history for this message
Liam Young (gnuoy) wrote :

I've double checked the trusty/mitaka amulet tests are working too:

$ juju status swift-proxy --format=short

- swift-proxy/0: 10.5.7.64 (started) 8080/tcp

ubuntu@juju-trusty-machine-4:~$ lsb_release -c
Codename: trusty

ubuntu@juju-trusty-machine-4:~$ dpkg -l | grep swift-proxy
ii swift-proxy 2.6.0-0ubuntu1~cloud0 all distributed virtual object store - proxy server

Revision history for this message
Brad Marshall (brad-marshall) wrote :

I am definitely using a version of the charm that predates it, the latest revision of lp:~openstack-charmers/charms/trusty/swift-proxy/next is r141 which was released on the 2nd March. What revision of the charm are you using, and where did you get it from?

Revision history for this message
Brad Marshall (brad-marshall) wrote :

As per our IRC conversation, I grabbed the git charm and did a juju upgrade-charm and it works. So it seems that the charm syncing from github to LP is broken for at least swift-proxy.

Revision history for this message
James Page (james-page) wrote : Re: [Bug 1568687] Re: swift-proxy - can't find openstack version for package

The back port of the swift-proxy charm to bzr currently fails so the bzr
branch is out of date atm - I'd suggest you use the GitHub repositories
directly
On Mon, 11 Apr 2016 at 07:35, Brad Marshall <email address hidden>
wrote:

> I am definitely using a version of the charm that predates it, the
> latest revision of lp:~openstack-charmers/charms/trusty/swift-proxy/next
> is r141 which was released on the 2nd March. What revision of the charm
> are you using, and where did you get it from?
>
> --
> You received this bug notification because you are a member of OpenStack
> Charmers, which is subscribed to swift-proxy in Juju Charms Collection.
> https://bugs.launchpad.net/bugs/1568687
>
> Title:
> swift-proxy - can't find openstack version for package
>
> Status in swift-proxy package in Juju Charms Collection:
> Invalid
>
> Bug description:
> Today I redeployed a Trusty Mitaka cloud archive Openstack cloud, and
> swift-proxy errored out with the following:
>
> 2016-04-11 04:09:34 INFO config-changed Traceback (most recent call
> last):
> 2016-04-11 04:09:34 INFO config-changed File
> "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/config-changed", line
> 591, in <module>
> 2016-04-11 04:09:34 INFO config-changed main()
> 2016-04-11 04:09:34 INFO config-changed File
> "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/config-changed", line
> 584, in main
> 2016-04-11 04:09:34 INFO config-changed hooks.execute(sys.argv)
> 2016-04-11 04:09:34 INFO config-changed File
> "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/charmhelpers/core/hookenv.py",
> line 717, in execute
> 2016-04-11 04:09:34 INFO config-changed self._hooks[hook_name]()
> 2016-04-11 04:09:34 INFO config-changed File
> "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/charmhelpers/core/host.py",
> line 435, in wrapped_f
> 2016-04-11 04:09:34 INFO config-changed f(*args, **kwargs)
> 2016-04-11 04:09:34 INFO config-changed File
> "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/config-changed", line
> 142, in config_changed
> 2016-04-11 04:09:34 INFO config-changed
> openstack.openstack_upgrade_available('python-swift'):
> 2016-04-11 04:09:34 INFO config-changed File
> "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/charmhelpers/contrib/openstack/utils.py",
> line 530, in openstack_upgrade_available
> 2016-04-11 04:09:34 INFO config-changed major_cur_vers =
> cur_vers.split('.', 1)[0]
> 2016-04-11 04:09:34 INFO config-changed AttributeError: 'NoneType'
> object has no attribute 'split'
>
> I'm using swift-proxy charm rev 141, with python-swift version
> 2.6.0-0ubuntu1~cloud0, and tracing back the code shows that
> SWIFT_CODENAMES in charmhelpers.contrib.openstack.utils has version
> for up to 2.5.0, but nothing for 2.6.0.
>
> Please let me know if you have any questions.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/charms/+source/swift-proxy/+bug/1568687/+subscriptions
>

Liam Young (gnuoy)
Changed in swift-proxy (Juju Charms Collection):
assignee: Liam Young (gnuoy) → nobody
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.