trusty: ceph-osd , ceph-mon charms : upgrading to Jewel doesn't work

Bug #1600338 reported by Aymen Frikha
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceph (Juju Charms Collection)
Fix Released
Critical
James Page
ceph-mon (Juju Charms Collection)
Fix Released
Undecided
Chris Holcombe
ceph-osd (Juju Charms Collection)
Fix Released
Undecided
Chris Holcombe

Bug Description

Trusty charms: ceph-mon and ceph-osd

Upgrading to cloud:trusty-liberty works fine. But upgrading to cloud:trusty-mitaka doesn't work.

2016-07-07 15:37:33.324639 7effc9f104c0 -1 error opening mon data directory at '/var/lib/ceph/mon/ceph-juju-machine-2-lxc-1': (22) Invalid argument
IO error: /var/lib/ceph/mon/ceph-juju-machine-2-lxc-1/store.db/LOCK: Permission denied

 2016-07-07 15:37:33.386223 7fef1b1934c0 -1 error opening mon data directory at '/var/lib/ceph/mon/ceph-juju-machine-2-lxc-1': (22) Invalid argument
IO error: /var/lib/ceph/mon/ceph-juju-machine-2-lxc-1/store.db/LOCK: Permission denied

It seems that is related : the default user changes from root -> ceph in the newer versions

Revision history for this message
Chris Holcombe (xfactor973) wrote :

Yeah when the user changes during the upgrade path from root to ceph this breaks the newer ceph versions. The upgrader needs to check the version and chown as needed

Changed in ceph-mon (Juju Charms Collection):
assignee: nobody → Chris Holcombe (xfactor973)
Changed in ceph-mon (Juju Charms Collection):
status: New → In Progress
Ryan Beisner (1chb1n)
Changed in ceph-osd (Juju Charms Collection):
status: New → In Progress
assignee: nobody → Chris Holcombe (xfactor973)
Changed in ceph (Juju Charms Collection):
assignee: nobody → Chris Holcombe (xfactor973)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-osd (master)

Reviewed: https://review.openstack.org/345647
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-osd/commit/?id=3e465ba4f8e3522a27c20dc74d93f5cb5a57984b
Submitter: Jenkins
Branch: master

commit 3e465ba4f8e3522a27c20dc74d93f5cb5a57984b
Author: Chris Holcombe <email address hidden>
Date: Thu Jul 21 13:10:14 2016 -0700

    Fix directory ownership as part of upgrade

    This change ensures that when ceph is upgraded from an
    older version that uses root to a newer version that
    uses ceph as the process owner that all directories
    are chowned.

    Closes-Bug: 1600338
    Change-Id: Ifac8cde6e6ea6f3a366fb40b9ffd261036720310

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-mon (master)

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

commit be87bd11b46bb80b52552d04110a432ca49109e8
Author: Chris Holcombe <email address hidden>
Date: Thu Jul 21 13:08:14 2016 -0700

    Fix directory ownership as part of upgrade

    This change ensures that when ceph is upgraded from an
    older version that uses root to a newer version that
    uses ceph as the process owner that all directories
    are chowned.

    Closes-Bug: 1600338
    Change-Id: I162ebdbeee0d7bae4866b6462f98f11e3892b7ba

Changed in ceph-mon (Juju Charms Collection):
status: In Progress → Fix Committed
Revision history for this message
James Page (james-page) wrote :

This really needs to be applied into ceph as well.

Changed in ceph (Juju Charms Collection):
importance: Undecided → Critical
status: New → Triaged
milestone: none → 16.10
tags: added: stable-candidate
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph (stable/16.07)

Fix proposed to branch: stable/16.07
Review: https://review.openstack.org/353370

Revision history for this message
James Page (james-page) wrote :

Also the ceph charm needs to deal with potentially restarting osd's as well, as the charm supports both mon and osd daemons.

James Page (james-page)
Changed in ceph (Juju Charms Collection):
assignee: Chris Holcombe (xfactor973) → James Page (james-page)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph (master)

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

commit 001d890d426e86d15f7138eb243126d05b0bfa91
Author: James Page <email address hidden>
Date: Wed Aug 10 11:24:30 2016 +0100

    Fix directory ownership as part of upgrade and restart OSD's

    This change ensures that when ceph is upgraded from an
    older version that uses root to a newer version that
    uses ceph as the process owner that all directories
    are chowned.

    As the ceph charm can also host OSD processes, ensure that
    any ceph-osd daemons are stopped and started during the
    upgrade process.

    Change-Id: Ief3fd6352b440b7740965746cd0d1d846c647f84
    Closes-Bug: 1600338

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

Reviewed: https://review.openstack.org/353370
Committed: https://git.openstack.org/cgit/openstack/charm-ceph/commit/?id=7f073d19b5f1f89318dc7267cf237bb3376ae6db
Submitter: Jenkins
Branch: stable/16.07

commit 7f073d19b5f1f89318dc7267cf237bb3376ae6db
Author: James Page <email address hidden>
Date: Wed Aug 10 11:24:30 2016 +0100

    Fix directory ownership as part of upgrade and restart OSD's

    This change ensures that when ceph is upgraded from an
    older version that uses root to a newer version that
    uses ceph as the process owner that all directories
    are chowned.

    As the ceph charm can also host OSD processes, ensure that
    any ceph-osd daemons are stopped and started during the
    upgrade process.

    Change-Id: Ief3fd6352b440b7740965746cd0d1d846c647f84
    Closes-Bug: 1600338
    (cherry picked from commit 001d890d426e86d15f7138eb243126d05b0bfa91)

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