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

insights-core-3.6.9.3-1 RPM does not have v2.py file

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • rhel-10.2
    • insights-core
    • None
    • insights-core-3.6.10.1-3.el10
    • Yes
    • Critical
    • 1
    • insights-adv-framework
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Framework Sprint Nov10-Nov28
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      The newest RPM build of insights-core for RHEL 10.2 (insights-core-3.6.9.3-1) does not have v2.py file. When insights-client is run, it fails with an error "ModuleNotFoundError: No module named 'insights.client.phase.v2'".

      What is the impact of this issue to you?

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

      # rpm -q insights-client insights-core insights-core-selinux selinux-policy
      insights-client-3.10.2-2.el10.noarch
      insights-core-3.6.9.3-1.el10.noarch
      insights-core-selinux-3.7.0-1.el10.noarch
      selinux-policy-42.1.11-1.el10.noarch
      

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Install the newest package of insights-core from AppStream - insights-core-3.6.9.3-1.el10.noarch
      2. Run insights-client

      Expected results

      Using the following packages:

      # rpm -q insights-client insights-core insights-core-selinux selinux-policy
      insights-client-3.10.2-2.el10.noarch
      insights-core-3.6.9.2-1.el10.noarch
      insights-core-selinux-3.6.9.2-1.el10.noarch
      selinux-policy-42.1.11-1.el10.noarch
      

      insights-client works fine:

      # insights-client
      Starting to collect Insights data for kvm-02-guest20.lab.eng.rdu2.redhat.com
      Writing RHSM facts to /etc/rhsm/facts/insights-client.facts ...
      Uploading Insights data.
      Successfully uploaded report for kvm-02-guest20.lab.eng.rdu2.redhat.com.
      # rpm -ql insights-core | grep v2.py
      /usr/lib/python3.12/site-packages/insights/client/phase/v2.py
      

      Actual results

      # insights-client
      Traceback (most recent call last):
        File "/usr/bin/insights-client", line 5, in <module>
          from insights_client import _main
        File "/usr/lib/python3.12/site-packages/insights_client/__init__.py", line 9, in <module>
          from insights.client.phase.v2 import get_phases
      ModuleNotFoundError: No module named 'insights.client.phase.v2'
      # rpm -ql insights-core | grep v2.py
      #
      

              rhn-support-xialiu Xiangce Liu
              pkoprda@redhat.com Peter Koprda
              Xiangce Liu Xiangce Liu
              Qianqian Zhang Qianqian Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: