From 467a479d4d6811c3230fcb2d239bea26f9ab8ccb Mon Sep 17 00:00:00 2001 From: Rawan Herzallah Date: Sun, 17 Apr 2016 13:33:08 +0000 Subject: [PATCH] Add UI restriction for intel_iommu kernel params For enabling SR-IOV, intel_iommu=on must be added to the kernel params under settings tab. Change-Id: Iba0afb15619e293303c75165ca6607392ff1ee1c --- environment_config.yaml | 13 +++++++------ metadata.yaml | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/environment_config.yaml b/environment_config.yaml index e9646d4..af90a3f 100644 --- a/environment_config.yaml +++ b/environment_config.yaml @@ -6,12 +6,13 @@ attributes: type: "checkbox" description: | If selected, a Neutron SR-IOV driver will be configured to enable SR-IOV capabilities using Neutron direct port. + This feature is only supported if the intel_iommu=on parameter is appended to the kernel parameters. In case the NEO SDN driver is not used for private network VLAN provisioning: - * In Ethernet mode, the switch side ports must be pre-configured with the required VLAN range - * In InfinBand mode, the Subnet Manager partitions.conf file must include the private network conversions of VLAN to PKey + * When in Ethernet mode, the switch side ports must be pre-configured with the required VLAN range + * When in InfinBand mode, the Subnet Manager partitions.conf file must include the private network conversions of VLAN to PKey restrictions: - - condition: "settings:common.libvirt_type.value != 'kvm' or not (cluster:net_provider == 'neutron' and networking_parameters:segmentation_type == 'vlan')" - message: "For Mellanox SR-IOV support in Neutron, hypervisor type should be KVM and the environment networking should be based on Neutron with VLAN segmentation." + - condition: "settings:common.libvirt_type.value != 'kvm' or not ('intel_iommu=on' in settings:kernel_params.kernel.value) or not (cluster:net_provider == 'neutron' and networking_parameters:segmentation_type == 'vlan')" + message: "For Mellanox SR-IOV support in Neutron, the hypervisor type should be KVM, the environment networking should be based on Neutron with VLAN segmentation and the intel_iommu=on parameter should be appended to the kernel parameters." num_of_vfs: value: "16" label: "Number of virtual NICs" @@ -103,5 +104,5 @@ attributes: weight: 60 type: "checkbox" restrictions: - - condition: "settings:storage.volumes_lvm.value != true or settings:common.libvirt_type.value != 'kvm'" - message: "For iSER support in Cinder, Cinder LVM over iSCSI should be enabled and hypervisor type should be KVM." + - condition: "settings:storage.volumes_lvm.value != true or settings:common.libvirt_type.value != 'kvm' or not ('intel_iommu=on' in settings:kernel_params.kernel.value)" + message: "For iSER support in Cinder, Cinder LVM over iSCSI should be enabled, the hypervisor type should be KVM and the intel_iommu=on parameter should be appended to the kernel parameters." diff --git a/metadata.yaml b/metadata.yaml index ee3534a..03fdb20 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -5,7 +5,7 @@ name: mellanox-plugin title: Mellanox ConnectX-4 Openstack Features # Plugin version -version: 3.1.0 +version: 3.1.1 # Description description: Enable features over Mellanox ConnectX-4 Adapters