Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4795

Use of "uncommon" TZ names from the KS

    • rhel-sst-installer
    • ssg_front_door
    • 15
    • 0
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • None

      Description of problem:
      A customer is wondering why they can't use TZ like ROK, ROC and CET and Brazil/East.
      Has it been deliberately excluded?

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

      How reproducible:
      Always

      Steps to Reproduce:
      add into the kickstart:
      timezone --utc ROK

      Actual results:
      WARNING org.fedoraproject.Anaconda.Modules.Timezone:DEBUG:anaconda.modules.timezone.timezone:Timezone is set to ROK.
      WARNING org.fedoraproject.Anaconda.Modules.Timezone:WARNING:anaconda.modules.timezone.installation:Timezone ROK set in kickstart is not valid, falling back to default (America/New_York).

      Additional info:

      pyanaconda/modules/timezone/installation.py:

      61 def _correct_timezone(self):
      62 """Ensure the timezone is valid."""
      63 if not is_valid_timezone(self._timezone):
      64 # this should never happen, but for pity's sake
      65 log.warning("Timezone %s set in kickstart is not valid, "
      66 "falling back to default (America/New_York).", self._timezone)
      67 self._timezone = "America/New_York"

      pyanaconda/timezone.py:

      151 def is_valid_timezone(timezone):
      152 """
      153 Check if a given string is an existing timezone.
      154
      155 :type timezone: str
      156 :rtype: bool
      157
      158 """
      159
      160 etc_zones = ["Etc/" + zone for zone in ETC_ZONES]
      161
      162 return timezone in pytz.common_timezones + etc_zones

      $ python3 -c "import pytz; print(pytz.common_timezones)" |& grep -c ROK
      0

      $ python3 -c "import pytz; print(pytz.all_timezones)" |& grep -c ROK
      1

              rvykydal@redhat.com Radek Vykydal
              rhn-support-cbesson Christophe Besson
              anaconda-maint-list anaconda-maint-list
              Jan Stodola Jan Stodola
              Sagar Dubewar Sagar Dubewar
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: