Page MenuHomeVyOS Platform

NTP: when running inside a VRF op-mode commands do not work
Closed, ResolvedPublicBUG

Description

vyos@vyos:~$ show ntp
ntpq: read: Connection refused

vyos@vyos:~$ show ntp info
ntpq: read: Connection refused
ntpq: read: Connection refused

vyos@vyos:~$ show ntp server 0.de.pool.ntp.org
Exiting, name server cannot be used: Temporary failure in name resolution (-3)20 Mar 13:23:46 ntpdate[7409]: name server cannot be used: Temporary failure in name resolution (-3)

To reproduce:

set system ntp listen-address '1192.0.2.41'
set system ntp listen-address '2001:db8::41'
set system ntp server 0.de.pool.ntp.org prefer
set system ntp vrf 'MGMT'

Running the op-mode command within the VRF context works:

vyos@vyos:~$ sudo ip vrf exec MGMT ntpq -n -c peers
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*193.30.121.7    131.188.3.223    2 u  277 1024  377   19.942    0.011   0.363

Details

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