Bug 825159

Summary: Upgrade changed /etc/localtime link destination
Product: [Fedora] Fedora Reporter: Zdenek Kabelac <zkabelac>
Component: glibcAssignee: Jeff Law <law>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fweimer, jakub, law, pfrankli, schwab
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-25 21:17:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zdenek Kabelac 2012-05-25 09:22:35 UTC
Description of problem:

Todays rawhide upgrade for glibc-2.15.90-2.fc18.x86_64 is causing some problems - one of them is that my link file /etc/localtime pointed to ../usr/share/zoneinfo/US/Eastern, while I'm pretty sure it's been pointing to ../usr/share/zoneinfo/Europe/Prague before the update.

Changing the link back to right place fixed display of time again with proper time zone.

Version-Release number of selected component (if applicable):
glibc-2.15.90-2.fc18.x86_64


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jeff Law 2012-05-25 15:03:24 UTC
Zdenek, what are the contents of your /etc/sysconfig/clock?  

The trigger script should extract the timezone from /etc/sysconfig/clock and fix /etc/timezone appropriately.  I did some simple sniff testing of that code as part of the update, so I'm rather surprised you ran into this problem.

Comment 2 Zdenek Kabelac 2012-05-25 16:19:35 UTC
# ls -la /etc/sysconfig/clock 
-rw-r--r-- 1 root root 159 29. říj  2008 /etc/sysconfig/clock


# cat /etc/sysconfig/clock 
# The ZONE parameter is only evaluated by system-config-date.
# The time zone of the system is defined by the contents of /etc/localtime.
ZONE="Europe/Prague"


I'm really not sure what happened - I'm just describing the situation
after booting my system after 'yum upgrade' - when I've noticed
I'm in the ETD time zone. I'm not sure who changed the link,
so I just filed the bugzilla agains link owner - glibc.

Here is the portion of yum log from today - and as you may see something time-weird happened right after glibc-common update -  10 -> 4


