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
This commit is contained in:
Rawan Herzallah 2016-04-17 13:33:08 +00:00
parent 64f0c86510
commit 467a479d4d
2 changed files with 8 additions and 7 deletions

View File

@ -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."

View File

@ -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