From 0a55a6403f250b5e19c329a88778e56db676a179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Wed, 21 Jun 2023 14:29:07 +0200 Subject: [PATCH] openstack: update validation rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miguel Martín --- .../io/konveyor/forklift/openstack/bios_boot_menu.rego | 4 ++-- .../policies/io/konveyor/forklift/openstack/cpu_shares.rego | 4 ++-- .../policies/io/konveyor/forklift/openstack/host_devices.rego | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/validation/policies/io/konveyor/forklift/openstack/bios_boot_menu.rego b/validation/policies/io/konveyor/forklift/openstack/bios_boot_menu.rego index 27dab2a19..d84e35b55 100644 --- a/validation/policies/io/konveyor/forklift/openstack/bios_boot_menu.rego +++ b/validation/policies/io/konveyor/forklift/openstack/bios_boot_menu.rego @@ -9,8 +9,8 @@ has_boot_menu_enabled if input.image.properties.hw_boot_menu == "true" concerns[flag] { has_boot_menu_enabled flag := { - "category": "Information", + "category": "Warning", "label": "VM has BIOS boot menu enabled", - "assessment": "The VM has a BIOS boot menu enabled. This is not currently supported by OpenShift Virtualization.", + "assessment": "The VM has a BIOS boot menu enabled. This is not currently supported by OpenShift Virtualization. The VM can be migrated but the BIOS boot menu will not be enabled in the target environment.", } } diff --git a/validation/policies/io/konveyor/forklift/openstack/cpu_shares.rego b/validation/policies/io/konveyor/forklift/openstack/cpu_shares.rego index 9813f7b24..870784eac 100644 --- a/validation/policies/io/konveyor/forklift/openstack/cpu_shares.rego +++ b/validation/policies/io/konveyor/forklift/openstack/cpu_shares.rego @@ -10,8 +10,8 @@ has_cpushares_enabled if "quota:cpu_shares" in object.keys(input.flavor.extraSpe concerns[flag] { has_cpushares_enabled flag := { - "category": "Information", + "category": "Warning", "label": "VM has CPU Shares Defined", - "assessment": "The VM has CPU shares defined. This functionality is not currently supported by OpenShift Virtualization.", + "assessment": "The VM has CPU shares defined. This functionality is not currently supported by OpenShift Virtualization. The VM can be migrated but the CPU shares configuration will be missing in the target environment.", } } diff --git a/validation/policies/io/konveyor/forklift/openstack/host_devices.rego b/validation/policies/io/konveyor/forklift/openstack/host_devices.rego index 18767e3cc..a15b00118 100644 --- a/validation/policies/io/konveyor/forklift/openstack/host_devices.rego +++ b/validation/policies/io/konveyor/forklift/openstack/host_devices.rego @@ -12,6 +12,6 @@ concerns[flag] { flag := { "category": "Warning", "label": "VM has mapped host devices", - "assessment": "The VM is configured with hardware devices mapped from the host. This functionality is not currently supported by OpenShift Virtualization.", + "assessment": "The VM is configured with hardware devices mapped from the host. This functionality is not currently supported by OpenShift Virtualization. The VM can be migrated it will not have any host devices attached to it in the target environment.", } }