Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-35640

redhat.satellite.content_upload requires rpm module for python 3.12

XMLWordPrintable

    • 5
    • False
    • ansible-collection-redhat-satellite-5.6.0
    • Important
    • Satellite Rocket Sprint 4, Satellite Rocket Sprint 5
    • sat-rocket
    • None
    • None
    • None
    • Manual

      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"
      }

              egolov@redhat.com Evgeni Golov
              myee@redhat.com Matthew Yee
              Matthew Yee
              Nakul Pathak Nakul Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: