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
Auto-detect WORKER_HOSTNAME
on worker startup if not set explicitly
#4900
Auto-detect WORKER_HOSTNAME
on worker startup if not set explicitly
#4900
Conversation
* Make it unnecessary to specify `WORKER_HOSTNAME` in `workers.ini` if `hostname --fqdn` returns the expected name. * Tested the used functions of the `Net::Domain` module on multiple production worker hosts (using Leap 15.3 and 15.4). They behave as expected (so workers will still register using the short hostname and `WORKER_HOSTNAME` will be set to `hostname --fqdn`). * Required on worker level for the developer mode (independently of how the variable is handled by os-autoinst) * See https://progress.opensuse.org/issues/120261#note-8
Codecov Report
@@ Coverage Diff @@
## master #4900 +/- ##
=======================================
Coverage 98.14% 98.14%
=======================================
Files 379 379
Lines 35233 35233
=======================================
Hits 34581 34581
Misses 652 652
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Compare to os-autoinst/openQA#4900 Related progress issue: https://progress.opensuse.org/issues/120261
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.
How about you run this for a day on w11/w12 connected to OSD for testing?
I can do that. Of course it will only be worthwhile when also removing |
I have removed
Judging by the worker logs it already looks good. |
Could it be that this causes this problem? https://progress.opensuse.org/issues/120579 |
commit 72a731b Merge: 8f456e6 79ab25d Author: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> AuthorDate: Tue Nov 15 16:33:20 2022 +0000 Commit: GitHub <noreply@github.com> CommitDate: Tue Nov 15 16:33:20 2022 +0000 Merge pull request os-autoinst#4900 from Martchus/worker-hostname-dedection Auto-detect `WORKER_HOSTNAME` on worker startup if not set explicitly
WORKER_HOSTNAME
inworkers.ini
ifhostname --fqdn
returns the expected name.Net::Domain
module on multiple production worker hosts (using Leap 15.3 and 15.4). They behave as expected (so workers will still register using the short hostname andWORKER_HOSTNAME
will be set tohostname --fqdn
).