From e0f317a41942d0ea0d93e4f2f247d11b4c24b116 Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Wed, 13 Feb 2019 15:31:27 +0000 Subject: [PATCH] mgr/dashboard: Allow create and edit of pools with "/" in the name Fixes: http://tracker.ceph.com/issues/38302 Signed-off-by: Tiago Melo --- .../pool/pool-form/pool-form.component.html | 14 +++++- .../pool-form/pool-form.component.spec.ts | 1 + .../pool/pool-form/pool-form.component.ts | 18 ++++++- .../pool/pool-list/pool-list.component.ts | 2 +- .../src/app/shared/api/pool.service.ts | 4 +- .../select-badges.component.html | 3 +- .../select-badges/select-badges.component.ts | 5 +- .../frontend/src/locale/messages.xlf | 50 ++++++++++++------- 8 files changed, 71 insertions(+), 26 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html index 3493b3d9a29a..ba85d2a000e1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html @@ -297,7 +297,8 @@ [messages]="data.applications.messages" [data]="data.applications.selected" [options]="data.applications.available" - [selectionLimit]="4"> + [selectionLimit]="4" + (selection)="appSelection()"> @@ -435,6 +436,17 @@ (changes)="currentConfigurationValues = $event()"> + +
+
+
+ It's not possible to create an RBD pool with '/' in the name. + Please change the name or remove 'rbd' from the applications list. +
+