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: remove pre-luminous compat cruft (2 of many) #17322
Conversation
9ea1782
to
6032ac0
Compare
6032ac0
to
51f7c83
Compare
src/mon/HealthMonitor.h
Outdated
|
||
class HealthMonitor : public PaxosService | ||
{ | ||
map<int,HealthService*> services; | ||
version_t version = 0; | ||
map<int,health_check_map_t> quorum_checks; // for each quorum member | ||
health_check_map_t leader_checks; // leader only | ||
|
||
public: | ||
HealthMonitor(Monitor *m, Paxos *p, const string& service_name); | ||
~HealthMonitor() override { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. just remove this dtor.
*/ | ||
|
||
// note: this should be replaced shortly! | ||
COMMAND_WITH_FLAG("pg force_create_pg name=pgid,type=CephPgid", \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you remove the reference of force_create_pg
, set_full_ratio
and set_nearfull_ratio
in ceph.rst
as well?
src/mon/PGMap.cc
Outdated
// or old mon running. | ||
} | ||
epoch_t e; | ||
::decode(e, p); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to decode the epoch if we don't check it.
src/mon/PGMap.cc
Outdated
@@ -936,85 +936,35 @@ void PGMap::get_rules_avail(const OSDMap& osdmap, | |||
// --------------------- | |||
// PGMap | |||
|
|||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why shall we keep this around instead of just yanking it?
@@ -9072,10 +9072,6 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op, | |||
<< " < firefly, which is required for primary-temp"; | |||
err = -EPERM; | |||
goto reply; | |||
} else if (!g_conf->mon_osd_allow_primary_temp) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are covered by require_osd_release in the OSDMap.
i understand that OSDs are required to be all luminous+ in post luminous. but how can we educate old clients to understand this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These options are superceded by the new osdmap require-min-compat-client which controls which newish incompat things are allowed to be used.
51f7c83
to
ba99388
Compare
qa/standalone/ceph-helpers.sh
Outdated
fi | ||
fi | ||
if [ "$cores" = "yes" -o "$dumplogs" = "1" ]; then | ||
if [ "$dumplogs" = "1" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the EXPECT_DEATH
tests should not create cores. the last of them who were dumping cores were fixed by 6beaf0b.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liewegas @wjwithagen since #17447 has been merged. can we drop this commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tchaikov
I think you also have to ask @dzafman, since he is the original submitter of this part.
The problem with this fix I had is amended by #17447, because there are no more cores.
And I'm very much in favor of making dumplogs optional, since it really bloats output, also in cases where there are other means of capturing the logs..
80b2ba9
to
6a50b5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aside from f7f4e8b, lgtm. i think the core check feature is still useful for us to check for regressions in ceph-helper based tests. and the false alarms should have been taken care of. so i guess it's safe to keep it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apart from f7f4e8b, which I needed to remove, it tested oke for FreeBSD. But that is cause of other patches.
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
The only service this provided was mon space notifications, which are now handled explicitly by the new HealthMonitor's check_member_health(), and communited by the new MMonHealthChecks. Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
There is only one user and one implementation; this just makes the code hard to read. Signed-off-by: Sage Weil <sage@redhat.com>
These are left over from health cleanup Signed-off-by: Sage Weil <sage@redhat.com>
The only user left is 'pg getmap' and ceph-dencoder; we can drop the compat cruft. Signed-off-by: Sage Weil <sage@redhat.com>
These were used by PGMonitor when stored in per-pg and per-osd k/v pairs. Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
These were used by PGMonitor. Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
These are covered by require_osd_release in the OSDMap. Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
…_ratio Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
6a50b5c
to
e2bc888
Compare
@tchaikov ok thanks, dropped that commit and rebased! |
@liewegas (re: f7f4e8b) We could just "rm -rf td" in run-standalone.sh to clear any previous testing using "td" the test directory. This would clear any cores generated by unit tests. Presumably, those tests aren't using run-standalone.sh because they would always fail. If you wanted to make them runnable with run-standalone, just preserve the core_pattern then set it to something that doesn't begin or end with "core". After the test runs set it back. This would only work as long as run-standalone continues to be single threaded. |
Signed-off-by: Sage Weil <sage@redhat.com>
-5k lines w00t! |
\o/ :beer:
|
@liewegas @tchaikov |
@renhwztetecs i am not sure that change is backward compatible. instead, i think we should fix http://tracker.ceph.com/issues/21300 |
|
@renhwztetecs thanks for the reproducer! will leave this to Joao. |
This rips out a ton of pre-luminous compat cruft from the monitor, mainly
include PGMonitor.