Bug 441040

Summary: Error when trying to enable ntp if I check "Synchronize system clock"
Product: [Fedora] Fedora Reporter: Mary Ellen Foster <mefoster>
Component: system-config-dateAssignee: Nils Philippsen <nphilipp>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: poelstra
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.9.32-1.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-09 02:42:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 235706    

Description Mary Ellen Foster 2008-04-05 12:22:55 UTC
Description of problem:
If I go to the NTP tab, enable NTP, check "Synchronize system clock before
starting service" (under Advanced), and click OK, then I get the following
traceback on the console and the window doesn't close.

Traceback (most recent call last):
  File "/usr/share/system-config-date/scdMainWindow.py", line 86, in ok_clicked
    self.apply ()
  File "/usr/share/system-config-date/scdMainWindow.py", line 118, in apply
    if self.dateBackend.writeNtpConfig (ntpServers, ntpServerChoices,
ntpBroadcastClient, ntpLocalTimeSource, ntpStepTime) == None:
  File "/usr/share/system-config-date/dateBackend.py", line 162, in writeNtpConfig
    fd.write (server.ipaddrs[0] + "\n")
AttributeError: 'str' object has no attribute 'ipaddrs'

If I un-check "Synchronize ...", then it closes properly.

Version-Release number of selected component (if applicable):
system-config-date-1.9.28-1.fc9.noarch


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Nils Philippsen 2008-04-07 12:33:23 UTC
Should be fixed in system-config-date-1.9.29 which is building right now.

Comment 2 John Poelstra 2008-04-07 16:58:33 UTC
will this include being prompted to set the time/date and enable ntp in firstboot?

Comment 3 Nils Philippsen 2008-04-07 17:05:37 UTC
Well, I've fixed the traceback, if there's anything else, tell me ;-).

Comment 4 John Poelstra 2008-04-07 19:36:00 UTC
i'll look for it in rawhide tomorrow.  thanks

Comment 5 Jon Stanley 2008-04-14 14:51:47 UTC
this no longer occurs.  Also, s-c-date is in firstboot even! :)

Comment 6 Fedora Update System 2008-07-01 09:53:32 UTC
system-config-date-1.9.32-1.fc8 has been submitted as an update for Fedora 8

Comment 7 Fedora Update System 2008-07-09 02:42:25 UTC
system-config-date-1.9.32-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.