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

Leapp: non UTF-8 locale make it fail

    • None
    • None
    • rhel-sst-upgrades
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

       

      "# leapp preupgrade --debug" finishes with error without producing any log

      Please provide the package NVR for which bug is seen:

       

      python-libs-2.7.5-94.el7_9.x86_64

      python2-leapp-0.16.0-1.el7_9.noarch

      How reproducible:

      Always

      Steps to reproduce

      1. Configure non UTF-8 locale, for example: "localectl set-locale LANG=fr_FR.iso88591" and then run "leapp preupgrade --debug"
      2. Or run "LANG=fr_FR.iso88591 leapp preupgrade --debug

      Expected results

      - Usual leapp output

      Actual results

       

      • No log generated under "/var/log/leapp", just:
      1. leapp preupgrade --debug
        Traceback (most recent call last):
          File "/bin/leapp", line 9, in <module>
            load_entry_point('leapp==0.16.0', 'console_scripts', 'leapp')()
          File "/usr/lib/python2.7/site-packages/leapp/cli/_init_.py", line 45, in main
            cli.command.execute('leapp version {}'.format(VERSION))
          File "/usr/lib/python2.7/site-packages/leapp/utils/clicmd.py", line 111, in execute
            args.func(args)
          File "/usr/lib/python2.7/site-packages/leapp/utils/clicmd.py", line 133, in called
            self.target(args)
          File "/usr/lib/python2.7/site-packages/leapp/cli/commands/upgrade/breadcrumbs.py", line 159, in wrapper
            breadcrumbs = BreadCrumbs(activity=f.name_)
          File "/usr/lib/python2.7/site-packages/leapp/cli/commands/upgrade/breadcrumbs.py", line 43, in _init_
            'packages': self._get_packages(),
          File "/usr/lib/python2.7/site-packages/leapp/cli/commands/upgrade/breadcrumbs.py", line 122, in _get_packages
            res = _call(cmd, lambda x, y: None, lambda x, y: None)
          File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/call.py", line 197, in _call
            **extra
          File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/call.py", line 62, in _multiplex
            linebufs[fd] += decoders[fd].decode(read)
          File "/usr/lib64/python2.7/codecs.py", line 296, in decode
            (result, consumed) = self._buffer_decode(data, self.errors, final)
        UnicodeDecodeError: 'utf8' codec can't decode byte 0xfb in position 50: invalid start byte

      Workaround in lab seems to be: "LANG=fr_FR.UTF-8 leapp preupgrade --debug" and "LANG=fr_FR.UTF-8 leapp upgrade --debug"

              leapp-notifications leapp-notifications
              rhn-support-raldaz Raúl Aldaz
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: