summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRawan Herzallah <rherzallah@asaltech.com>2016-04-17 13:33:08 +0000
committerRawan Herzallah <rherzallah@asaltech.com>2016-04-26 06:48:08 +0000
commit467a479d4d6811c3230fcb2d239bea26f9ab8ccb (patch)
tree1d13735aed3476f137c4f4c243ba15560d2c643c
parent64f0c86510de855b99e98eaf63f2fc83d9cca04a (diff)
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
Notes
Notes (review): Code-Review+1: Rawan Herzallah <rherzallah@asaltech.com> Code-Review+2: Moshe Levi <moshele@mellanox.com> Workflow+1: Moshe Levi <moshele@mellanox.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 02 May 2016 15:20:54 +0000 Reviewed-on: https://review.openstack.org/306830 Project: openstack/fuel-plugin-mellanox Branch: refs/heads/master
-rw-r--r--environment_config.yaml13
-rw-r--r--metadata.yaml2
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:
6 type: "checkbox" 6 type: "checkbox"
7 description: | 7 description: |
8 If selected, a Neutron SR-IOV driver will be configured to enable SR-IOV capabilities using Neutron direct port. 8 If selected, a Neutron SR-IOV driver will be configured to enable SR-IOV capabilities using Neutron direct port.
9 This feature is only supported if the intel_iommu=on parameter is appended to the kernel parameters.
9 In case the NEO SDN driver is not used for private network VLAN provisioning: 10 In case the NEO SDN driver is not used for private network VLAN provisioning:
10 * In Ethernet mode, the switch side ports must be pre-configured with the required VLAN range 11 * When in Ethernet mode, the switch side ports must be pre-configured with the required VLAN range
11 * In InfinBand mode, the Subnet Manager partitions.conf file must include the private network conversions of VLAN to PKey 12 * When in InfinBand mode, the Subnet Manager partitions.conf file must include the private network conversions of VLAN to PKey
12 restrictions: 13 restrictions:
13 - condition: "settings:common.libvirt_type.value != 'kvm' or not (cluster:net_provider == 'neutron' and networking_parameters:segmentation_type == 'vlan')" 14 - 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')"
14 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." 15 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."
15 num_of_vfs: 16 num_of_vfs:
16 value: "16" 17 value: "16"
17 label: "Number of virtual NICs" 18 label: "Number of virtual NICs"
@@ -103,5 +104,5 @@ attributes:
103 weight: 60 104 weight: 60
104 type: "checkbox" 105 type: "checkbox"
105 restrictions: 106 restrictions:
106 - condition: "settings:storage.volumes_lvm.value != true or settings:common.libvirt_type.value != 'kvm'" 107 - 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)"
107 message: "For iSER support in Cinder, Cinder LVM over iSCSI should be enabled and hypervisor type should be KVM." 108 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
5title: Mellanox ConnectX-4 Openstack Features 5title: Mellanox ConnectX-4 Openstack Features
6 6
7# Plugin version 7# Plugin version
8version: 3.1.0 8version: 3.1.1
9 9
10# Description 10# Description
11description: Enable features over Mellanox ConnectX-4 Adapters 11description: Enable features over Mellanox ConnectX-4 Adapters