UCSM Mechanism Driver Contributor Guide

DevStack Configuration Examples

For introductory details on DevStack, refer to How to Contribute. This section focuses on how to set the UCSM driver related configuration within DevStack’s configuration file local.conf. These changes should follow the section which installs networking-cisco repository.

Configuration required for neutron virtual port support

The following parameters need to be provided to DevStack so that the UCSM driver can be initialized with its configuration. The parameters provided to local.conf are similar to the configuration options provided to neutron and described in section UCSM Driver configuration along with neutron parameters.

Common configuration

The following snippet refers to configuration that is common to all VLAN based mechanism drivers.

enable_plugin networking-cisco https://github.com/openstack/networking-cisco

# Set openstack passwords here.  For example, ADMIN_PASSWORD=ItsASecret

# disable_service/enable_service here. For example,
# disable_service tempest
# enable_service q-svc

# bring in latest code from repo.  (RECLONE=yes; OFFLINE=False)




Driver configuration for a single UCSM

When the UCSM driver config needs to be specified in the single UCSM format, the following configuration options need to be specified.


# Single UCSM Config format

# Hostname to Service profile mapping for UCS Manager
# controlled compute hosts
ucsm_host_list=Hostname1:/Path1/Serviceprofile1, Hostname2:Serviceprofile2

# Service Profile Template config per UCSM. This is a mapping of Service Profile
# Profile Template to the list of UCS Servers (shown as S# below) controlled by
# this template.
sp_template_list = SPT1_path:SPT1:S1,S2 SPT2_path:SPT2:S3,S4

# Ethernet port names to be used for virtio ports
ucsm_virtio_eth_ports = neutron-eth0, neutron-eth1

# vNIC Template config per UCSM. This configuration can be used to specify
# which vNICs are physically connected to a neutron provider network. The
# configuration comprises of a mapping between the neutron provider network,
# the path for vNIC Template and the vNIC Template itself.
vnic_template_list = physnet1:vt_path1:vt11 physnet2:vt_path2:vt21

Driver configuration in multi-UCSM format

When the UCSM driver config needs to be specified in the multi-UCSM format, the following configuration options need to be specified.


# If there are multiple UCSMs in the setup, then the below
# config needs to be specified in the multi-UCSM format
# for each UCSM
ucsm_username = username
ucsm_password = password
ucsm_virtio_eth_ports = eth0, eth1
ucsm_host_list=Hostname1:Serviceprofile1, Hostname2:Serviceprofile2
sp_template_list = SPT1_path:SPT1:S1,S2,S3 SPT2_path:SPT2:S4,S5
vnic_template_list = physnet1:vt_path1:vt11 physnet2:vt_path2:vt21

Driver configuration to turn off SSL certificate checking

When the UCSM driver is attempting to connect to UCS Manager(s) that do not have a valid SSL certificate, this configuration can be used to simultaneously disable checking of SSL certificates on all UCS Manager(s). However, this is not recommended in production since it leaves the communication path insecure and vulnerable to man-in-the-middle attacks. To setup a valid SSL certificate, use information provided in section UCSM SSL Certificate Setup.


ucsm_https_verify = False

SR-IOV specific configuration

  1. On the controller nodes, update the list of available scheduler filters to include the PciPassthroughFilter.

    scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, ServerGroupAffinityFilter, PciPassthroughFilter
  2. On each of the compute nodes, additional configuration should be specified to allow a list of PCI devices. This whitelist is consumed by nova-compute to determine which PCI devices can used as SR-IOV devices. The following snippet shows how this configuration can be specified within the local.conf files of compute nodes. The vendor and product IDs for Cisco VICs are 1137 and 0071 respectively.

    pci_passthrough_whitelist = {"vendor_id":"1111","product_id":"aaaa","physical_network":"physnet1"}
  3. To specify the list of PCI devices that need to be configured by the UCSM driver, use the following configuration options. The UCSM driver supports SR-IOV configuration on Cisco VICs and Intel NICs by default. This parameter can be omitted if the SR-IOV NICs to be supported are one of the defaults. In the multi-UCSM format this configuration needs to be specified per UCSM.

    # SR-IOV and VM-FEX vendors supported by this driver
    # xxxx:yyyy represents vendor_id:product_id
    # This config is optional.
    supported_pci_devs=['2222:3333', '4444:5555']
  4. The configuration option to specify the list of application specific VLANs per physical network carrying SR-IOV traffic is as follows.

    # SR-IOV Multi-VLAN trunk config section
    test_network2=500,701 - 709