All of lore.kernel.org
 help / color / mirror / Atom feed
* Stopping ceph daemons during the upgrade
@ 2014-08-18 15:19 Loic Dachary
  2014-08-18 15:31 ` Dan Van Der Ster
  0 siblings, 1 reply; 5+ messages in thread
From: Loic Dachary @ 2014-08-18 15:19 UTC (permalink / raw)
  To: Ceph Development

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

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

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Stopping ceph daemons during the upgrade
  2014-08-18 15:19 Stopping ceph daemons during the upgrade Loic Dachary
@ 2014-08-18 15:31 ` Dan Van Der Ster
  2014-08-18 16:00   ` Loic Dachary
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Van Der Ster @ 2014-08-18 15:31 UTC (permalink / raw)
  To: Loic Dachary; +Cc: Ceph Development

Hi,

On 18 Aug 2014, at 17:19, Loic Dachary <loic@dachary.org> wrote:

> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Stopping ceph daemons during the upgrade
  2014-08-18 15:31 ` Dan Van Der Ster
@ 2014-08-18 16:00   ` Loic Dachary
  2014-08-18 16:08     ` Sage Weil
  0 siblings, 1 reply; 5+ messages in thread
From: Loic Dachary @ 2014-08-18 16:00 UTC (permalink / raw)
  To: Dan Van Der Ster; +Cc: Ceph Development

[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]

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

On 18/08/2014 17:31, Dan Van Der Ster wrote:
> Hi,
> 
> On 18 Aug 2014, at 17:19, Loic Dachary <loic@dachary.org> wrote:
> 
>> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Stopping ceph daemons during the upgrade
  2014-08-18 16:00   ` Loic Dachary
@ 2014-08-18 16:08     ` Sage Weil
  2014-08-18 16:24       ` Loic Dachary
  0 siblings, 1 reply; 5+ messages in thread
From: Sage Weil @ 2014-08-18 16:08 UTC (permalink / raw)
  To: Loic Dachary; +Cc: Dan Van Der Ster, Ceph Development

On Mon, 18 Aug 2014, Loic Dachary wrote:
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Stopping ceph daemons during the upgrade
  2014-08-18 16:08     ` Sage Weil
@ 2014-08-18 16:24       ` Loic Dachary
  0 siblings, 0 replies; 5+ messages in thread
From: Loic Dachary @ 2014-08-18 16:24 UTC (permalink / raw)
  To: Sage Weil; +Cc: Dan Van Der Ster, Ceph Development

[-- Attachment #1: Type: text/plain, Size: 979 bytes --]

Good idea :-)

On 18/08/2014 18:08, Sage Weil wrote:
> On Mon, 18 Aug 2014, Loic Dachary wrote:
>> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-18 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18 15:19 Stopping ceph daemons during the upgrade Loic Dachary
2014-08-18 15:31 ` Dan Van Der Ster
2014-08-18 16:00   ` Loic Dachary
2014-08-18 16:08     ` Sage Weil
2014-08-18 16:24       ` Loic Dachary

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.