StarlingX Integration and packaging
Go to file
Lucas Ratusznei Fonseca 64d4d7e522 Fix long labels cause ifup/ifdown commands to fail
When labels with more than 15 characters are used for addresses, the
ifup/ifdown commands fail due to the hard limit on label length imposed
by the linux kernel. The label for addresses in starlingx is composed by
the interface name followed by a colon and a string in the format
<network_id>-<address_id>, which can surpass the 15 character limit if
the interface name is sufficiently long.
For example: enp0s10vlan100:0-35
This commit patches the ifupdown package to add a conditional to the
source code where the 'ip' command is formatted. The conditional
replaces the label name by the interface name itself, if the former is
more than 15 characters long.

Test plan

Setup:
- System: AIO-SX
- Interfaces:
  > enp0s8: ethernet, assigned to mgmt and cluster-host networks
  > enp0s9: bond slave
  > enp0s10: bond slave
  > bond0longname: bond on top of enp0s9 and enp0s10, data
  > vlanshort: vlan id 300 on top of bond0longname, data
  > vlan400longname: vlan id 400 on top of bond0longname, data
- Both mgmt and cluster-host networks are dual stack
- All data interfaces have both IPv4 and IPv6 static addresses

[PASS] Run ifup command individually for all labels, check that
       addresses are correctly assigned
[PASS] Run ifdown command individually for all labels, check that
       addresses are correctly removed
[PASS] Manually change MTU value in /etc/network/interfaces.d/ifcfg-*
       files for enp0s8 and enp0s9, call /usr/local/bin/
       apply_network_config.sh script, check that all interfaces were
       correctly configured (changing MTU causes the affected interfaces
       and all the dependent ones and corresponding labels to be put
       down and up again, logs are in /var/log/user.log)

Story: 2011027
Task: 50775
Change-Id: I10da435437356c943d6e30341e7322e25094f407
Signed-off-by: Lucas Ratusznei Fonseca <lucas.ratuszneifonseca@windriver.com>
2024-08-07 13:20:16 -03:00
base Patch ca-certificates package 2024-07-15 13:47:07 +00:00
bmc Merge "Remove CentOS/OpenSUSE build support" 2024-05-22 15:14:42 +00:00
centos-debian-compat Update integ debian package ver based on git 2023-03-01 18:53:50 +00:00
ceph/ceph Merge "Remove absolute path of ceph binary from commands" 2024-08-01 20:13:48 +00:00
config Add ms_bind_ipv4 option to Ceph parameters 2024-07-26 16:28:59 -03:00
database/mariadb/debian Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
devstack Relocated some packages to repo 'utilities' 2019-09-05 20:31:36 -04:00
doc Fix tox-docs failing sphinx 2023-08-29 16:52:04 -03:00
docker/python-docker/debian Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
filesystem Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
golang-github-dev fix golang-github-golang-jwt-jwt-dev url 2024-01-31 10:39:34 -05:00
gpu/gpu-operator Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
grub Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
kata-containers/debian Add kata containers support for Starlingx 2023-12-04 11:58:54 +00:00
kubernetes Merge "debian-pkg: Uprev cni plugins" 2024-06-18 16:23:44 +00:00
ldap Merge "Change ldapsetpasswd error message" 2024-06-03 16:24:57 +00:00
networking Fix long labels cause ifup/ifdown commands to fail 2024-08-07 13:20:16 -03:00
ostree Support the single driver switch 2024-07-11 07:45:02 +00:00
python Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-06-04 14:28:48 +02:00
requests-toolbelt Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
security Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
storage-drivers/trident-installer/debian Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
tools Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
virt Remove CentOS/OpenSUSE build support 2024-05-01 16:39:19 -04:00
.gitignore Add Docker Registry Token Server 2019-01-08 11:42:04 -05:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:31 +00:00
.pylintrc tox: fixed warnings 2023-09-06 17:54:55 -03:00
.yamllint Add .yamllint file 2021-09-09 19:05:36 +03:00
.zuul.yaml tox: fixed warnings 2023-09-06 17:54:55 -03:00
bindep.txt Fix pylint zuul jobs failing due to libvirt-python and pkgconfig 2019-07-04 14:14:39 -05:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:36:35 -07:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:08:19 -04:00
debian_iso_image.inc Patch ca-certificates package 2024-07-15 13:47:07 +00:00
debian_pkg_dirs Patch ca-certificates package 2024-07-15 13:47:07 +00:00
debian_stable_docker_images.inc Disable n3000 container build 2024-07-03 10:43:52 -04:00
distroless_stable_docker_images.inc Remove Armada related packages from stx build 2023-09-27 18:58:13 +00:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:35 -07:00
README.rst Followup opendev cleanup and test jobs 2019-04-21 09:23:19 -05:00
test-requirements.txt Add default test framework 2018-06-11 13:45:22 -05:00
tox.ini tox: fixed warnings 2023-09-06 17:54:55 -03:00

integ

StarlingX Integration