Skip to contentSkip to conversation

Stopping ceph daemons during the upgrade

DISCUSSION Loic Dachary 3 participants 5 messages Aug 18, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

To not confuse the ceph daemons during a package upgrade ( see http://tracker.ceph.com/issues/9153#note-13 for instance ), it would be better to stop the ceph daemons while ceph is being upgraded. Does that sound reasonable ?

Here is how it could be done for .deb packages : https://github.com/dachary/ceph/commit/cf3a0e7bef25e5190f3cdb69e57cb6b868d806fa and there probably is a way to do something similar with RPM packages.

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw

Hi,

Quoted 1 line · Loic Dachary

there probably is a way to do something similar with RPM packages.

That behaviour (well, close enough) just _removed_ from firefly, see:
https://github.com/ceph/ceph/commit/361c1f8554ce1fedfd0020cd306c41b0ba25f53e

I don’t have a strong opinion if the pkg update should restart the daemon or not — but we should try not to change this too often as it changes our operating procedures.

Cheers, Dan--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Hi Dan,

Pre-loading the erasure code plugins will reduce this race condition (i.e. the files will have to be modified between the start of the ceph-osd process and the bootstrap phase where it loads the plugins for it to happen) and it seems to be preferable to stopping the daemons. Thanks for giving an additional incentive to go in this direction !

Cheers

Quoted 16 lines · Dan Van Der Ster

Hi,

Quoted 1 line · Loic Dachary

there probably is a way to do something similar with RPM packages.

That behaviour (well, close enough) just _removed_ from firefly, see:
https://github.com/ceph/ceph/commit/361c1f8554ce1fedfd0020cd306c41b0ba25f53e

I don’t have a strong opinion if the pkg update should restart the daemon or not — but we should try not to change this too often as it changes our operating procedures.

Cheers, Dan--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#3 lore raw
Quoted 7 lines · Loic Dachary

Hi Dan,

Pre-loading the erasure code plugins will reduce this race condition (i.e. the files will have to be modified between the start of the ceph-osd process and the bootstrap phase where it loads the plugins for it to happen) and it seems to be preferable to stopping the daemons. Thanks for giving an additional incentive to go in this direction !

BTW Loic, one other thing would could do is have a number or string in the .so interface that we bump when the interface changes. Then loading the plugin could fail with a friendly message instead of crashing.

sage

#4 lore raw

Good idea :-)

Quoted 19 lines · Sage Weil
Quoted 7 lines · Loic Dachary

Hi Dan,

Pre-loading the erasure code plugins will reduce this race condition (i.e. the files will have to be modified between the start of the ceph-osd process and the bootstrap phase where it loads the plugins for it to happen) and it seems to be preferable to stopping the daemons. Thanks for giving an additional incentive to go in this direction !

BTW Loic, one other thing would could do is have a number or string in the .so interface that we bump when the interface changes. Then loading the plugin could fail with a friendly message instead of crashing.

sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre