the "vol_name" parameter of "fs subvolume getpath" command is not
optional, so we have to pass an fs name to it.
Signed-off-by: Kefu Chai <kchai@redhat.com>
please note, the behavior of `updates_schedule_db()` is changed so that
it now returns the return value of the decorated function. this change
makes it a real decorator which keeps the signature of the decorated
function unchanged. the reason why we need this change is that mypy does
not allow us to match the parameter pack of a Callable at the time of
writing.
Signed-off-by: Kefu Chai <kchai@redhat.com>
it's simply wrong to construct defaultdict with the key which does not
have the mapped value, what we should do is to specify the
"default_factory" which construct the default value whose key does not
exist in the dict when being accessed.
Signed-off-by: Kefu Chai <kchai@redhat.com>
the return value of get_rate() is fed to mgr_util.format_dimless(),
which always cast the formatted value to int.
Signed-off-by: Kefu Chai <kchai@redhat.com>
ReplicatedRecoveryBackend::submit_push_data()'s parameter "intervals_included" might be an
local varaiable in the outer method, so we should capture it by value to avoid a dangling
reference in the inner lambda
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
MOSDPGPull::take_pulls() returns a temporary object, so we need to use seastar::do_with
to create an object whose lives until seastar::do_with's inner continuation chain ends
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
There are circumstances in which objects don't have omap headers, so this should
not be treated as an error
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
The lambda within seastar::do_with need to use lvalue reference as its parameter,
otherwise it would be referencing a variable whose lifecycle ends when lambda finishes
runing
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
The old test parsed to a datetime without a tz, which was interpreted as
the local time zone when rendering back to a string. Specify that it's a
UTC datetime so that behavior is consistent regardless of the test host
timezone.
Signed-off-by: Sage Weil <sage@newdream.net>
The propery decorator had gone missing which meant
the dump of host facts was missing the kernel security
(LSM) settings. This patch just adds the @property
decorator back
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
This commit hits all log messages for a create bucket
request and ensures each has a DoutPrefixProvider.
This commit gets dpp's all the way down to rgw/services
up way though to rgw_op.cc, rgw_rest.cc files,
rgw_admin.cc, etc.
This commit also removes store as dpp in rgw_sal.h
Signed-off-by: Ali Maredia <amaredia@redhat.com>
This commit removes Lenz Grimmer's name and github
handle from the list of component leads and replaces
it with Ernesto Puerta's name and github handle.
Signed-off-by: Zac Dover <zac.dover@gmail.com>
mgr/volumes: Evict clients based on auth-IDs and subvolume path
Reviewed-by: Victoria Martinez de la Cruz <victoria@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
mgr/cephadm: force flag for ok-to-stop and ok-to-stop for monitoring stack
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>