* Fix the subsys name.
* Change FixedKVBtree logs to trace level -- seems too verbose when the
global level is debug.
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
This aux func calculates the next scrub time based on
configuration data, scrub history and the requested scrub
flags. As part of creating unit-tests for ScrubQueue,
determine_scrub_time() is moved to that component.
A related change codifies the OSD services used by
the scheduler.
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
Removing the subvol support exposed a spurious argument to the status
command which was assgned to the 'subvol' parameter but was unused in
this command implementation.
The spurious argument is now removed.
Signed-off-by: Milind Changire <mchangir@redhat.com>
When a host is re-added without an explicit ip we can default to the old
ip we had stored for the host rather than either keeping the loopback
address or throwing an exception. We only want to actually error when
the only options left are error or use a resolved loopback address
Fixes: https://tracker.ceph.com/issues/53438
Signed-off-by: Adam King <adking@redhat.com>
blk/spdk: add support to use NVMe device provided by NVMe-oF target
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
dout_subsys should strictly be defined in .cc files. There was a
definition of dout_subsys in rgw_log.h, which is included in a variety
of .cc files due to transitive includes. When a subsystem wants a
conflicting definition, a compiler warning is then generated due to
the redefinition of dout_subsys.
The definition is removed from rgw_log.h and follow-on fixes are made.
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
In order to best get a "real" exception converted to something
that can be cleanly sent to the mgr response, this new exception
type can be invoked directly, or with the wrap method to automatically
pull as many properties as possibly from the original exception.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
To ensure that the Responder can make use of a user provided `--format=`
parameter even if the programmer doesn't explicitly add one to the
args of an endpoint function we set the `extra_args` attribute on
our wrapper function so that CLICommand can later extract it.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Previously, the CLICommand decorator "assumed" that the decorator was
applied directly to a mgr module api endpoint function. Now that we plan
on adding the Responder decorator into the mix we need a way of
properly fetching the arguments of the endpoint function. In addition,
the decorator itself needs to provide extra arguments to the mgr
(in cases where the endpoint function doesn't explicitly ask for it).
Thus we add a helper function to find the endpoint function when
wrapped as well as extract extra arguments when "walking" the stack
of __wrapped__ functions.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
The load_func_metadata had exactly one use in the codebase, the
store_func_metadata method. It was also a staticmethod that referred to
a property of it's class.
This change makes the function "private" by renaming it to
_load_func_metadata, removing it from the public "surface area" of the
type. It changes it to a classmethod so that it would work correctly
if used from a subclass of CLICommand.
Signed-off-by: John Mulligan <jmulligan@redhat.com>