charm upgrade from 16.07 to master fails

Bug #1628322 reported by Ryan Beisner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceph (Juju Charms Collection)
Fix Released
High
Chris MacNaughton
ceph-mon (Juju Charms Collection)
Fix Released
High
Chris MacNaughton
ceph-osd (Juju Charms Collection)
Fix Released
High
Chris MacNaughton

Bug Description

Charm upgrade fails from the 16.07 ceph charm version to the next/master ceph charm version https://github.com/openstack/charm-ceph/commit/3a845f6f892d3e09b64ba3741d0fcd8a8190bbc6.

2016-09-27 22:00:20 INFO upgrade-charm Traceback (most recent call last):
2016-09-27 22:00:20 INFO upgrade-charm File "/var/lib/juju/agents/unit-ceph-0/charm/hooks/upgrade-charm", line 22, in <module>
2016-09-27 22:00:20 INFO upgrade-charm from ceph.ceph_broker import (
2016-09-27 22:00:20 INFO upgrade-charm ImportError: No module named ceph_broker

Tags: uosci
Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :

So, this seems to be happily resolved by running: 'rm -rf **/*.pyc'. It looks like python is using the cached version instead of noticing the change and, in the cached version, there's no such thing as ceph.ceph_broker

Changed in ceph (Juju Charms Collection):
status: New → In Progress
Ryan Beisner (1chb1n)
Changed in ceph (Juju Charms Collection):
importance: Undecided → High
assignee: nobody → Chris MacNaughton (chris.macnaughton)
Revision history for this message
Ryan Beisner (1chb1n) wrote :
Changed in ceph (Juju Charms Collection):
status: In Progress → Fix Committed
Ryan Beisner (1chb1n)
Changed in ceph-mon (Juju Charms Collection):
status: New → Fix Committed
assignee: nobody → Chris MacNaughton (chris.macnaughton)
importance: Undecided → High
Changed in ceph (Juju Charms Collection):
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph (master)

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

Ryan Beisner (1chb1n)
Changed in ceph-osd (Juju Charms Collection):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Chris MacNaughton (chris.macnaughton)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph (master)

Reviewed: https://review.openstack.org/381252
Committed: https://git.openstack.org/cgit/openstack/charm-ceph/commit/?id=a62a1e5adbef470c07a869a98e9139881a6d226a
Submitter: Jenkins
Branch: master

commit a62a1e5adbef470c07a869a98e9139881a6d226a
Author: Chris MacNaughton <email address hidden>
Date: Mon Oct 3 13:14:04 2016 -0400

    Remove the compiled python bytecode

    upgrade-charm could previously fail because of compiled bytecode
    remaining behind. This change makes the upgrade-charm hook remove
    any such compiled bytecode files

    Change-Id: I1cb6521cab1ac0d529907d44f1e9bdb313a798ac
    Closes-Bug: 1628322

Changed in ceph (Juju Charms Collection):
status: In Progress → Fix Committed
Changed in ceph-osd (Juju Charms Collection):
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-osd (master)

Reviewed: https://review.openstack.org/381253
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-osd/commit/?id=0dd383d35134bea7b4146fd8277b22ab5d27c2ac
Submitter: Jenkins
Branch: master

commit 0dd383d35134bea7b4146fd8277b22ab5d27c2ac
Author: Chris MacNaughton <email address hidden>
Date: Mon Oct 3 13:16:30 2016 -0400

    Remove the compiled python bytecode

    upgrade-charm could previously fail because of compiled
    bytecode remaining behind. This change makes the upgrade-charm
    hook remove any such compiled bytecode files

    Closes-Bug: 1628322

    Change-Id: I3886b514b47d6fc9fdfb350e2b3a2296472e40f6

James Page (james-page)
Changed in ceph (Juju Charms Collection):
milestone: none → 16.10
Changed in ceph-mon (Juju Charms Collection):
milestone: none → 16.10
Changed in ceph-osd (Juju Charms Collection):
milestone: none → 16.10
Changed in ceph (Juju Charms Collection):
status: Fix Committed → Fix Released
Changed in ceph-osd (Juju Charms Collection):
status: Fix Committed → Fix Released
Changed in ceph-mon (Juju Charms Collection):
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.