charm upgrade from 18.11 fails with config-change

Bug #1825392 reported by Narinder Gupta
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph RADOS Gateway Charm
Fix Released
Critical
David Ames

Bug Description

2019-04-17 23:36:28 DEBUG upgrade-charm After this operation, 596 kB of additional disk space will be used.
2019-04-17 23:36:28 DEBUG upgrade-charm Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-dnspython all 1.15.0-1 [85.0 kB]
2019-04-17 23:36:28 DEBUG upgrade-charm Fetched 85.0 kB in 1s (163 kB/s)
2019-04-17 23:36:28 DEBUG upgrade-charm Selecting previously unselected package python3-dnspython.
2019-04-17 23:36:28 DEBUG upgrade-charm (Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 44464 files and directories currently installed.)
2019-04-17 23:36:28 DEBUG upgrade-charm Preparing to unpack .../python3-dnspython_1.15.0-1_all.deb ...
2019-04-17 23:36:28 DEBUG upgrade-charm Unpacking python3-dnspython (1.15.0-1) ...
2019-04-17 23:36:28 DEBUG upgrade-charm Setting up python3-dnspython (1.15.0-1) ...
2019-04-17 23:36:30 DEBUG upgrade-charm dpkg-query: package 'python3-pyudev' is not installed and no information is available
2019-04-17 23:36:30 DEBUG upgrade-charm Use dpkg --info (= dpkg-deb --info) to examine archive files,
2019-04-17 23:36:30 DEBUG upgrade-charm and dpkg --contents (= dpkg-deb --contents) to list their contents.
2019-04-17 23:36:30 DEBUG upgrade-charm Reading package lists...
2019-04-17 23:36:30 DEBUG upgrade-charm Building dependency tree...
2019-04-17 23:36:30 DEBUG upgrade-charm Reading state information...
2019-04-17 23:36:31 DEBUG upgrade-charm The following NEW packages will be installed:
2019-04-17 23:36:31 DEBUG upgrade-charm python3-pyudev
2019-04-17 23:36:31 DEBUG upgrade-charm 0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
2019-04-17 23:36:31 DEBUG upgrade-charm Need to get 36.7 kB of archives.
2019-04-17 23:36:31 DEBUG upgrade-charm After this operation, 221 kB of additional disk space will be used.
2019-04-17 23:36:31 DEBUG upgrade-charm Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-pyudev all 0.21.0-1 [36.7 kB]
2019-04-17 23:36:31 DEBUG upgrade-charm Fetched 36.7 kB in 0s (91.0 kB/s)
2019-04-17 23:36:31 DEBUG upgrade-charm Selecting previously unselected package python3-pyudev.
2019-04-17 23:36:31 DEBUG upgrade-charm (Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 44577 files and directories currently installed.)
2019-04-17 23:36:31 DEBUG upgrade-charm Preparing to unpack .../python3-pyudev_0.21.0-1_all.deb ...
2019-04-17 23:36:31 DEBUG upgrade-charm Unpacking python3-pyudev (0.21.0-1) ...
2019-04-17 23:36:32 DEBUG upgrade-charm Setting up python3-pyudev (0.21.0-1) ...
2019-04-17 23:36:33 DEBUG config-changed Traceback (most recent call last):
2019-04-17 23:36:33 DEBUG config-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/config-changed", line 26, in <module>
2019-04-17 23:36:33 DEBUG config-changed import ceph.utils as ceph_utils
2019-04-17 23:36:33 DEBUG config-changed ImportError: bad magic number in 'ceph': b'\x03\xf3\r\n'
2019-04-17 23:36:34 ERROR juju.worker.uniter.operation runhook.go:132 hook "config-changed" failed: exit status 1
2019-04-17 23:36:39 DEBUG config-changed Traceback (most recent call last):
2019-04-17 23:36:39 DEBUG config-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/config-changed", line 26, in <module>
2019-04-17 23:36:39 DEBUG config-changed import ceph.utils as ceph_utils
2019-04-17 23:36:39 DEBUG config-changed ImportError: bad magic number in 'ceph': b'\x03\xf3\r\n'
2019-04-17 23:36:39 ERROR juju.worker.uniter.operation runhook.go:132 hook "config-changed" failed: exit status 1
2019-04-17 23:37:09 DEBUG config-changed Traceback (most recent call last):
2019-04-17 23:37:09 DEBUG config-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/config-changed", line 26, in <module>
2019-04-17 23:37:09 DEBUG config-changed import ceph.utils as ceph_utils
2019-04-17 23:37:09 DEBUG config-changed ImportError: bad magic number in 'ceph': b'\x03\xf3\r\n'

Tags: field-medium
Revision history for this message
Narinder Gupta (narindergupta) wrote :

After removing var/lib/juju/agents/unit-ceph-radosgw-?/charm/hooks/*.pyc issue gets resolves it but it should work out of box.

tags: added: field-medium
David Ames (thedac)
summary: - charm upgrade from 19.01 fails with config-change
+ charm upgrade from 18.11 fails with config-change
Changed in charm-ceph-radosgw:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → David Ames (thedac)
milestone: none → 19.04
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-radosgw (master)

Fix proposed to branch: master
Review: https://review.opendev.org/654018

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

Reviewed: https://review.opendev.org/654018
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-radosgw/commit/?id=3d48451dd773c2d3dd715f2d04f925a978e2096e
Submitter: Zuul
Branch: master

commit 3d48451dd773c2d3dd715f2d04f925a978e2096e
Author: David Ames <email address hidden>
Date: Fri Apr 19 08:32:52 2019 -0700

    Remove old .pyc files

    Avoid Byte code errors: bad magic number in 'ceph': b'\x03\xf3\r\n'

    Change-Id: I156803991b2b3783ef633837a3945f50a86ef0dc
    Closes-Bug: #1825392

Changed in charm-ceph-radosgw:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-radosgw (stable/19.04)

Fix proposed to branch: stable/19.04
Review: https://review.opendev.org/654472

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-radosgw (stable/19.04)

Reviewed: https://review.opendev.org/654472
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-radosgw/commit/?id=3d94154e246752c0c42a337c12206f419d6dda87
Submitter: Zuul
Branch: stable/19.04

commit 3d94154e246752c0c42a337c12206f419d6dda87
Author: David Ames <email address hidden>
Date: Fri Apr 19 08:32:52 2019 -0700

    Remove old .pyc files

    Avoid Byte code errors: bad magic number in 'ceph': b'\x03\xf3\r\n'

    Change-Id: I156803991b2b3783ef633837a3945f50a86ef0dc
    Closes-Bug: #1825392
    (cherry picked from commit 3d48451dd773c2d3dd715f2d04f925a978e2096e)

David Ames (thedac)
Changed in charm-ceph-radosgw:
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.