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
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html