replace-osd action does not work

Bug #1696958 reported by Sandor Zeestraten
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph OSD Charm
Fix Released
Medium
Billy Olsen

Bug Description

# Issue
Tried to use the replace-osd action to replace a failed disk, but it fails.

# Command
juju run-action ceph-osd/8 replace-osd osd-number=239 replacement-device=/dev/sdz

# Error log from unit-ceph-osd-8.log
2017-06-09 09:34:50 INFO replace-osd Traceback (most recent call last):
2017-06-09 09:34:50 INFO replace-osd File "/var/lib/juju/agents/unit-ceph-osd-8/charm/actions/replace-osd", line 24, in <module>
2017-06-09 09:34:50 INFO replace-osd import ceph
2017-06-09 09:34:50 INFO replace-osd ImportError: No module named ceph

# Juju/Charm/Ceph version
juju:~$ juju status ceph-osd
Model Controller Cloud/Region Version
openstack prodcont1 prodmaas 2.1.2

App Version Status Scale Charm Store Rev OS Notes
ceph-osd 10.2.6 active 11 ceph-osd jujucharms 241 ubuntu

Changed in charm-ceph-osd:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Billy Olsen (billy-olsen)
milestone: none → 17.08
tags: added: backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-osd (master)

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

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

Reviewed: https://review.openstack.org/472774
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-osd/commit/?id=26afba1c3fa97a9af75ca13b954e77dc3153d083
Submitter: Jenkins
Branch: master

commit 26afba1c3fa97a9af75ca13b954e77dc3153d083
Author: Billy Olsen <email address hidden>
Date: Fri Jun 9 11:38:48 2017 -0700

    Add lib folder to system path for replace_osd action

    The replace_osd action fails to run because the ceph import cannot
    be resolved without the lib folder existing in the system path.

    Change-Id: If85a3ac7edbb22abf11cff5429e6820322ded898
    Closes-Bug: #1696958

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

Fix proposed to branch: stable/17.02
Review: https://review.openstack.org/472871

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

Reviewed: https://review.openstack.org/472871
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-osd/commit/?id=8f56f2cd8bde0e1825c31d3b1b21072dcb3c5b49
Submitter: Jenkins
Branch: stable/17.02

commit 8f56f2cd8bde0e1825c31d3b1b21072dcb3c5b49
Author: Billy Olsen <email address hidden>
Date: Fri Jun 9 11:38:48 2017 -0700

    Add lib folder to system path for replace_osd action

    The replace_osd action fails to run because the ceph import cannot
    be resolved without the lib folder existing in the system path.

    Change-Id: If85a3ac7edbb22abf11cff5429e6820322ded898
    Closes-Bug: #1696958
    (cherry picked from commit 26afba1c3fa97a9af75ca13b954e77dc3153d083)

James Page (james-page)
Changed in charm-ceph-osd:
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.