All of lore.kernel.org
 help / color / mirror / Atom feed
* documentation error for adding monitor?
@ 2014-01-05 22:31 James Harper
  2014-01-06 16:35 ` Joao Eduardo Luis
  0 siblings, 1 reply; 2+ messages in thread
From: James Harper @ 2014-01-05 22:31 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

When I follow the steps for adding a new monitor at http://ceph.com/docs/master/rados/operations/add-or-rm-mons/, the 'ceph mon add <mon-id> <ip[:port>' step always tells me that the monitor already exists. Is this step actually necessary?

Thanks

James

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

* Re: documentation error for adding monitor?
  2014-01-05 22:31 documentation error for adding monitor? James Harper
@ 2014-01-06 16:35 ` Joao Eduardo Luis
  0 siblings, 0 replies; 2+ messages in thread
From: Joao Eduardo Luis @ 2014-01-06 16:35 UTC (permalink / raw)
  To: James Harper, ceph-devel@vger.kernel.org

On 01/05/2014 10:31 PM, James Harper wrote:
> When I follow the steps for adding a new monitor at http://ceph.com/docs/master/rados/operations/add-or-rm-mons/, the 'ceph mon add <mon-id> <ip[:port>' step always tells me that the monitor already exists. Is this step actually necessary?
>
> Thanks
>
> James

Well, this is an annoying bug we just haven't been out to fix it.

In a nutshell, when you issue the add command we queue the command 
message until the monitor is actually added to the monmap -- which makes 
sense, as we don't want to return success before it actually happens. 
However, the monitor will bootstrap once it gets a new monmap, recalc 
the ranks and trigger a new election -- and this happens before the 
message is replied to.  Once the election is over, the monitor will 
rerun any queued messages it may have, so that it may forward those 
messages to the new leader (if any) or handle any message that whose 
actions may have been interrupted by the election -- and the message we 
queued earlier ends up being rerun, thus the error: when that message is 
rerun, the monitor it is trying to add already exists.

The monitor was successfully added though.

   -Joao


-- 
Joao Eduardo Luis
Software Engineer | http://inktank.com | http://ceph.com

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

end of thread, other threads:[~2014-01-06 16:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-05 22:31 documentation error for adding monitor? James Harper
2014-01-06 16:35 ` Joao Eduardo Luis

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.