annoying warnings #41

Closed
opened 2021-11-20 11:25:05 +00:00 by ungleich-gitea · 3 comments
ander@limukas:~$ cdist config -a -t cdist-test debian
WARNING: [428495]: cdist-test-debian10: Could not derive host_name for cdist-test-debian10, $host_name will be empty. Error is: [Errno -2] Name or service not known
WARNING: [428493]: cdist-test-debian9: Could not derive host_name for cdist-test-debian9, $host_name will be empty. Error is: [Errno -2] Name or service not known
WARNING: [428494]: cdist-test-debian8: Could not derive host_name for cdist-test-debian8, $host_name will be empty. Error is: [Errno -2] Name or service not known
INFO: [428495]: cdist-test-debian10: Starting configuration run
INFO: [428493]: cdist-test-debian9: Starting configuration run
INFO: [428494]: cdist-test-debian8: Starting configuration run

the reasons is that these machines don't have names registered, but are defined with some .ssh/config magic.

can we have somekind of config file option for supressing this kind of warnings?

also, what's $host_name? there is no mention about that in manual.

``` ander@limukas:~$ cdist config -a -t cdist-test debian WARNING: [428495]: cdist-test-debian10: Could not derive host_name for cdist-test-debian10, $host_name will be empty. Error is: [Errno -2] Name or service not known WARNING: [428493]: cdist-test-debian9: Could not derive host_name for cdist-test-debian9, $host_name will be empty. Error is: [Errno -2] Name or service not known WARNING: [428494]: cdist-test-debian8: Could not derive host_name for cdist-test-debian8, $host_name will be empty. Error is: [Errno -2] Name or service not known INFO: [428495]: cdist-test-debian10: Starting configuration run INFO: [428493]: cdist-test-debian9: Starting configuration run INFO: [428494]: cdist-test-debian8: Starting configuration run ``` the reasons is that these machines don't have names registered, but are defined with some `.ssh/config` magic. can we have somekind of config file option for supressing this kind of warnings? also, what's `$host_name`? there is no mention about that in manual.
Author
Owner

mentioned in commit 077989e8fd

mentioned in commit 077989e8fd749339da9a6ca8458b2c73ac71672c
Author
Owner

closed via commit 077989e8fd

closed via commit 077989e8fd749339da9a6ca8458b2c73ac71672c
Author
Owner

@ander Right, the variable name is wrong, it is __target_hostname. I will just remove those warnings. They don't have any special usage meaning anyway.

@ander Right, the variable name is wrong, it is `__target_hostname`. I will just remove those warnings. They don't have any special usage meaning anyway.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#41
No description provided.