Page MenuHomeVyOS Platform

VRRP - Error if using IPv6 Link Local as hello source address
Closed, ResolvedPublicBUG

Description

While using an IPv6 Link Local address as hello-source-address, an unexpected error occurs and commit fails:

vyos@vyos# commit
[ high-availability ]
VyOS had an issue completing a command.
We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
  https://support.vyos.io/
- Make sure you are running the latest version of VyOS available at:
  https://vyos.net/get/
- Consult the community forum to see how to handle this issue:
  https://forum.vyos.io
- Join us on Slack where our users exchange help and advice:
  https://vyos.slack.com
When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your
  business policy requires it)
- and include all the information presented below
Report time:      2023-09-18 05:05:42
Image version:    VyOS 1.5-rolling-202309170024
Release train:    current
Built by:         [email protected]
Built on:         Sun 17 Sep 2023 01:47 UTC
Build UUID:       ba889739-2b8e-4de4-8bd9-10b665f66abb
Build commit ID:  2ca594db0d1fe2
Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest
Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    a944d98c-89ce-48e2-a019-9c74215f6854
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/high-availability.py", line 214, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/high-availability.py", line 199, in apply
    if is_ipv6_tentative(interface, ipv6_address):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/utils/network.py", line 147, in is_ipv6_tentative
    for addr_info in data[0]['addr_info']:
                     ~~~~^^^
IndexError: list index out of range
[[high-availability]] failed
Commit failed
[edit]
vyos@vyos#

Details

Difficulty level
Easy (less than an hour)
Version
1.5-rolling-202309170024
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)