Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1087917 - [GUI/General sub-tab] Windows-based Template & Pool: Time Zone is blank when set to the global default
[GUI/General sub-tab] Windows-based Template & Pool: Time Zone is blank when ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-webadmin-portal (Show other bugs)
3.4.0
Unspecified Unspecified
high Severity medium
: ---
: 3.5.0
Assigned To: Shahar Havivi
meital avital
virt
: ZStream
Depends On:
Blocks: 1133612 rhev3.5beta 1156165 1159751
  Show dependency treegraph
 
Reported: 2014-04-15 11:02 EDT by Pavel Novotny
Modified: 2015-02-11 13:00 EST (History)
13 users (show)

See Also:
Fixed In Version: ovirt-3.5.0-alpha2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1159751 (view as bug list)
Environment:
Last Closed: 2015-02-11 13:00:41 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
screen: template with displayed blank TZ (125.47 KB, image/png)
2014-04-15 11:02 EDT, Pavel Novotny
no flags Details


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

  None (edit)
Description Pavel Novotny 2014-04-15 11:02:36 EDT
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:
100%

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 06:29:13 EDT
http://gerrit.ovirt.org/#/c/27461/ is relevant?
Comment 2 Shahar Havivi 2014-05-25 05:11:43 EDT
(In reply to Michal Skrivanek from comment #1)
> http://gerrit.ovirt.org/#/c/27461/ is relevant?
No,
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 04:11:29 EDT
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 06:54:10 EDT
Ok,
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 05:30:15 EDT
verified in ovirt-3.5.0-beta2
Comment 10 errata-xmlrpc 2015-02-11 13:00:41 EST
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.

https://rhn.redhat.com/errata/RHSA-2015-0158.html

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