Page MenuHomeVyOS Platform

Upgrading from 1.2 (crux) to 1.3 rolling causes vyos.configtree.ConfigTreeError for RADIUS settings
Closed, ResolvedPublicBUG

Description

When only set system login radius-source-address 1.1.1.1 is defined the migration script will fail

vyos@vyos# load foo.conf
Loading configuration from 'gef-br1.conf'
Traceback (most recent call last):
  File "/opt/vyatta/etc/config-migrate/migrate/system/11-to-12", line 40, in <module>
    for server in config.list_nodes(cfg_base + ['radius-server']):
  File "/usr/lib/python3/dist-packages/vyos/configtree.py", line 236, in list_nodes
    raise ConfigTreeError("Path [{}] doesn't exist".format(path_str))
vyos.configtree.ConfigTreeError: Path [b'system login radius-server'] doesn't exist

Migration script error: /opt/vyatta/etc/config-migrate/migrate/system/11-to-12: Command '['/opt/vyatta/etc/config-migrate/migrate/system/11-to-12', '/tmp/tmpbxw0scps']' returned non-zero exit status 1..

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-202009201335
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Config syntax change (migratable)
Issue type
Bug (incorrect behavior)

Event Timeline

c-po claimed this task.
c-po triaged this task as Normal priority.
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Config syntax change (migratable).
erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 12:53 PM