May 25 10:36:52 Updated: glibc-common-2.15.90-2.fc18.x86_64
May 25 04:36:54 Updated: glibc-2.15.90-2.fc18.x86_64
May 25 04:36:55 Updated: libxml2-2.8.0-1.fc18.x86_64
May 25 04:36:55 Updated: 1:libreoffice-ure-3.5.4.2-1.fc18.x86_64
May 25 04:36:57 Updated: 1:qt-4.8.2-1.fc18.x86_64
May 25 04:36:57 Updated: rpm-libs-4.10.0-1.fc18.x86_64
May 25 04:36:58 Updated: rpm-4.10.0-1.fc18.x86_64
May 25 04:37:00 Updated: 1:qt-x11-4.8.2-1.fc18.x86_64
May 25 04:37:00 Updated: rpm-build-libs-4.10.0-1.fc18.x86_64
May 25 04:37:01 Updated: corosynclib-2.0.1-1.fc18.x86_64
May 25 04:37:01 Updated: corosync-2.0.1-1.fc18.x86_64
May 25 04:37:01 Updated: 12:dhcp-libs-4.2.4-0.6.rc2.fc18.x86_64
May 25 04:37:02 Installed: libusbx-1.0.11-2.fc18.x86_64
May 25 04:37:02 Updated: subversion-libs-1.7.5-1.fc18.x86_64
May 25 04:37:02 Updated: 32:bind-license-9.9.0-6.fc18.noarch
May 25 04:37:03 Updated: 32:bind-libs-9.9.0-6.fc18.x86_64
May 25 04:37:03 Updated: 32:bind-libs-lite-9.9.0-6.fc18.x86_64
May 25 04:37:04 Updated: subversion-1.7.5-1.fc18.x86_64
May 25 04:37:04 Updated: colord-0.1.21-1.fc18.x86_64
May 25 04:37:05 Installed: libusbx-devel-doc-1.0.11-2.fc18.noarch
May 25 04:37:05 Installed: libusbx-devel-1.0.11-2.fc18.x86_64
May 25 04:37:05 Updated: 12:dhcp-common-4.2.4-0.6.rc2.fc18.x86_64
May 25 04:37:07 Updated: qtwebkit-2.2.2-1.fc18.x86_64
May 25 04:37:11 Updated: 1:qt-devel-4.8.2-1.fc18.x86_64
May 25 04:37:12 Updated: glibc-headers-2.15.90-2.fc18.x86_64
May 25 04:37:12 Updated: glibc-devel-2.15.90-2.fc18.x86_64
May 25 04:37:13 Updated: kmod-libs-8-2.fc18.x86_64
May 25 04:37:13 Updated: kmod-8-2.fc18.x86_64
May 25 04:37:13 Updated: httpd-tools-2.4.2-9.fc18.x86_64
May 25 04:37:13 Updated: libv4l-0.8.8-1.fc18.x86_64
May 25 04:37:14 Updated: graphviz-2.28.0-18.fc18.x86_64
May 25 04:37:14 Updated: graphviz-gd-2.28.0-18.fc18.x86_64
May 25 04:37:18 Updated: wireshark-1.6.8-1.fc18.x86_64
May 25 04:37:18 Updated: libudisks2-1.97.0-3.fc18.x86_64
May 25 04:37:18 Updated: 1:autocorr-cs-3.5.4.2-1.fc18.noarch
May 25 04:37:18 Updated: redhat-lsb-submod-security-4.1-3.fc18.x86_64
May 25 04:37:19 Updated: redhat-lsb-core-4.1-3.fc18.x86_64
May 25 04:37:19 Updated: redhat-lsb-cxx-4.1-3.fc18.x86_64
May 25 04:37:19 Updated: redhat-lsb-languages-4.1-3.fc18.x86_64
May 25 04:37:19 Updated: redhat-lsb-printing-4.1-3.fc18.x86_64
May 25 04:37:19 Updated: fontpackages-filesystem-1.44-4.fc18.noarch
May 25 04:37:20 Updated: 1:libreoffice-opensymbol-fonts-3.5.4.2-1.fc18.noarch
May 25 04:37:20 Updated: 1:autocorr-en-3.5.4.2-1.fc18.noarch
May 25 04:37:38 Updated: 1:libreoffice-core-3.5.4.2-1.fc18.x86_64
May 25 04:37:39 Updated: 1:libreoffice-writer-3.5.4.2-1.fc18.x86_64
May 25 04:37:39 Updated: 1:libreoffice-ogltrans-3.5.4.2-1.fc18.x86_64
May 25 04:37:40 Updated: 1:libreoffice-impress-3.5.4.2-1.fc18.x86_64
May 25 04:37:40 Updated: 1:libreoffice-presenter-screen-3.5.4.2-1.fc18.x86_64
May 25 04:37:41 Updated: 1:libreoffice-graphicfilter-3.5.4.2-1.fc18.x86_64
May 25 04:37:41 Updated: 1:libreoffice-pdfimport-3.5.4.2-1.fc18.x86_64
May 25 04:37:41 Updated: 1:libreoffice-draw-3.5.4.2-1.fc18.x86_64
May 25 04:37:43 Updated: 1:libreoffice-calc-3.5.4.2-1.fc18.x86_64
May 25 04:37:47 Updated: glibc-debuginfo-common-2.15.90-2.fc18.x86_64
May 25 04:37:47 Updated: redhat-lsb-submod-multimedia-4.1-3.fc18.x86_64
May 25 04:37:47 Updated: redhat-lsb-desktop-4.1-3.fc18.x86_64
May 25 04:37:47 Updated: redhat-lsb-4.1-3.fc18.x86_64
May 25 04:37:52 Updated: glibc-debuginfo-2.15.90-2.fc18.x86_64
May 25 04:37:53 Updated: 1:libreoffice-base-3.5.4.2-1.fc18.x86_64
May 25 04:37:53 Updated: 1:libreoffice-xsltfilter-3.5.4.2-1.fc18.x86_64
May 25 04:37:53 Updated: 1:libreoffice-math-3.5.4.2-1.fc18.x86_64
May 25 04:37:55 Updated: 1:libreoffice-langpack-cs-3.5.4.2-1.fc18.x86_64
May 25 04:37:56 Updated: udisks2-1.97.0-3.fc18.x86_64
May 25 04:37:57 Updated: wireshark-gnome-1.6.8-1.fc18.x86_64
May 25 04:37:58 Updated: google-talkplugin-2.9.10.0-1.x86_64
May 25 04:37:59 Updated: httpd-2.4.2-9.fc18.x86_64
May 25 04:37:59 Updated: dracut-018-74.git20120522.fc18.noarch
May 25 04:38:00 Updated: 1:autofs-5.0.6-19.fc18.x86_64
May 25 04:38:00 Updated: glibc-static-2.15.90-2.fc18.x86_64
May 25 04:38:00 Updated: qtwebkit-devel-2.2.2-1.fc18.x86_64
May 25 04:38:01 Updated: 12:dhclient-4.2.4-0.6.rc2.fc18.x86_64
May 25 04:38:01 Updated: colord-gtk-0.1.21-1.fc18.x86_64
May 25 04:38:01 Updated: subversion-perl-1.7.5-1.fc18.x86_64
May 25 04:38:01 Updated: 32:bind-utils-9.9.0-6.fc18.x86_64
May 25 04:38:02 Updated: corosynclib-devel-2.0.1-1.fc18.x86_64
May 25 04:38:02 Updated: rpm-python-4.10.0-1.fc18.x86_64
May 25 04:38:02 Updated: rpm-build-4.10.0-1.fc18.x86_64
May 25 04:38:02 Updated: 1:qt-mysql-4.8.2-1.fc18.x86_64
May 25 04:38:03 Updated: libxml2-devel-2.8.0-1.fc18.x86_64
May 25 04:38:03 Updated: libwsman1-2.3.0-2.fc18.x86_64
May 25 04:38:04 Updated: shared-mime-info-1.0-4.fc18.x86_64
May 25 04:38:05 Updated: libxml2-python-2.8.0-1.fc18.x86_64
May 25 04:38:05 Updated: xorg-x11-drv-vmmouse-12.9.0-1.fc18.x86_64
May 25 04:38:05 Updated: rsyslog-5.8.11-1.fc18.x86_64
May 25 04:38:05 Updated: numad-0.5-4.20120522git.fc18.x86_64
May 25 04:38:06 Updated: rasqal-0.9.29-1.fc18.x86_64
May 25 04:38:06 Updated: glibc-utils-2.15.90-2.fc18.x86_64
May 25 04:38:06 Updated: ipmitool-1.8.11-11.fc18.x86_64
May 25 04:38:07 Updated: iproute-3.4.0-1.fc18.x86_64
May 25 04:38:07 Updated: radvd-1.8.5-4.fc18.x86_64
May 25 04:38:07 Updated: slv2-0.6.6-9.fc18.x86_64
May 25 04:38:07 Updated: nscd-2.15.90-2.fc18.x86_64
May 25 04:38:08 Updated: libtdb-1.2.10-15.fc18.x86_64
May 25 04:38:08 Updated: python-feedparser-5.1.2-2.fc18.noarch
May 25 04:38:09 Updated: xkeyboard-config-2.5.1-2.fc18.noarch
May 25 04:38:10 Updated: glibc-2.15.90-2.fc18.i686
May 25 04:38:11 Updated: 1:qt-4.8.2-1.fc18.i686
May 25 04:38:14 Updated: 1:qt-x11-4.8.2-1.fc18.i686
May 25 04:38:14 Updated: libtdb-1.2.10-15.fc18.i686
May 25 04:38:15 Updated: libxml2-2.8.0-1.fc18.i686
May 25 04:38:15 Installed: libusbx-1.0.11-2.fc18.i686
May 25 04:38:16 Updated: kmod-libs-8-2.fc18.i686
May 25 04:38:17 Erased: libusb1-devel-doc-1.0.9-0.6.rc1.fc18.noarch
May 25 04:38:17 Erased: libusb1-devel-1.0.9-0.6.rc1.fc18.x86_64
May 25 04:38:18 Erased: libusb1
May 25 04:38:35 Erased: libusb1

Comment 3 Jeff Law 2012-05-25 21:09:38 UTC
Thanks.  Further research has shown this is a known issue.  If a file marked %config(noreplace) changes from a file to a symlink, RPM silently replaces the file with the symlink without creating a .rpmsave.  Joys.   I'll work around this bit of RPM braindamage.