Bug 974985 - When incorrect TZ is set, Time Zone select box in UI does not show default fallback but 'default: null'
Summary: When incorrect TZ is set, Time Zone select box in UI does not show default fa...
Keywords:
Status: CLOSED DUPLICATE of bug 988259
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.3.0
Assignee: Martin Betak
QA Contact: Jiri Belka
URL:
Whiteboard: virt
: 996519 (view as bug list)
Depends On: 988259 1000034
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-17 10:16 UTC by Jiri Belka
Modified: 2015-09-22 13:09 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-14 07:36:38 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jiri Belka 2013-06-17 10:16:43 UTC
Description of problem:
BZ972739 introduces/correct TZs handling but there's issue when one defines a value which is not valid TZ. Instead of showing default fallback value in UI dialog, there's 'default: null'.

# rhevm-config -g DefaultWindowsTimeZone
DefaultWindowsTimeZone: Europe/Prague version: general

this shows mentioned - default:null

Version-Release number of selected component (if applicable):
sf18

How reproducible:
100%

Steps to Reproduce:
1. set some stupid value as TZ
2. check Vm dialog in Admin portal
3.

Actual results:
defualt: null

Expected results:
default: (GMT) GMT Standard Time

Additional info:

Comment 1 Jiri Belka 2013-06-25 12:55:40 UTC
FYI (sf18.1) I tried to update the DB directly and I set time_zone for a vm to 'foobar'. In UI, TZ value is empty and the text box is white (thus it means, there is no 'default:...' in the text box). Although when starting such VM, its TZ is set to GMT for qemu-kvm process:

# ps ax | grep '[q]emu-kvm.*w2k3-02' | sed 's/ /\n/g;' | egrep "^w2k|^base"
w2k3-02
base=2013-06-25T12:45:51,driftfix=slew

# egrep "<name>|adjustment" /var/log/vdsm/vdsm.log | tail -n2
        <name>w2k3-02</name>
        <clock adjustment="0" offset="variable">

So maybe the UI should check if values in the DB are valid...

Comment 2 Jiri Belka 2013-06-25 12:59:44 UTC
Clarification:
TZ value has 'defualt:null' in UI when such VM is down.
TZ value has no value in UI when such VM is running.

Comment 3 Michal Skrivanek 2013-08-14 07:34:23 UTC
*** Bug 996519 has been marked as a duplicate of this bug. ***

Comment 4 Michal Skrivanek 2013-08-14 07:36:10 UTC
This issue is being addressed as a part of large timezone-related code refactoring in bug 988259

Comment 5 Michal Skrivanek 2013-08-14 07:36:38 UTC

*** This bug has been marked as a duplicate of bug 988259 ***


Note You need to log in before you can comment on or make changes to this bug.