Bug 357311

Summary: firstboot refuses to go forward under Xen (due to hwclock error)
Product: [Fedora] Fedora Reporter: Eduardo Habkost <ehabkost>
Component: system-config-dateAssignee: Nils Philippsen <nphilipp>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: 142.bugzilla.redhat, katzj, wwoods
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:46 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: 235703    

Description Eduardo Habkost 2007-10-29 20:46:20 UTC
Description of problem:

When in a Xen guest, firstboot doesn't go forward on the "date and time" page, 
giving the error "Failed to synchronize hardware clock". hwclock wouldn't work 
under Xen.

Version-Release number of selected component (if applicable):
firstboot-1.4.39-1.fc8
system-config-date-1.9.15-1.fc8

How reproducible:
Always.

Steps to Reproduce:
- Install Fedora 8 on a Xen paravirt guest
- Go through firstboot screen on the first boot
- See the error when pressing "forward" on the date/time page

 
Actual results:
"Failed to synchronize hardware clock", and firstboot doesn't go forward.

Expected results:
User should be allowed to go forward. I don't know if it would be preferable 
to not allow setting date/time when under Xen, or the hwclock error should be 
just ignored.

Additional info:

I haven't installed my Xen guest using the Fedora 8 Test 3 image. I have 
installed using a rawhide mirror updated a few days ago.

I am upgrading the mirror and downloading F8-Test3 to confirm if the bug is 
present on latest Rawhide and/or F8-Test3. However, as time is short for 
Fedora 8, I am reporting the problem before I confirm it on a latest version.

Comment 1 Jeremy Katz 2007-10-29 21:04:08 UTC
system-config-date could give a better message here, but it's not a problem if
you don't select to use NTP.  And up until very recently, there was a bug
causing ntp to be selected by default.  With today's rawhide, confirmed that
that isn't the case.

Given this, dropping from blocker and reassigning 

Comment 2 Eduardo Habkost 2007-10-29 21:24:02 UTC
(In reply to comment #1)
> system-config-date could give a better message here, but it's not a problem 
if
> you don't select to use NTP.

I don't know if I understood you correctly, but it seems to be de opposite: 
the problem happens when NTP is _not_ selected. If I do select to use NTP, 
firstboot goes forward after contacting the NTP server.

At least selecting NTP is a workaround for the problem.

Comment 3 Nils Philippsen 2007-10-30 16:06:45 UTC
NB: Fixing this would cause translations to break, so I'll defer this until
after F8 is out.

Comment 4 Nils Philippsen 2007-10-30 16:21:38 UTC
NB2: Is there already a bug for the hwclock on Xen issue?

Comment 5 Eduardo Habkost 2007-10-30 16:30:24 UTC
(In reply to comment #4)
> NB2: Is there already a bug for the hwclock on Xen issue?

hwclock isn't supposed to work inside a Xen guest. It is a feature.

Comment 6 Eduardo Habkost 2007-10-30 16:55:11 UTC
I have discussed the problem with the team, and concluded enabling NTP is not 
a valid workaround for the problem. It makes no sense to run NTP in a guest 
because its clock is synced to the host.

Re-adding to F8Blocker.

Comment 7 Daniel Berrangé 2007-10-30 17:02:21 UTC
Furthermore, any user trying to install a guest will have no clue that 
'enabling NTP' is the thing which magically makes the 'next' button work again.
ALl they'll see is that firstboot refuses to goto the next screen. Enabling NTP
is not an easily discoverable workaround.

Comment 8 Jeremy Katz 2007-10-30 18:17:37 UTC
No, disabling NTP is the key.  And it is disabled by default currently.  It was
being enabled by default for a little while due to ntp changes.

Of course, the xen0 kernel being multiple revs back leads to it having weirdo
irq problems on one of my boxes and the other one is hanging when trying to do
anything with a guest.

Comment 9 Will Woods 2007-10-30 18:20:49 UTC
So - the default behavior (NTP disabled) works fine, but enabling NTP will cause
firstboot to get stuck? And NTP is known not to work in Xen guests anyway?

This sounds like a release note/common bug to me.

Comment 10 Eduardo Habkost 2007-10-30 18:25:35 UTC
NTP was alwasy disabled when the bug was reproduced. The problem happens when 
NTP is _disabled_, and enabling it isn't a valid workaround on a Xen guest.

Comment 11 Nils Philippsen 2007-10-30 20:08:27 UTC
So what exactly is s-c-date supposed to do in a Xen guest? I've the feeling it's
a bit late for stuff that needs UI changes that aren't i18n neutral.

Comment 12 Jeremy Katz 2007-10-30 20:15:37 UTC
We could try to open /dev/rtc and if we get ENODEVICE, then just not run hwclock
(or don't show any errors).

Realistically, we could probably get away with not showing errors about syncing
the hardware clock in general.  

Comment 13 Jeremy Katz 2007-10-30 20:17:06 UTC
(In reply to comment #12)
> Realistically, we could probably get away with not showing errors about syncing
> the hardware clock in general.  

Especially as we ignore it if you have ntp enabled already

Comment 14 Jeremy Katz 2007-10-30 21:31:22 UTC
Building with the return ignored for now -- Nils, if you want to take another
approach, get it built and send mail to rel-eng so that we can
include it.  Cut-off of when we're composing is probably morning US time.

Comment 15 Nils Philippsen 2007-10-30 21:46:19 UTC
I'll make this change upstream and will build 1.9.16 with it.

Comment 16 Nils Philippsen 2007-10-30 21:58:02 UTC
NB: I'll leave the dialog in, but make it a warning one.

Comment 17 Nils Philippsen 2007-10-30 21:59:03 UTC
*** Bug 355611 has been marked as a duplicate of this bug. ***

Comment 18 Nils Philippsen 2007-10-30 22:18:23 UTC
I've built system-config-date-1.9.16-1.fc8, mail to rel-eng will follow shortly.

Comment 19 Will Woods 2007-10-31 17:17:07 UTC
Confirmed fixed in today's rawhide - an error message is shown, but firstboot
continues after that.

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

Comment 21 Fedora Update System 2008-07-09 02:42:23 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.