Page MenuHomeVyOS Platform

An issue with config migration (system ntp server)
Closed, ResolvedPublicBUG

Description

When we don't have configured NTP in CLI (1.1.8), we receive config migration error

[   24.395249] vyos-router[902]: Starting VyOS router: migrateTraceback (most recent call last):
[   24.406371] vyos-router[902]: File "/opt/vyatta/etc/config-migrate/migrate/ntp/0-to-1", line 27, in <module>
[   24.418339] vyos-router[902]: for server in config.list_nodes(base):
[   24.430329] vyos-router[902]: File "/usr/lib/python3/dist-packages/vyos/configtree.py", line 232, in list_nodes
[   24.442299] vyos-router[902]: raise ConfigTreeError("Path [{}] doesn't exist".format(path_str))
[   24.454305] vyos-router[902]: vyos.configtree.ConfigTreeError: Path [b'system ntp server'] doesn't exist

Details

Difficulty level
Unknown (require assessment)
Version
1.2.5
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Unknown Object (User) created this task.Aug 18 2020, 8:56 PM
Unknown Object (User) added a comment.Aug 19 2020, 7:30 AM

This happens only when in config before migration exists nodes system 'ntp' without other params.

Viacheslav changed the task status from Open to In progress.May 13 2021, 7:12 PM
Viacheslav claimed this task.

PR https://github.com/vyos/vyos-1x/pull/840
Can be "cherry-picked" to "equuleus" and "crux"

vyos@r6-roll# load ntp.conf
Loading configuration from 'ntp.conf'
Load complete. Use 'commit' to make changes effective.
[edit]
vyos@r6-roll#
c-po moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.8) board.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.