StarlingX Puppet modules and manifests
Go to file
Andre Fernando Zanella Kantek 4f44c7eb9c Debian: apply network config with correct dependency
It was detected that on a system with 2 or more labeled interfaces
(those are ifupdown representation of "interfaces" that will only
configure the IP address on a base interface, e.g. interface vlan160
may have labeled interfaces vlan160:1 and vlan160:5) the order of
execution was preventing them to be applied because the execution
was happening before the base interface.

The execution was decided by the result of the find command, this
change applies a sort on the list to be sure that the execution is
respecting the base interface first, e.g:
i)  enp0s8 => enp0s8:1 => enp0s8.100 => enp0s8.100:1 => enp0s8.100:5
ii) vlan160 => vlan160:1 => vlan160:5

Also:
1) added a log message in case of ifup or ifdown failure
2) prevent the processing of labeled interfaces in
   verify_all_vlans_created()

Test Plan (Debian and CentOS):
PASS add interfaces and lock/unlock the controller
PASS edit interfaces and lock/unlock the controller
PASS remove interfaces and lock/unlock the controller

Closes-Bug: 1987918

Signed-off-by: Andre Fernando Zanella Kantek <AndreFernandoZanella.Kantek@windriver.com>
Change-Id: I7bc8d2bb25a74a5900b46936b59fc83b9251b53b
2022-08-26 17:54:31 -03:00
modules Add sysinv-conductor and sysinv-agent audit intervals into sysinv.conf 2022-07-15 14:27:07 +00:00
playbooks/tox-puppet-lint Fix puppet-lint errors 2019-10-09 15:39:30 -05:00
puppet-manifests Debian: apply network config with correct dependency 2022-08-26 17:54:31 -03:00
.gitignore Adding zuul jobs for new repo 2019-09-09 14:52:12 -05:00
.gitreview Add a .gitreview file to the new repo 2019-09-09 09:45:59 -05:00
.zuul.yaml Tox and Zuul job for the bandit code scan in stx/stx-puppet 2020-05-19 14:08:03 +00:00
CONTRIBUTING.rst Adding zuul jobs for new repo 2019-09-09 14:52:12 -05:00
HACKING.rst Adding zuul jobs for new repo 2019-09-09 14:52:12 -05:00
bindep.txt Add bindep target to tox 2021-02-19 12:14:38 -06:00
centos_build_layer.cfg Build layering, add layer build config file 2019-10-15 19:16:17 +08:00
centos_iso_image.inc Config file changes to add 'puppet-manifests modules/puppet-dcdbsync modules/puppet-dcmanager modules/puppet-dcorch modules/puppet-fm modules/puppet-mtce modules/puppet-nfv modules/puppet-patching modules/puppet-smapi modules/puppet-sshd modules/puppet-sysinv ' after relocation from 'stx-config' 2019-09-04 11:07:06 -04:00
centos_pkg_dirs Config file changes to add 'puppet-manifests modules/puppet-dcdbsync modules/puppet-dcmanager modules/puppet-dcorch modules/puppet-fm modules/puppet-mtce modules/puppet-nfv modules/puppet-patching modules/puppet-smapi modules/puppet-sshd modules/puppet-sysinv ' after relocation from 'stx-config' 2019-09-04 11:07:06 -04:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:12:38 -04:00
debian_pkg_dirs Update debian_pkg_dirs for puppet modules 2021-09-28 10:39:46 -04:00
pylint.rc Add pylint py3 portability checks for the stx-puppet repo 2021-09-13 17:24:43 +00:00
requirements.txt Adding zuul jobs for new repo 2019-09-09 14:52:12 -05:00
test-requirements.txt Calling an additional shell lint command from zuul 2021-06-03 09:42:07 -05:00
tox.ini Restrict puppet-lint json gem to older version 2021-11-24 16:06:07 -05:00