From 62ac18051df6112035044fc9d139b7b31e94e2bf Mon Sep 17 00:00:00 2001 From: Kristine Bujold Date: Mon, 24 Sep 2018 16:28:59 -0400 Subject: [PATCH] Cannot change instance backing from lvm to image A float was being passed in for "Instances Logical Volume Size" and the form field is an integer. The field was hidden on image backing edits and thus the user could not see the error. Closes-Bug: 1791998 Change-Id: Ia1f34845a5c01d269c511f707a7f1022ec461a35 Signed-off-by: Kristine Bujold --- starlingx-dashboard/centos/build_srpm.data | 2 +- .../dashboards/admin/inventory/storages/lvg_params/forms.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/starlingx-dashboard/centos/build_srpm.data b/starlingx-dashboard/centos/build_srpm.data index 8c7b683b..35d217d8 100644 --- a/starlingx-dashboard/centos/build_srpm.data +++ b/starlingx-dashboard/centos/build_srpm.data @@ -1,2 +1,2 @@ SRC_DIR="starlingx-dashboard" -TIS_PATCH_VER=11 +TIS_PATCH_VER=12 diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/storages/lvg_params/forms.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/storages/lvg_params/forms.py index 5a3faeb1..b7a640aa 100644 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/storages/lvg_params/forms.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/storages/lvg_params/forms.py @@ -233,7 +233,7 @@ class ParamForm(ParamMixin, forms.SelfHandlingForm): sysinv.LVG_NOVA_BACKING_LVM: inst_size_mib = sysinv.LVG_NOVA_PARAM_INSTANCES_SIZE_MIB inst_size_gib = sysinv.LVG_NOVA_PARAM_INSTANCES_SIZE_GIB - size_gib = float(caps.get(inst_size_mib)) / 1024 + size_gib = int(caps.get(inst_size_mib)) / 1024 self.fields[inst_size_gib] = \ forms.IntegerField( label=_("Instances Logical Volume Size"),