Page MenuHomeVyOS Platform

Conntrack-sync error - error adding listen-address command
Closed, ResolvedPublicBUG

Description

On VyOS 1.3.0, command set service conntrack-sync listen-address X.X.X.X is not working.

Steps to reproduce error:

# Create IP address
set interfaces ethernet eth0 address '192.168.0.50/24

## VRRP config:
set high-availability vrrp group FOO interface 'eth0'
set high-availability vrrp group FOO virtual-address '192.168.0.254/24'
set high-availability vrrp group FOO vrid '10'
set high-availability vrrp sync-group SG member 'FOO'

# conntrack-sync config:
set service conntrack-sync failover-mechanism vrrp sync-group 'SG'
set service conntrack-sync interface eth0

Commit at that points works well. Adding next commands introduces the error:

[email protected]# set service conntrack-sync listen-address 192.168.0.50
[edit]
[email protected]# commit
[ service conntrack-sync ]
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:      2022-02-11 11:25:48
Image version:    VyOS 1.3.0
Release train:    equuleus

Built by:         Sentrium S.L.
Built on:         Sun 19 Dec 2021 12:59 UTC
Build UUID:       ff458f8a-3ef7-453c-a7f9-4aeb6d03012e
Build commit ID:  2f691bb2f61e96-dirty

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  Bochs
Hardware model:   Bochs
Hardware S/N:     
Hardware UUID:    8db60a0f-442b-4234-8577-03b8cd2b0f98

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/conntrack_sync.py", line 130, in <module>
    verify(c)
  File "/usr/libexec/vyos/conf_mode/conntrack_sync.py", line 86, in verify
    if not is_addr_assigned(address):
  File "/usr/lib/python3/dist-packages/vyos/validate.py", line 108, in is_addr_assigned
    tmp = is_intf_addr_assigned(intf, addr)
  File "/usr/lib/python3/dist-packages/vyos/validate.py", line 50, in is_intf_addr_assigned
    return _is_intf_addr_assigned(intf, addr)
  File "/usr/lib/python3/dist-packages/vyos/validate.py", line 84, in _is_intf_addr_assigned
    if not _are_same_ip(address, ip_addr):
  File "/usr/lib/python3/dist-packages/vyos/validate.py", line 44, in _are_same_ip
    return inet_pton(f_one, one) == inet_pton(f_one, two)
TypeError: inet_pton() argument 2 must be str, not list

Details

Difficulty level
Unknown (require assessment)
Version
vyos-1.3.0
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Related Objects

Mentioned In
1.3.1