Page MenuHomeVyOS Platform

rename dynamic dns interface breaks ddclient.cache permissions
Closed, ResolvedPublicBUG

Description

once committing an interface rename under:

services dns dynamic
rename interface eth0.400 to interface pppoe0

the ddclient cache file becomes unaccesible by the ddclient service although the file does have (RW) permissions.

once renaming the interface it is not possible to delete or run show status of the dynamic dns interface.

the errors that shows up:

delete service dns dynamic 
commit
[ service dns dynamic ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/dynamic_dns.py", line 281, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/dynamic_dns.py", line 261, in apply
    if os.path.exists(dyndns['cache_file']):
TypeError: 'NoneType' object is not subscriptable
delete [ service dns dynamic ] failed

by renaming the interface back to the original interface and committing the error still occurs.

it seems like there's a permissions issue with the ddclient.cache file.
However:
when setting the permissions to 666 the same issue occurs.
when the file is deleted it's recreated but with 600 permissions.

Details

Version
1.2.5
Is it a breaking change?
Behavior change

Event Timeline

This also happens on service deletion

image.png (406×723 px, 26 KB)

c-po claimed this task.
c-po edited a custom field.

Tested with:

set service dns dynamic interface eth0.203 service custom host-name 'test.vyos.net'
set service dns dynamic interface eth0.203 service custom login 'vyos'
set service dns dynamic interface eth0.203 service custom password 'vyos'
set service dns dynamic interface eth0.203 service custom protocol 'dyndns2'
set service dns dynamic interface eth0.203 service custom server 'vyos.io'
c-po changed Version from 1.2.6-epa2 to 1.2.5.
c-po moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.6) board.