StarlingX Integration and packaging
Go to file
Andre Kantek e7489fc82a Correct support for gateway address checking in dual-stack
This change contains the correct parsing for the real interface name,
removing the label part (after ':') from the IFACE variable to be
used by ndisc and arping

Also enhanced log messages, now registering test result as error if
failed or as info if it passes since this kind of information is very
useful for troubleshoot

Added a final ICMP echo test (using ping) to enhance diagnosis, but
only logging result as info since the gateway is under no obligation
to answer ECHO messages.

The scripts check-duplicate-ip and check-duplicate-ip6 were also not
parsing the interface name correctly to remove the label info.

The messages will appear with the pattern below in
/var/log/daemon.log:

IPv6:
- success messages:
info ifupdown: Gateway [addr] in [intf] is reachable via ICMPv6:NDP
info ifupdown: Gateway [addr] in [intf] is reachable via ICMP ECHO
- failure messages:
err ifupdown: Cannot find with ICMPv6:NDP default gateway [addr] in
the network where [intf] is connected to
info ifupdown: Gateway [addr] in [intf] is not reachable via ICMP ECHO

IPv4:
- success messages:
info ifupdown: Gateway [addr] in [intf] is reachable via ARP
info ifupdown: Gateway [addr] in [intf] is reachable via ICMP ECHO
- failure messages:
err ifupdown: Cannot find with ARP default gateway [addr] in the
network where [intf] is connected to
info ifupdown: Gateway [addr] in [intf] is not reachable via ICMP ECHO

Test Plan
=========

Setup: AIO-SX with dual-stack
configure OAM intrerface with the following variant interfaces
 - ethernet
 - vlan
 - bonding

[PASS] configure router gateway address on ethernet port and execute
        controller lock/unlock. Verify log messages
[PASS] configure router gateway address on vlan port and execute
        controller lock/unlock. Verify log messages
[PASS] configure router gateway address on bonding port and execute
        controller lock/unlock. Verify log messages

[PASS] remove router gateway address on ethernet port and execute
        controller lock/unlock. Verify log error messages
[PASS] remove router gateway address on vlan port and execute
        controller lock/unlock. Verify log error messages
[PASS] remove router gateway address on bonding port and execute
        controller lock/unlock. Verify log error messages

Story: 2011027
Task: 50982

Change-Id: I83b6eb7d927ae8886def1207b53c87f00c5bc680
Signed-off-by: Andre Kantek <andrefernandozanella.kantek@windriver.com>
2024-09-09 10:30:31 -03:00
base Disable usm-initialize.service in presets 2024-08-01 12:29:01 -03: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 Do not stop Ceph fixed monitor when disabling Controller 2024-08-23 21:24:12 +00:00
config Adds support for 3 monitors on AIO-DX 2024-07-29 17:42:29 -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 Correct support for gateway address checking in dual-stack 2024-09-09 10:30:31 -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 Update pylint test to use debian-bullseye nodeset 2024-08-23 12:33:23 -05: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 Update pylint test to use debian-bullseye nodeset 2024-08-23 12:33:23 -05:00
tox.ini Update pylint test to use debian-bullseye nodeset 2024-08-23 12:33:23 -05:00

integ

StarlingX Integration