Bug 588951

Summary: This doesn't work: yast2 ntp-client add server=something: Cannot update the dynamic configuration policy.
Product: [openSUSE] openSUSE 11.3 Reporter: Silviu Marin-Caea <silviu_marin-caea>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: gabrielbyrnei, jreidinger, opensuse.lietuviu.kalba, zeke
Version: Final   
Target Milestone: Final   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Silviu Marin-Caea 2010-03-17 09:13:15 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.0) Gecko/20100115 SUSE/3.6.0-1.14 Firefox/3.6

Trying to add an NTP server from the command line.

# yast2 ntp-client add server=some.server.ro

Error:
Cannot update the dynamic configuration policy.

Reproducible: Always

Steps to Reproduce:
1. yast2 ntp-client add server=some.server.ro
2. error

Actual Results:  
Error:
Cannot update the dynamic configuration policy.

Expected Results:  
The ntp server should be added to /etc/ntpd.conf
Comment 1 Silviu Marin-Caea 2010-03-31 07:46:28 UTC
Works in M4
Comment 2 Mindaugas Baranauskas 2010-06-18 09:05:22 UTC
I can reproduce in RC1:

# yast2 ntp-client add server=some.server.ro

Klaida:
Cannot update the dynamic configuration policy.




But in /etc/ntp.conf (NOT in /etc/ntpd.conf !) I found that line was added :)
Comment 3 Mindaugas Baranauskas 2010-06-18 09:27:40 UTC
And if I do:
1. go to Date and Time module of YaST
2. go to change time, select good NTP server from list (lt.pool.ntp.org, that I added manually before)
3. After press Accept, I get an error (Cannot update the dynamic configuration policy.)
4. go to change Date and time again and select to sychonize via NTP
and you no longer see lt.pool.ntp.org!
5. Write in field „lt.pool.ntp.org“, check „Save NTP configuration“ and press to Accept.
You will get the same error again („Cannot update the dynamic configuration policy.“)
Comment 4 Mindaugas Baranauskas 2010-06-18 09:32:02 UTC
I found that after doing step #3 (press to accept),
In /etc/ntp.conf file appears one more space between words „lt.pool.ntp.org“ and „iburst“.



That is after #2 step:
server lt.pool.ntp.org iburst
restrict lt.pool.ntp.org  

That is after #3 step:
server lt.pool.ntp.org  iburst
restrict lt.pool.ntp.org
Comment 5 gabriel byrne 2011-03-24 17:52:21 UTC
I have this very same issue on openSUSE 11.3 x86_64.
When changing time and date and clicking accept i get the "cannot update the dynamic configuration policy".

This happens both on GUI YAST and command line YAST.
Comment 6 Kevin Adler 2011-04-27 20:55:29 UTC
I am also experiencing this problem in openSUSE 11.4 x86-64. Looking at NtpClient.ycp, I see the cause of the message:

 if (SCR::Execute(.target.bash, "/sbin/netconfig update") != 0) {
        // error message
        Report::Error(_("Cannot update the dynamic configuration policy."));
    }

running /sbin/netconfig update as root yields:

# /sbin/netconfig update
ATTENTION: You have modified /etc/resolv.conf.  Leaving it untouched...
You can find my version in /etc/resolv.conf.netconfig ...

# echo $?
20

Perhaps a solution would be to only update the ntp config:

/sbin/netconfig update -m ntp
Comment 7 Josef Reidinger 2011-06-22 13:32:13 UTC
fixed