Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-35640 redhat.satellite.content_upload requires rpm module for python 3.12
  3. SAT-38682

[QE] redhat.satellite.content_upload requires rpm module for python 3.12

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Ansible Collection
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • sat-rocket
    • Satellite Rocket Sprint 4, Satellite Rocket Sprint 5

      Description of problem:
      The redhat.satellite.content_upload ansible module requires an rpm module built for python 3.12.
       

      How reproducible:
      Always
       

      Is this issue a regression from an earlier version:
      Yes
       

      Steps to Reproduce:

      1. Install Satellite 6.17.1 on RHEL 9.6

      2. Create and run an ansible playbook using redhat.satellite.content_upload.

      Actual behavior:
      [Describe the issue in detail, including what is happening and where]

      Returns an error message:

      ModuleNotFoundError: No module named 'rpm'
      fatal: [localhost]: FAILED! => {
          "changed": false,
          "invocation": {
              "module_args":

      {             "organization": "Acme Org",             "ostree_repository_name": null,             "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",             "product": "My custom product",             "repository": "My custom repository",             "server_url": "https://satellite.lab",             "src": "hello-0.0.1-1.el9.noarch.rpm",             "username": "admin",             "validate_certs": true         }

          },
          "msg": "Failed to import the required Python library (rpm) on satellite.lab's Python /usr/bin/python3.12. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"
      }

      QE Tracker for https://issues.redhat.com/browse/SAT-35640

              rh-ee-napathak Nakul Pathak
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: