RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1312135 - timezone.py defaults to LOCAL time when using a kickstart file where timezone is not specified
Summary: timezone.py defaults to LOCAL time when using a kickstart file where timezone...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Martin Kolman
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-25 20:25 UTC by William Skupa
Modified: 2016-11-03 23:22 UTC (History)
3 users (show)

Fixed In Version: anaconda-21.48.22.78-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-03 23:22:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:2158 0 normal SHIPPED_LIVE anaconda bug fix and enhancement update 2016-11-03 13:13:55 UTC

Description William Skupa 2016-02-25 20:25:34 UTC
Description of problem:
Kickstarting an install with Timezone not specified and instead selected from the GUI, causes the resulting system time to be off by the timezone selected offset because the hwclock and adjtime are set to LOCAL.

Removing the check for flags.automatedInstall from timezone.py corrects the issue

Version-Release number of selected component (if applicable):
anaconda 21.48.22.56-1

How reproducible:
100%

Steps to Reproduce:
1. Create a kickstart file for a fully automated install, except don't specify timezone or root's password 
2. Install system using kickstart file
3. After install verify time is now LOCAL by running:
    cat /mnt/sysimage/etc/adjtime

Actual results:
Installed system has the wrong time and is using LOCAL time

Expected results:
Installed system has the correct time and is using UTC time


Additional info:

Comment 2 Martin Kolman 2016-05-31 15:09:54 UTC
I think this is actually the correct behavior and it has been like this at least since RHEL 5 - if you do a kickstart installation and want the hwclock to be considered in UTC you need to use the --utc option:

RHEL 5: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-kickstart2-options.html
RHEL 6: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html
RHEL 7: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-kickstart-syntax.html

Of that does not really cover the case where you install with partial kickstart and want the user to set the timezone manually while assuming the hwclock is in UTC.

Maybe making it possible to just use "timezone --utc" without a timezone would work ? It would still ask the user to set the timezone but assume the hwclock is in UTC.

Comment 6 Marek Hruscak 2016-08-24 16:53:25 UTC
Option timezone --utc without specific timezone is now able to use to instruct anaconda to use UTC instead of LOCAL.

Comment 8 errata-xmlrpc 2016-11-03 23:22:39 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.

https://rhn.redhat.com/errata/RHEA-2016-2158.html


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