With the help of this component it is easy to create all actions for a
table with the right permission for each table action with a simple
configuration.
Per default action button and action drop down list are shown. All
actions will be filtered depending on the permissions on
initialization. Per default all actions that have the permission
'update' or 'delete' are only enabled if an item is selected which
holds no running task.
You can use change the default behavior, to show actions only in a
named drop down.
For each item you can change it's default behaviors by using custom
functions to enable/disable an action or show/hide it
as action button or drop down item.
Please look at the tests to understand how to use it in practice.
Signed-off-by: Stephan Müller <smueller@suse.com>
* refs/pull/24109/head:
doc: update docs for device management
mgr: make devicehealth always-on
mgr/devicehealth: do not create metrics pool on get-device-metrics
mgr/devicehealth: converge OPTIONS and DEFAULTS
mgr/devicehealth: squelch health warnings for unused devices
mgr/devicehealth: show-health-metrics -> get-health-metrics
Reviewed-by: John Spray <john.spray@redhat.com>
* refs/pull/24149/head:
unittest_bufferlist: add unit test for sha1 from multiple raw buffers
Reviewed-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
Reviewed-by: Myoungwon Oh <omwmw@sk.com>
The cls methods are now storing normalized parent overlaps within the snapshot
if the OSDs are required to be Nautilus or later. Therefore, we can safely
break the on-disk format compatibility for those newer OSDs.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
The parent reference should be written once under the "parent" key,
so all updates to a snapshot should ensure the new normalized format
is used if Nautilus or later OSDs are required.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This is the first step to fix the denormalization of the parent
image spec references between the HEAD revision and the snapshot
revisions.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
If the OSDs are required to be Nautilus or later, it will automatically break
backwards compatibility of the structure to support pool namespaces.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
It will break version compatibility if used against older OSDs that
don't support RBD pool namespace support.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
With the forthcoming need to use new methods to retrieve a clone's parent,
use per-method helpers to invoke the correct method within the image
refresh state machine.
Also used this time to merge newer cls rbd methods that should be supported
by all non-EOLed OSDs.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Peers with async-recovery enabled are usually having a update-to-date
last-update iterator and hence might be moved out from the __async_recovery_targets__
set during the next peering circles.
7de35629f5 makes num_objects_missing
trace historical missing objects correctly, hence we could take
num_objects_missing into account when determing __async_recovery_targets__.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5s -> 5m to gives us more leeway for when the mons are thrashing.
Also, *only* set this timeout when we expect a timeout. If we don't,
wait forever.
Signed-off-by: Sage Weil <sage@redhat.com>
* refs/pull/24092/head:
mgr: Change signature of PyString_AsString to match return
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
* refs/pull/24057/head:
src/common: add a unit test (bufferlist.sha1())
osd, src/common: return sha1 value if zero-length buffer.
src/common/buffer.cc: remove unnecessary copy in sha1()
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
mgr/dashboard: Do not require cert for http
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>