From 71dd3b8997294c814af2bc83bf3c2da2fe7e6e81 Mon Sep 17 00:00:00 2001 From: Neha Ojha Date: Thu, 20 Dec 2018 09:56:39 -0800 Subject: [PATCH] pybind/mgr/dashboard: add pglog_hardlimit flags Note: Tested using vstart Signed-off-by: Neha Ojha --- src/pybind/mgr/dashboard/controllers/osd.py | 2 +- .../osd/osd-flags-modal/osd-flags-modal.component.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/osd.py b/src/pybind/mgr/dashboard/controllers/osd.py index 08c141c8842..e2bb8366551 100644 --- a/src/pybind/mgr/dashboard/controllers/osd.py +++ b/src/pybind/mgr/dashboard/controllers/osd.py @@ -199,7 +199,7 @@ class OsdFlagsController(RESTController): def bulk_set(self, flags): """ - The `recovery_deletes` and `sortbitwise` flags cannot be unset. + The `recovery_deletes`, `sortbitwise` and `pglog_hardlimit` flags cannot be unset. `purged_snapshots` cannot even be set. It is therefore required to at least include those three flags for a successful operation. """ diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.ts index c78b49137a0..b6fd5775afa 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.ts @@ -98,6 +98,13 @@ export class OsdFlagsModalComponent implements OnInit { value: false, description: this.i18n('Deletes performed during recovery instead of peering'), disabled: true + }, + pglog_hardlimit: { + code: 'pglog_hardlimit', + name: this.i18n('PG Log Hard Limit'), + value: false, + description: this.i18n('Puts a hard limit on pg log length'), + disabled: true } }; flags: any[]; -- 2.39.5