stx-puppet/modules
Thales Elero Cervi 6e4f3df557 Handle sysinv dpdk_elf_file configuration
As part of Debian migration, the sysinv procedure to check DPDK
compatibility for each host interface was also updated in order to make
it customizable in case one would like to use other virtual switch than
the delivered OVS with DPDK support [1].

For other virtual switches, that might or not rely on DPDK, the ELF
target that sysinv uses to verify interfaces compatibility must be
customizable and the query_pci_id script is already able to use custom
values [2].

This change adds to puppet the system configuration that will write, if
defined, the correct value for the ELF path. This platform parameter can
be overridden on the hiera data so puppet will update sysinv.conf
accordingly.
For now, when deploying StarlingX with vswitch_type=ovs-dpdk we will
override it to the query_pci_id script default value (i.e., the
/usr/sbin/ovs-vswitchd ELF) using the respective sysinv puppet module
and let it as an example for anyone that is later using a different
vswitch which requires this customization [3].

[1] https://review.opendev.org/c/starlingx/config/+/872979
[2] 2cd0b1e14a/sysinv/sysinv/sysinv/scripts/query_pci_id (L34)
[3] https://review.opendev.org/c/starlingx/config/+/887106

Test Plan:
PASS - Build puppet-manifest package
PASS - Build a custom stx ISO with the new package
PASS - Bootstrap AIO-SX virtual system (vswitch_type=none)
       and ensure the hiera data was not modified neither
       sysinv.conf was updated
PASS - Bootstrap AIO-SX virtual system (vswitch_type=ovs-dpdk)*
       and ensure the hiera data was modified correctly and
       sysinv.conf was updated accordingly
* A successful complete installation with ovs-dpdk is still blocked by
a bug that will be solved soon:
https://bugs.launchpad.net/starlingx/+bug/2008124

Story: 2010317
Task: 46389

Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com>
Change-Id: Iaf31d3b5e2fc03b4783473e4329a780a516a9d43
2023-06-30 10:03:43 -03:00
..
puppet-dcdbsync Update puppet debian package ver based on git 2023-02-22 22:21:16 +00:00
puppet-dcmanager Update puppet debian package ver based on git 2023-02-22 22:21:16 +00:00
puppet-dcorch Update puppet debian package ver based on git 2023-02-22 22:21:16 +00:00
puppet-fm Update puppet debian package ver based on git 2023-02-22 22:21:16 +00:00
puppet-mtce Update puppet debian package ver based on git 2023-02-22 22:21:16 +00:00
puppet-nfv Disable guest plugin loading in VIM 2023-04-05 08:31:49 -03:00
puppet-patching Update puppet debian package ver based on git 2023-02-22 22:21:16 +00:00
puppet-smapi Update puppet debian package ver based on git 2023-02-22 22:21:16 +00:00
puppet-sshd Update debian packages for pkg-versioning 2023-03-07 16:42:01 -03:00
puppet-sysinv Handle sysinv dpdk_elf_file configuration 2023-06-30 10:03:43 -03:00
tox.ini Update tox.ini to work with tox 4 2022-12-27 01:28:45 +00:00