Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mon: check monitor address configuration #18073

Merged

Conversation

dragonylffly
Copy link
Contributor

1 check the validity of monitor port configuration
2 use default monitor port when not specified in ceph.conf

If the monitor port is not specified in ceph.conf,
it will use 0. However, monmaptool will use
default port in creating monitor map in such case.
The inconsistent behavior is not graceful, and
every time monitor loading, it warns 'mon addr
config option does not match monmap file', which
is confusing.

Signed-off-by: Li Wang <laurence.liwang@gmail.com>
@dragonylffly dragonylffly changed the title check monitor address configuration mon: check monitor address configuration Oct 2, 2017
@liewegas
Copy link
Member

liewegas commented Oct 2, 2017

This is a bit of a behavior change.. prevoiusly we would parse "1.2.3.4:123aaa" successfully but now not.

Oh, and it looks like the unit test fails as a result. Is there a reason we should change this?

Copy link
Member

@liewegas liewegas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

It checks the validty of monitor port configuration
in ceph.conf, and warns if necessary.

Signed-off-by: Li Wang <laurence.liwang@gmail.com>
@dragonylffly dragonylffly force-pushed the wip-check-monitor-address-configuration branch from c3a4e62 to 6e66bcb Compare October 3, 2017 05:41
@dragonylffly
Copy link
Contributor Author

@liewegas updated

@liewegas liewegas merged commit 2ad8c37 into ceph:master Oct 4, 2017
@dragonylffly dragonylffly deleted the wip-check-monitor-address-configuration branch October 27, 2017 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants