config/puppet-manifests/src/modules/platform/manifests/pciirqaffinity.pp
zhipengl 282978996c Implement Pci Interrupt Affinity Agent
Create an agent which runs on each worker node to do pci interrupt
affinity work.
In this patch, it will add related puppet file to get configurations
from helm data.

Below test done and pass, see detailed test spec in story link.
1) deployment test with/without openstack application
2) Periodic audit pci irq affinity
3) Remove VM without sriov pci port
4) Remove VM with sriov pci port
5) Add VM without sriov pci port
6) Add VM with sriov pci port
7) Add VM without pci_irq_affinity_mask
8) Add VM without cpu policy set
9) VM resize test
10) Remove one pci port for VM
11) config file apply

Story: 2004600
Task: 28850

Change-Id: I798180800284feea4a694ff7c20b12dd24dda958
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
2019-05-10 01:42:13 +00:00

45 lines
901 B
Puppet

#
# Copyright (c) 2019 StarlingX.
#
# SPDX-License-Identifier: Apache-2.0
#
class platform::pciirqaffinity::params (
$openstack_enabled,
$openstack_auth_host,
$openstack_user_domain,
$openstack_project_domain,
$openstack_keyring_service,
$rabbit_host,
$rabbit_port,
$rabbit_userid,
$rabbit_password,
$rabbit_virtual_host,
) {}
class platform::pciirqaffinity
inherits ::platform::pciirqaffinity::params {
file { '/etc/pci_irq_affinity/config.ini':
ensure => 'present',
replace => true,
content => template('platform/pci-irq-affinity.conf.erb'),
}
}
class platform::pciirqaffinity::reload {
exec {'restart-pciirqaffinity-service':
command => 'systemctl restart pci-irq-affinity-agent.service',
}
}
class platform::pciirqaffinity::runtime {
include ::platform::pciirqaffinity
class {'::platform::pciirqaffinity::reload':
stage => post
}
}