On Sun, Jun 6, 2021 at 10:20 AM Frank <beacon(a)videotron.ca> wrote:
I noticed this morning that network manager is spamming my log with
messages repeated every 3 or 4 seconds.
Jun 06 11:58:22 localhost.localdomain NetworkManager[787]: <info>
[1622995102.8297] policy: set-hostname: current hostname was changed
outside NetworkManager: fedora
Jun 06 11:58:22 localhost.localdomain NetworkManager[787]: <info>
[1622995102.8299] policy: set-hostname: set hostname to
localhost.localdomain (from address lookup)
It repeats these messages every 3 or 4 seconds.
This apparently has been going on for a few days at least.
There is a bug 1894137 - But it was filed last November.
Also
https://bugzilla.redhat.com/show_bug.cgi?id=1893223, filed last
October. And see:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.o...
For me, running "hostnamectl" showed that the static hostname was
"localhost" and the transient hostname was "fedora", apparently
because somebody thought the latter was a good idea. The nonmatching
hostnames triggered NetworkManager to spam the logs, which is the
second bug. Both should be fixed, but the fact that nobody is paying
attention to bugs filed last fall is not encouraging.
The workaround I resorted to was to use hostnamectl to make the static
and transient hostnames match.
--
Jerry James
http://www.jamezone.org/