mgr/dashboard: Fixes 'defaultBuilder' is not a function
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
This is the first part of Project Zipper, the Store Abstraction Layer.
It introduces the basic framework, and wraps RGWRados in RGWRadosStore.
The goal over the next few weeks is to do the same for user, bucket, and
object. This will make most of the remaining users of RGWRados wrapped
in SAL classes, allowing it to be completely absorbed into the private
RGWRadosStore. This will also expose all the APIs that need to be
pusheg up to higher layers in the SAL.
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Before this commit PGLSFilter interface was offering the outdata
parameter in its filter() method:
filter(..., bufferlist& outdata)
OSD was serializing and appending the bufferlist to response to
CEPH_OSD_OP_PGLS_FILTER and CEPH_OSD_OP_PGNLS_FILTER operations.
At the Objecter's side these extra bits were being parsed and
finally stored in NListContext::extra_info. However, it really
looks this member is not used anywhere.
The commit removes the outdata handling on multiple layers: from
PGLSFilter implementations, through OSD till Objecter.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
it's implemented using `PGLSParentFilter`, and this filter has never been
used. the only possible user would be `cephfs-data-scan`, but it's using
`PGLSCephFSFilter` which is referened with "cephfs.inode_tag".
Signed-off-by: Kefu Chai <kchai@redhat.com>
Also fix the 'checks' field, which is a list of objects, not strings. (The
test doesn't notice because it's empty.)
Signed-off-by: Sage Weil <sage@redhat.com>
I think someday the docs for how health alerts work (here) and the
enumeration of all actual alerts should be restructured. For now this
si the simplest placde to fit this!
Signed-off-by: Sage Weil <sage@redhat.com>t
Make sure mute and unmute work. Make sure stick is sticky. Mkae sure
counts can go down bupt if they go upt hte mute clears.
Signed-off-by: Sage Weil <sage@redhat.com>
This is more explicit and robust, and works with the PG warnings, which
don't conform to the "%d ..." form that the other messages do.
Signed-off-by: Sage Weil <sage@redhat.com>
0 means this is a singleton. Otherwise, we can sum this up, either
via merge() or get_or_add().
We always structure this so the count goes toward zero (more healthy), so
if a value is too low, then we count how much too low it is.
Signed-off-by: Sage Weil <sage@redhat.com>
Use dump() member instead of duplicating! The only reason we had this
before was because the detail portion was optinoal
Signed-off-by: Sage Weil <sage@redhat.com>
If the summary starts with a digit, parse a count.
If the count goes up, clear the mute.
If the count goes down, update the mute so that we ratchet the threshold
down.
Signed-off-by: Sage Weil <sage@redhat.com>
- de-escalate severity
- mark mutes in structured output
- note mutes in summary text output
- mark mutes in detail text output
Signed-off-by: Sage Weil <sage@redhat.com>
Get rid of single caller helpers. Instead, assimilate all the checks
together at once, and have two separate blocks, one for formatted, and
one for plaintext output. Much easier to follow!
Signed-off-by: Sage Weil <sage@redhat.com>
* refs/pull/28652/head:
cephfs-shell: Add error message for invalid ls commands
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
* refs/pull/29552/head:
cephfs-shell: Convert paths type from string to bytes
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
This case arises when listing the top directory of a bucket, and,
with proper continued enumeration, would generate a non-terminating
loop if a directory contained names which sort lexically before '/'.
Fixes: https://tracker.ceph.com/issues/41252
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>