4ffbc2fe25
SR-IOV interfaces are currently only configured on charm installation and not after seubsequent reboots. The VFs need to be configured before the Neutron SR-IOV agent is started. Charms should also really not be involved in boot time system configuration. Due to these factors this commit adds a init script and corrensponding systemd unit file and upstart job to handle the boot-time configuration. Keep configure_sriov function for runtime configuration. Add warning about runtime configuration disrupting network service. Add restart of Neutron SR-IOV agent after runtime configuration. Cap value of sriov-numvfs at each interfaces sriov_totalvfs value. Change-Id: I7bde7217bf027db09ded35a262c214ccb11d6d86 Closes-Bug: #1697572
27 lines
717 B
Plaintext
27 lines
717 B
Plaintext
# Set to 1 to configure Virtual Functions on system startup.
|
|
{% if enable_sriov -%}
|
|
ENABLE=1
|
|
{% else -%}
|
|
ENABLE=0
|
|
{% endif -%}
|
|
|
|
# Blanket configuration for number of Virtual Functions across all NICs
|
|
#
|
|
# Possible configurations:
|
|
# auto - Set sriov_numvfs to value of sriov_totalvfs for each interface
|
|
# N - Set sriov_numvfs on all interfaces to N or value of sriov_totalvfs
|
|
# if sriov_totalvfs is less than N for that interface
|
|
#
|
|
{% if sriov_vfs_blanket -%}
|
|
VFS_BLANKET={{ sriov_vfs_blanket }}
|
|
{% else -%}
|
|
VFS_BLANKET=auto
|
|
{% endif -%}
|
|
|
|
# List of <device>:<numvfs> tuples for configuration of specific NICs
|
|
#
|
|
#VFS_LIST=ens3p0:16 ens4p0:16
|
|
{% if sriov_vfs_list -%}
|
|
VFS_LIST={{ sriov_vfs_list }}
|
|
{% endif -%}
|