ceph/qa/standalone/misc
Sridhar Seshasayee b12780667f osd: Restore defaults of mClock built-in profiles upon modification
The QoS parameters (res, wgt, lim) of mClock profiles are not allowed to
be modified by users using commands like "config set" or via admin socket.
handle_conf_change() does not allow changes to any built-in mClock profile
at the mClock scheduler. But the config subsystem showed the change as
expected for the built-in mClock profile QoS parameters. This misled the
user into thinking that the change was made at the mClock server when
it was not the case.

The above issue is the result of the config "levels" used by the config
subsystem. The inital built-in QoS params are set at the CONF_DEFAULT
level. This allows the user to modify the built-in QoS params using
"config set" command which sets values at CONF_MON level which has higher
priority than CONF_DEFAULT level. The new value is persisted on the mon
store and therefore the config subsystem shows the change when "config
show" command is issued.

To prevent the above, this commit adds changes to restore the defaults set
for the built-in profiles by removing the new config changes from the MON
store. This results in the original defaults to come back into effect and
maintain a consistent view of the built-in profile across all levels.

To accomplish this, the mClock scheduler is provided with additional
information like the OSD id, shard id and a pointer to the MonClient
using which the Mon store command to remove the option is executed.

A standalone test is added to verify that built-in params cannot be
modified and the original profile params are retained.

Fixes: https://tracker.ceph.com/issues/57533
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
2023-01-09 19:54:44 +05:30
..
mclock-config.sh osd: Restore defaults of mClock built-in profiles upon modification 2023-01-09 19:54:44 +05:30
network-ping.sh mon: Improvements to slow heartbeat health messages 2020-01-14 18:06:44 +00:00
ok-to-stop.sh mgr: add --max <n> to 'osd ok-to-stop' command 2021-02-20 09:53:51 -05:00
rados-striper.sh
test-ceph-helpers.sh
test-snaptrim-stats.sh osd: Add snaptrim duration to pg dump stats. 2022-03-16 00:33:24 +05:30
ver-health.sh qa/standalone/misc: ver-health.sh: Increase wait_for_health_string() timeout 2021-07-30 18:16:00 +05:30