[Bug 755857] New: when hostname is set by dhcp, the syslog name is not changed
https://bugzilla.novell.com/show_bug.cgi?id=755857 https://bugzilla.novell.com/show_bug.cgi?id=755857#c0 Summary: when hostname is set by dhcp, the syslog name is not changed Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: per@opensuse.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 When the hostname is set via DHCP, the syslog keeps using the old/default name. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c1
--- Comment #1 from Per Jessen
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c2
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c3
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c4
--- Comment #4 from Per Jessen
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c5
--- Comment #5 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c6
--- Comment #6 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c7
--- Comment #7 from Per Jessen
Well... then you seem to use another syslog daemon on 12.1 perhaps.
No, I'm using rsyslog.
=> rsyslog does not support update of the hostname on SIGHUP.
We are calling "rcsyslog reload" (uses kill -HUP) since ages when the hostname changes (systemd syslog.service file is using HUP as well).
Ah, I didn't know that. (In reply to comment #6)
Or more probably, on your 12.1 system the SYSLOG_REQUIRES_NETWORK is set to "yes", causing that rsyslog is started after network is up... and when rsyslog starts the hostname is already set by dhcp.
So I guess that is the regression on 12.2? The 12.1 systems I have are all mostly vanilla, i.e. without major changes. Where do I find SYSLOG_REQUIRES_NETWORK? It's not in any file under /etc (on 12.1). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c8
--- Comment #8 from Marius Tomaschewski
So I guess that is the regression on 12.2? The 12.1 systems I have are all mostly vanilla, i.e. without major changes. Where do I find SYSLOG_REQUIRES_NETWORK? It's not in any file under /etc (on 12.1).
It is a variable in /etc/sysconfig/syslog added by last updates. Before it were autodetected [autodetection rarely worked ;-)]. Anyway. The issue has been addressed upstream and will be committed as a bug fix when it works for us: http://git.adiscon.com/?p=rsyslog.git;a=commitdiff;h=d0a73d3449511392b115ca0... Going to apply and then we can test it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c9
--- Comment #9 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c10
--- Comment #10 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c11
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c12
--- Comment #12 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c13
--- Comment #13 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=755857
https://bugzilla.novell.com/show_bug.cgi?id=755857#c14
--- Comment #14 from Per Jessen
participants (1)
-
bugzilla_noreply@novell.com