Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1087917 - [GUI/General sub-tab] Windows-based Template & Pool: Time Zone is blank when set to the global default
Summary: [GUI/General sub-tab] Windows-based Template & Pool: Time Zone is blank when ...
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-webadmin-portal
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.5.0
Assignee: Shahar Havivi
QA Contact: meital avital
Whiteboard: virt
Depends On:
Blocks: rhev3.5beta 1156165 1159751
TreeView+ depends on / blocked
Reported: 2014-04-15 15:02 UTC by Pavel Novotny
Modified: 2018-12-09 17:45 UTC (History)
13 users (show)

Fixed In Version: ovirt-3.5.0-alpha2
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1159751 (view as bug list)
Last Closed: 2015-02-11 18:00:41 UTC
oVirt Team: ---
Target Upstream Version:

Attachments (Terms of Use)
screen: template with displayed blank TZ (deleted)
2014-04-15 15:02 UTC, Pavel Novotny
no flags Details

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0158 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.5.0 2015-02-11 22:38:50 UTC
oVirt gerrit 28168 master MERGED core: Set default timezone to a Templates and VMs Never

Description Pavel Novotny 2014-04-15 15:02:36 UTC
Created attachment 886512 [details]
screen: template with displayed blank TZ

Description of problem:
General sub-tab / "Time Zone" field for Windows-based template or VM pool is blank, when the template or pool is created with the same time zone as is the global default.
By "global default" is meant value of DefaultWindowsTimeZone in engine-config (or vdc_options DB table).

Version-Release number of selected component (if applicable):
rhevm-3.4.0-0.13.beta3.el6ev.noarch (av6)

How reproducible:

Steps to Reproduce:
1. Set global time zone to Alaskan time & restart engine:
   # engine-config -s DefaultWindowsTimeZone='Alaskan Standard Time'
   # service ovirt-engine restart
2. Create new VM template and make sure it has the same time zone as is the global default (edit template -> System -> Time Zone = "default: (GMT-09:00) Alaskan Standard Time")
3. Select the template and check on the General sub-tab that the Time Zone value is displayed here.

Actual results:
The "Time Zone:" value is blank (see attached screenshot).

Expected results:
There should be displayed: "Time Zone: Alaskan Standard Time"

Additional info:

The same applies for created VM pool.

If the time zone is different from the global default, then it's displayed on the General sub-tab. E.g., edit the template TZ to a different one and it's displayed, set it back to the default and it disappears from the sub-tab.

Comment 1 Michal Skrivanek 2014-05-23 10:29:13 UTC is relevant?

Comment 2 Shahar Havivi 2014-05-25 09:11:43 UTC
(In reply to Michal Skrivanek from comment #1)
> is relevant?
It doesn't work with any default timezone in the general tab (for templates and pools).
The reason is we don't set the template timezone value unless the user explicitly set it - the default value is null and the UI code check if the value has set.

When running a VM - if the timezone is null we are setting the timezone to its default (so there is no problem here).

We have two options for the solution:
1. Set it to default if the timezone is null at the UI.
2. Set the default timezone for Template/Pool at the Engine.

Comment 3 Michal Skrivanek 2014-05-27 08:11:29 UTC
I think 2. is the best way, we want to set it to the actual value during the creation

Comment 4 Shahar Havivi 2014-05-27 10:54:10 UTC
We need to set it in add/edit of VM, Template and Pool,
As well as adding upgrade script for objects with null value for TimeZone.

Comment 5 Lukas Svaty 2014-08-04 09:30:15 UTC
verified in ovirt-3.5.0-beta2

Comment 10 errata-xmlrpc 2015-02-11 18:00:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

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