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

changing python3 using alternatives breaks OS components

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-9.4
    • subscription-manager
    • None
    • No
    • None
    • rhel-sst-csi-client-tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

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

      using alternatives to link /usr/bin/python3 to /usr/bin/python3.12

      I understand that scripts should use a specific version of the python interpreter in the hash-bang.

      https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/installing_and_using_dynamic_programming_languages/assembly_handling-interpreter-directives-in-python-scripts_installing-and-using-dynamic-programming-languages

      Shouldn't that apply to the scripts provided by the OS?

      What is the impact of this issue to you?

      Many OS components fail to function due to missing python modules.

      Just to name a few.

      • sos-collector
      • sos
      • subscription-manager

      Please provide the package NVR for which the bug is seen:

      this is not one specific package.

      How reproducible is this bug?:

      100% reproducable.

      Steps to reproduce

      1. Install python3.12
        dnf install python3.12
      2. set python3 to python3.12
        alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 300
        alternatives --set python3 /usr/bin/python3.12
      3. try to use sybscription-manager
        subscription-manager repos --list

      Expected results

      ----------------------------------------------------------
          Available Repositories in /etc/yum.repos.d/redhat.repo
      ----------------------------------------------------------
      Repo ID:   rhel-9-for-x86_64-appstream-rpms
      Repo Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
      Repo URL:  https://sawfish.comp.uvic.ca/pulp/repos/University_of_Victoria/DCS_Monthly/DCS_rh9/content/dist/rhel9/$releasever/x86_64/appstream/os
      Enabled:   1

      Repo ID:   rhel-9-for-x86_64-baseos-rpms
      Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
      Repo URL:  https://sawfish.comp.uvic.ca/pulp/repos/University_of_Victoria/DCS_Monthly/DCS_rh9/content/dist/rhel9/$releasever/x86_64/baseos/os
      Enabled:   1

      Repo ID:   rhel-9-for-x86_64-supplementary-rpms
      Repo Name: Red Hat Enterprise Linux 9 for x86_64 - Supplementary (RPMs)
      Repo URL:  https://sawfish.comp.uvic.ca/pulp/repos/University_of_Victoria/DCS_Monthly/DCS_rh9/content/dist/rhel9/$releasever/x86_64/supplementary/os
      Enabled:   1

      Actual results

      Traceback (most recent call last):
        File "/usr/lib64/python3.12/importlib/metadata/_init_.py", line 397, in from_name
          return next(cls.discover(name=name))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      StopIteration

              csi-client-tools-bugs CSI Client Tools Bugs Bot
              erempel@uvic.ca Evan Rempel (Inactive)
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: