All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mykola Golub <to.my.trociny@gmail.com>
To: Willem Jan Withagen <wjw@digiware.nl>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: OSD rebind connects to ports of other OSDs
Date: Tue, 20 Dec 2016 19:23:50 +0200	[thread overview]
Message-ID: <20161220172349.GB1510@gmail.com> (raw)
In-Reply-To: <f1963dc8-2c2e-04bb-ea05-849e051631c2@digiware.nl>

On Tue, Dec 20, 2016 at 05:48:33PM +0100, Willem Jan Withagen wrote:

> First round of binds:
> 2016-12-12 23:57:37.615409 7f36c2be6940  1 -- 0.0.0.0:6800/13799
> _finish_bind bind my_inst.addr is 0.0.0.0:6800/13799
> 2016-12-12 23:57:37.615739 7f36c2be6940  1 -- 0.0.0.0:6801/13799
> _finish_bind bind my_inst.addr is 0.0.0.0:6801/13799
> 2016-12-12 23:57:37.616090 7f36c2be6940  1 -- 0.0.0.0:6802/13799
> _finish_bind bind my_inst.addr is 0.0.0.0:6802/13799
> 2016-12-12 23:57:37.616452 7f36c2be6940  1 -- 0.0.0.0:6803/13799
> _finish_bind bind my_inst.addr is 0.0.0.0:6803/13799
> 
> So that is to INADDR_ANY
> 
> rebinds:
> 2016-12-12 23:57:50.094446 7f36b5ac6700  1 -- 127.0.0.1:6812/1013799
> _finish_bind bind my_inst.addr is 127.0.0.1:6812/1013799
> 2016-12-12 23:57:50.094956 7f36b5ac6700  1 -- 127.0.0.1:6813/1013799
> _finish_bind bind my_inst.addr is 127.0.0.1:6813/1013799
> 2016-12-12 23:57:50.095477 7f36b5ac6700  1 -- 127.0.0.1:6814/1013799
> _finish_bind bind my_inst.addr is 127.0.0.1:6814/1013799
> 
> so that is on the hostname as specified in the config.
> 
> So your suggestion would be to not bind on INADDR_ANY but on the config
> hostname with the initial bind as well??

I am not familiar with rebind logic here, so it is difficult for me to
make suggestions. But I would expect that bind and rebind addresses
should be the same. Not sure it should be hostname though. In your
case for example, before rebind the osd was listening on all
interfaces, and after rebind it was listening only on loopback,
i.e. it was accessible only from the local host.

-- 
Mykola Golub

      reply	other threads:[~2016-12-20 17:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-20 10:21 OSD rebind connects to ports of other OSDs Willem Jan Withagen
2016-12-20 15:00 ` Willem Jan Withagen
2016-12-20 15:23   ` Sage Weil
2016-12-20 15:50     ` Willem Jan Withagen
2016-12-20 17:31     ` Mykola Golub
2016-12-20 18:39     ` Willem Jan Withagen
2016-12-20 18:43       ` Sage Weil
2016-12-20 18:48         ` Willem Jan Withagen
2016-12-20 15:06 ` Mykola Golub
2016-12-20 16:48   ` Willem Jan Withagen
2016-12-20 17:23     ` Mykola Golub [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161220172349.GB1510@gmail.com \
    --to=to.my.trociny@gmail.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=wjw@digiware.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.