Bug 101575
Summary: | Timezone Configuration doesn't work with Text Mode Setup Utility 1.13 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Paul McWatt <pmcwatt> |
Component: | redhat-config-date | Assignee: | Brent Fox <bfox> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-08-29 20:41:33 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 101028 |
Description
Paul McWatt
2003-08-04 10:04:27 UTC
worksforme... which languange do you have set? $ echo $LANG en_GB.UTF-8 This is intentional as i'm in the UK. If you like i can re-install with the US and retest. I can't reproduce this here in en_US.UTF-8 or en_GB.UTF-8. Please attach the list of installed packages (output of 'rpm -qa' should be enough, and if needed, feel free to prune anything out which isn't included in Taroon) so that I can verify that this isn't happening due to a missing dependency. Retested, installed B1 with 'minimal' option, selected en_US and en_GB as supported locales, installed redhat-config-date, ntp, and libcap. WorksForMe in both LANGs. I previously installed on three IBM x220 servers. I re-installed today on an IBM x440 server believing it to possibly be some BIOS/APIC problem..?? - but i got the same problem with the x440 and only taroon packages. I have the output of rpm-qa in a file or i can cut'n paste it here...let me know. Did some more testing this morning - in the above examples i am using 'setup' from a command line to try and use the Timezone Config. If i use the GUI it works fine. If i then go to the command line again - this also now works fine. I did this on all 4 machines and all 4 work okay only after using the GUI tool. Indeed, firstboot came up immediately after the install and set the date. I'll reinstall and bypass firstboot to see if it can be reproduced. I must be confused due to having reinstalled B1 too many times -- firstboot does not come up in a minimal install because it isn't installed. Does invoking /usr/sbin/timeconfig directly in situations where running it from setup doesn't work produce any error messages? I built another system using only taroon beta1. Confirmed using setup from cmdline didn't work. I then ran /usr/sbin/timeconfig and received the following information: Traceback (most recent call last): File "/usr/share/redhat-config-date/timeconf ig.py", line 102, in ? rc = TimezoneWindow()(screen, zonetab, timezoneBackend ) File "/usr/share/redhat-config-date/timeconfig.py", line 56, in __call__ l .setCurrent(self.default) File "/usr/lib/python2.2/site-packages/snack.py", lin e 100, in setCurrent self.w.listboxSetCurrent(self.item2key[item]) KeyError: G B [root@node3 root]# I installed RH9.0 with 2.4.20-18.9 kernel on my laptop 2 days ago and i have just noticed that this does the exact same thing. Timezone under setup doesn't work. /usr/sbin/timezoneconfig gives the same error as above. If i use the GUI it works okay and then using setup works okay. Thanks for the traceback -- it was exactly what I needed. I'm pretty sure this happens when redhat-config-date and anaconda disagree on what the set of valid timezone names is, and anaconda sets one in /etc/sysconfig/clock which redhat-config-date doesn't see in /usr/share/zoneinfo/zone.tab. This explains why I couldn't reproduce it on a system in the America/New_York timezone. Changing component to redhat-config-date. Ah, ok. I think we've found the root of the problem. For some reason, the text mode installer presents more timezones than the gui installer does. The gui installer and redhat-config-date only present the zones that are listed in the zone.tab file whereas the tui installer presents all the zone.tab entries as well as some additional zones. "GB" is one of these extra zones. I'm guessing that you did the system installation with the text mode installer since that seems to be the only way to pick the "GB" zone. The gui installer would have presented "Europe/London" instead of "GB". Since timeconfig didn't find "GB" in the zone.tab file, it was crashing. There are two parts to the solution here. 1) Change the text mode installer to use the same timezone list as everything else. The installer team is making this change at the moment. 2) Add a check to timeconfig to make sure the timezone is in the zone.tab file. If the timezone is not found in the list, it will default to "America/New_York". This allows timeconfig to avoid crashing if an invalid timezone is found in /etc/sysconfig/clock. I am adding this change now and the fix should appear in redhat-config-date-1.5.19-1. |