-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ddclient: T5791: Adjust warning messages, minor refactor and smoketest updates #2607
ddclient: T5791: Adjust warning messages, minor refactor and smoketest updates #2607
Conversation
src/conf_mode/dns_dynamic.py
Outdated
@@ -30,6 +30,9 @@ | |||
config_file = r'/run/ddclient/ddclient.conf' | |||
systemd_override = r'/run/systemd/system/ddclient.service.d/override.conf' | |||
|
|||
# Dynamic interfaces that might not exist when the configuration is loaded | |||
dynamic_interfaces = ('peth', 'pppoe', 'sstpc') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can’t get what is wrong with “peth” interfaces? As it is configured statically during the boot process.
Do VLANs have the same issue?
Is there something wrong with priorities?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what's wrong with peth
either and don't have a way to validate myself. I am going by the forum feedback https://forum.vyos.io/t/issues-loading-config-on-re-boot-when-it-commits-and-runs-fine-beforehand/13000/1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest do not exclude (not dynamic ) interfaces under we don’t understand the root cause. It reasonable for PPPoE but not for “peth”, vlans, etc.
And this way you just “hide” the problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed 💯
3b3749e
to
cd20cab
Compare
cd20cab
to
20713b5
Compare
src/conf_mode/dns_dynamic.py
Outdated
if config['address'].startswith(dynamic_interfaces): | ||
Warning(f'Interface "{config["address"]}" does not exist for Dynamic DNS ' | ||
f'service "{service}" yet! The service will not operate correctly ' | ||
f'till the interface is configured.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The statement is incorrect. It should be:
'Interface "{config["address"]}" does not yet exist and con not be used for Dynamic DNS '
f'service "{service}" until it is up!')
PPPoE interfaces might be configured but not up as the BRAS connection has not yet been established or is currently disturbed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message updated.
20713b5
to
40b22ff
Compare
Change Summary
This is a follow-up to #2602 with the following changes:
exclude pseudo-interfaces from strict checkingTypes of changes
Related Task(s)
Related PR(s)
Component(s) name
dns dynamic
Proposed changes
How to test
Smoketest result
Checklist: