incorrect permissions on /var/lib/ceph/mon/* caused ceph daemon to fail to start after upgrade

Bug #1742083 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Monitor Charm
Fix Released
Critical
James Page
charms.ceph
Fix Released
Critical
James Page

Bug Description

The ceph user does not have write access to mon directories @ Jewel (not sure why); on upgrade to Luminous, the ceph-mon daemons won't start as they need to create new files in the directory.

Tags: upgrade
James Page (james-page)
tags: added: upgrade
Revision history for this message
James Page (james-page) wrote :

The original bootstrap of the ceph-mon daemon creates /var/lib/ceph/mon/ceph-`hostname` with permissions 0555 - this needs to be 0755; can be fixed during upgrade prior to restarting the daemons.

Changed in charm-ceph-mon:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → James Page (james-page)
milestone: none → 18.02
Changed in charms.ceph:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → James Page (james-page)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charms.ceph (master)

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

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

Reviewed: https://review.openstack.org/532176
Committed: https://git.openstack.org/cgit/openstack/charms.ceph/commit/?id=ae147d8a18a774d95a2e26158c19d267d9dcb701
Submitter: Zuul
Branch: master

commit ae147d8a18a774d95a2e26158c19d267d9dcb701
Author: James Page <email address hidden>
Date: Tue Jan 9 12:43:28 2018 +0000

    upgrade: correct permissions for ceph-mon dirs

    Ensure that the directory in /var/lib/ceph/mon for the local
    mon unit is user writable, ensuring that ceph-mon daemons
    >= Luminous are able to start.

    Closes-Bug: 1742083

    Change-Id: I9cac4bd258b7038738a693329588420696eac703

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

Reviewed: https://review.openstack.org/532499
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-mon/commit/?id=1f0593649c8eaadd71f22a40ece9356b7f75b1ef
Submitter: Zuul
Branch: master

commit 1f0593649c8eaadd71f22a40ece9356b7f75b1ef
Author: James Page <email address hidden>
Date: Wed Jan 10 09:12:20 2018 +0000

    Resync ceph helpers for misc fixes

    Pickup fixes for upgrade from Jewel -> Luminous.

    Change-Id: Id0694b5116e604efbe1c5259de332ae0c4bae574
    Closes-Bug: 1742082
    Closes-Bug: 1742083
    Closes-Bug: 1742120
    Closes-Bug: 1742079
    Closes-Bug: 1742408

Changed in charm-ceph-mon:
status: Triaged → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-mon (stable/17.11)

Fix proposed to branch: stable/17.11
Review: https://review.openstack.org/533150

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

Reviewed: https://review.openstack.org/533150
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-mon/commit/?id=d43ba706fa0ec8631c2271abceb70dc05201f198
Submitter: Zuul
Branch: stable/17.11

commit d43ba706fa0ec8631c2271abceb70dc05201f198
Author: James Page <email address hidden>
Date: Wed Jan 10 09:12:20 2018 +0000

    Resync ceph helpers for misc fixes

    Pickup fixes for upgrade from Jewel -> Luminous.

    Change-Id: Id0694b5116e604efbe1c5259de332ae0c4bae574
    Closes-Bug: 1742082
    Closes-Bug: 1742083
    Closes-Bug: 1742120
    Closes-Bug: 1742079
    Closes-Bug: 1742408
    (cherry picked from commit 1f0593649c8eaadd71f22a40ece9356b7f75b1ef)

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