]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: add warning message on why osd creation disabled 51556/head
authorPere Diaz Bou <pere-altea@hotmail.com>
Wed, 17 May 2023 14:32:43 +0000 (16:32 +0200)
committerPere Diaz Bou <pere-altea@hotmail.com>
Thu, 18 May 2023 14:02:53 +0000 (16:02 +0200)
When no options are present when creating OSDs, you can see the form
with lots of things disabled without having a clear explanation. This
PR introduces a warning banner with a description on why it is
happening.

Fixes: https://tracker.ceph.com/issues/61223
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.html

index 2aea0ac239eff5de3edb906a2050ae6d40a5da91..e863ac021d31cb5ca7f60aebc0d075420b344b39 100644 (file)
           #formDir="ngForm"
           [formGroup]="form"
           novalidate>
+      <cd-alert-panel *ngIf="!deploymentOptions?.recommended_option"
+                      type="warning"
+                      class="mx-3"
+                      i18n>
+        No devices(HDD, SSD or NVME) were found. Creation of OSDs will remain
+        disabled until devices are added.
+      </cd-alert-panel>
       <div class="accordion">
         <div class="accordion-item">
           <h2 class="accordion-header">