From: Neha Ojha Date: Thu, 20 Dec 2018 17:56:39 +0000 (-0800) Subject: pybind/mgr/dashboard: add pglog_hardlimit flags X-Git-Tag: v14.1.0~447^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71dd3b8997294c814af2bc83bf3c2da2fe7e6e81;p=ceph.git pybind/mgr/dashboard: add pglog_hardlimit flags Note: Tested using vstart Signed-off-by: Neha Ojha --- diff --git a/src/pybind/mgr/dashboard/controllers/osd.py b/src/pybind/mgr/dashboard/controllers/osd.py index 08c141c8842c..e2bb83665510 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 c78b49137a08..b6fd5775afa5 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[];