Fix nova instance creation with direct neutron port
Added support for dual port NIC CX card configuration and nova instance creation with direct port type. Change-Id: I2a45b407fc4b5e98bf349fb708890510e6e7377f
This commit is contained in:
parent
97e2c62e4e
commit
74542858a4
|
@ -20,9 +20,11 @@ class mellanox_openstack::compute_sriov (
|
|||
# configure pci_passthrough_whitelist nova compute
|
||||
if ($pci_passthrough_addresses) {
|
||||
nova_config { 'DEFAULT/pci_passthrough_whitelist':
|
||||
value => check_array_of_hash("${pci_passthrough_addresses}"),
|
||||
value => check_array_of_hash("${pci_passthrough_addresses}"),
|
||||
} ~>
|
||||
Service<| title == $nova::params::compute_service_name |>
|
||||
service { $nova::params::compute_service_name:
|
||||
ensure => running
|
||||
}
|
||||
}
|
||||
|
||||
# update [securitygroup] section in neutron
|
||||
|
|
|
@ -95,16 +95,22 @@ function set_modprobe_file () {
|
|||
debug_level=1"
|
||||
|
||||
TOTAL_VFS=$1
|
||||
if is_vxlan_offloading_required; then
|
||||
MLX4_CORE_STR="${MLX4_CORE_STR} log_num_mgm_entry_size=-1"
|
||||
fi
|
||||
MLX4_CORE_STR="${MLX4_CORE_STR} port_type_array=${PORT_TYPE},${PORT_TYPE}"
|
||||
if [[ $TOTAL_VFS -gt 0 ]]; then
|
||||
MLX4_CORE_STR="${MLX4_CORE_STR} num_vfs=${TOTAL_VFS}"
|
||||
if [ $PORT_TYPE -eq 1 ]; then
|
||||
num_vfs="${TOTAL_VFS}"
|
||||
probe_vf="${TOTAL_VFS}"
|
||||
else
|
||||
num_vfs="${TOTAL_VFS},0,0"
|
||||
probe_vf="${TOTAL_VFS},0,0"
|
||||
fi
|
||||
|
||||
MLX4_CORE_STR="${MLX4_CORE_STR} num_vfs=$num_vfs"
|
||||
if [[ $PROBE_VFS -gt 0 ]]; then
|
||||
MLX4_CORE_STR="${MLX4_CORE_STR} probe_vf=${TOTAL_VFS}"
|
||||
MLX4_CORE_STR="${MLX4_CORE_STR} probe_vf=$probe_vf"
|
||||
fi
|
||||
fi
|
||||
MLX4_CORE_STR="${MLX4_CORE_STR} log_num_mgm_entry_size=-1"
|
||||
echo ${MLX4_CORE_STR} > ${MLX4_CORE_FILE}
|
||||
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ name: mellanox-plugin
|
|||
title: Mellanox Openstack features
|
||||
|
||||
# Plugin version
|
||||
version: 2.0.26
|
||||
version: 2.0.27
|
||||
|
||||
# Description
|
||||
description: Enable features over Mellanox hardware
|
||||
|
|
Loading…
Reference in New Issue