From now on, the configured FEC driver and VF driver will be available
as "extra information" (in the 'extra_info' field, together with
configured number of VFs) that can be compared with the actual settings
collected from PCI inventory for the host.
Test Plan:
PASS: Fresh install of r/stx7.0 with subsequent FEC configuration;
PASS: Backup & restore of r/stx7.0 after FEC configuration;
PASS: Patch of r/stx5.0 with previous FEC configuration;
PASS: Upgrade from r/stx5.0 with previous FEC configuration to patched
r/stx6.0.
PASS: Upgrade from patched r/stx5.0 with previous FEC configuration to
patched r/stx6.0.
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/835304 /opendev. org/starlingx/ config/ commit/ a7b47f6197597a6 9c22c052f2c74b0 a5fa1e541e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit a7b47f6197597a6 9c22c052f2c74b0 a5fa1e541e
Author: Douglas Henrique Koerich <email address hidden>
Date: Fri Mar 25 14:14:41 2022 -0300
Prevent overwrite of sensible FEC configuration
Regardless these precedent changes: /review. opendev. org/c/starlingx /config/ +/733724, /review. opendev. org/c/starlingx /config/ +/761176 and /review. opendev. org/c/starlingx /config/ +/801055
https:/
https:/
https:/
that intended to avoid the overwrite of values in database for FEC
device configuration with the actual (sometimes empty or temporary)
values coming from PCI inventory report, it has been still noticed that
under some unexpected reboot such sensible, stored data could be lost.
This change implements for FEC driver and VF driver the same approach /review. opendev. org/c/starlingx /config/ +/791531, /review. opendev. org/c/starlingx /config/ +/795850 and /review. opendev. org/c/starlingx /config/ +/808756
taken for number of configured VFs versus actual VFs introduced by the
changes:
https:/
https:/
https:/
From now on, the configured FEC driver and VF driver will be available
as "extra information" (in the 'extra_info' field, together with
configured number of VFs) that can be compared with the actual settings
collected from PCI inventory for the host.
Test Plan:
PASS: Fresh install of r/stx7.0 with subsequent FEC configuration;
PASS: Backup & restore of r/stx7.0 after FEC configuration;
PASS: Patch of r/stx5.0 with previous FEC configuration;
PASS: Upgrade from r/stx5.0 with previous FEC configuration to patched
r/stx6.0.
PASS: Upgrade from patched r/stx5.0 with previous FEC configuration to
patched r/stx6.0.
Closes-Bug: #1966471 ef0a02117a10e36 dc9c5aa9dda
Signed-off-by: Douglas Henrique Koerich <email address hidden>
Change-Id: I5e2e6f55856d5e