[Bug 1234423] New: time settings during installation fails to add a server with hostname
https://bugzilla.suse.com/show_bug.cgi?id=1234423 Bug ID: 1234423 Summary: time settings during installation fails to add a server with hostname Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Installation Assignee: yast2-maintainers@suse.de Reporter: ohering@suse.com QA Contact: jsrain@suse.com Target Milestone: --- Found By: --- Blocker: --- Created attachment 879110 --> https://bugzilla.suse.com/attachment.cgi?id=879110&action=edit y2log-NqnRC2.tar.xz This might be a bug in augeas, or in the usage of augeas: Type Alt-n a few times, until the timezone selection window appears. Type Alt-s to open "Other settings ..." window. Type Alt-n to enter the hostname of the NTP server in the LAN. Type ntp<space> to overwrite the pre-selected text with the desired hostname. Type Alt-d to add the just added hostname to the list of remote servers. Type Alt-e to remove the already selected pool entry from the list. Type Alt-a to accept all changes and return to timezone selection window. Type Alt-n to proceed with installation. At the very end, an error appears that /etc/chrony.conf can not be written. The same procedure used to work with TW in the past, it works in SLE15-SP7. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234423 Stefan Hundhammer <shundhammer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|time settings during |time settings during YaST |installation fails to add a |installation fails to add a |server with hostname |server with hostname -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234423 https://bugzilla.suse.com/show_bug.cgi?id=1234423#c1 --- Comment #1 from Olaf Hering <ohering@suse.com> --- No error occurs if "ntp<space>" is replaced with "ntp<del>", to remove the trailing string and have no extra space at the end of the input string. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234423 https://bugzilla.suse.com/show_bug.cgi?id=1234423#c2 Stefan Hundhammer <shundhammer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Minor --- Comment #2 from Stefan Hundhammer <shundhammer@suse.com> --- So this is a problem with basic editing? Or is there trailing whitespace at the end of the content of that field that should be trimmed? Also, don't rely on those keyboard shortcuts too much: They might change with any minor change of the dialog, or even just with translations. If the label of a widget becomes shorter or longer, its priorities while resolving keyboard shortcut conflicts may change. I don't think there were many changes in this whole area at all (NTP server configuration, the whole YaST installation workflow) since almost the entire YaST team has been working on the new Agama installer almost exclusively except for some bug fixes. In particular, there was no change in libyui or libyui-qt (this installation used Qt according to the logs) which would be where any input field handling happens. I checked the attached logs, and I don't see any obvious error; but then of course, the whole y2log is riddled with useless error log lines that distract from any real problem. The only errors remotely in this area are:
15:06:45 <3> [Ruby] modules/NtpClient.rb(rescue in write_ntp_conf):818 Failed to write /etc/chrony.d/pool.conf: Augeas serializing error: Unexpected node '/store/server': can not match tree
(whatever that means)
15:06:45 <3> [Ruby] modules/NtpClient.rb(Write):404 Cannot write settings to '/etc/chrony.conf' -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234423 https://bugzilla.suse.com/show_bug.cgi?id=1234423#c3 Josef Reidinger <jreidinger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jreidinger@suse.com --- Comment #3 from Josef Reidinger <jreidinger@suse.com> --- Yeah, there is definitively sanitization error. Whole important log content is 2024-12-11 15:06:45 <1> dyn-3-136(3894) [Ruby] client/finish.rb(write):41 NTP pools added during installation {"1.opensuse.pool.ntp.org"=>{"iburst"=>nil}} 2024-12-11 15:06:45 <1> dyn-3-136(3894) [Ruby] client/finish.rb(write):43 NTP servers added during installation {"ntp "=>{"iburst"=>nil}} 2024-12-11 15:06:45 <3> dyn-3-136(3894) [Ruby] modules/NtpClient.rb(rescue in write_ntp_conf):818 Failed to write /etc/chrony.d/pool.conf: Augeas serializing error: Unexpected node '/store/server': can not match tree { "server" = "ntp " } with pattern ( { } | { /#comment/ = /[^\t\n\r ].*[^\t\n\r ]|[^\t\n\r ]/ } | { /server|peer|pool/ = /(25[0-5]?|2[0-4][0-9]|1[0-9]{2,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9A-Za-z]|[0-9A-Za-z][0-9A-Z\\a-z-]*[0-9A-Za-z])/ } | { /allow|deny|cmdallow|cmddeny/ = /((al((l[^\t\n\r !#%;]|[^\t\n\r !#%;l])[^\t\n\r !#%;]*|)|(a[^\t\n\r !#%;l]|[^\t\n\r !#%;a][^\t\n\r !#%;])[^\t\n\r !#%;]*|a|[^\t\n\r !#%;a]))?/ } | { /log/ } | { /broadcast/ } | { /fallbackdrift/ } | { /initstepslew/ } | { /local/ } | { /mailonchange/ } | { /makestep/ } | { /maxchange/ } | { /refclock/ } | { /smoothtime/ } | { /(conf|source)dir/ } | { /hwtimestamp/ } | { /(cmd|nts)?ratelimit/ } | { /tempcomp/ } | { /acquisitionport|authselectmode|bindacqaddress|bindaddress|bindcmdaddress|bindacqdevice|bindcmddevice|binddevice|clientloglimit|clockprecision|combinelimit|commandkey|cmdport|corrtimeratio|driftfile|dscp|dumpdir|hwclockfile|include|keyfile|leapsecmode|leapsectz|linux_freq_scale|linux_hz|logbanner|logchange|logdir|maxclockerror|maxdistance|maxdrift|maxjitter|maxsamples|maxslewrate|maxntsconnections|maxupdateskew|minsamples|minsources|nocerttimecheck|ntsdumpdir|ntsntpserver|ntsport|ntsprocesses|ntsrefresh|ntsrotate|ntsservercert|ntsserverkey|ntstrustedcerts|ntpsigndsocket|pidfile|ptpport|port|reselectdist|rtcautotrim|rtcdevice|rtcfile|sched_priority|stratumweight|user/ = /[^\t\n\r !#%;]+/ } | { /dumponexit|generatecommandkey|lock_all|manual|noclientlog|nosystemcert|rtconutc|rtcsync/ })* for /etc/chrony.d/pool.conf with lens /usr/share/augeas/lenses/dist/chrony.aug:405.10-.41: 2024-12-11 15:06:45 <3> dyn-3-136(3894) [Ruby] modules/NtpClient.rb(Write):404 Cannot write settings to '/etc/chrony.conf' that trailing space after ntp is wrong...and also its content as I do not think that ntp can be resolved to correct ntp server 2024-12-11 15:06:45 <1> dyn-3-136(3894) [Ruby] client/finish.rb(write):43 NTP servers added during installation {"ntp "=>{"iburst"=>nil}} so pools are correct, but server key is wrong and cause augeas failure -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com