OpenText product name changes coming to the community soon! Learn more.

Wikis - Page

Knowledge Doc: Unable to import RHEL 9 packages using rhn_import

0 Likes

It is important to keep the OS of the core's host server updated. This is one of the issues that users will encounter if the OS is too old.

Environment

Server Automation (SA) 2020.11, rollup 012 applied.
Operating System (where the core is installed): Red Hat Enterprise Linux (RHEL) 7.8

Situation

When importing the RHEL 9 packages using the redhat_import script, the following error message will pop up:

INFO [79564]: Packages 1191: 0 in policy, 0 in library, 1191 to import
INFO [79564]: Importing 1 of 1191: ModemManager-1.20.2-1.el9.x86_64
VERBOSE [79564]: Found package in cache
DEBUG [79564]: Traceback (most recent call last):
  File "./bin/word.py", line 30, in retryfunc
  File "/opt/opsware/pylibs3/pytwist/unitio.py", line 115, in uploadFile
    unit_ref = self.createUnit(params)
  File "/opt/opsware/pylibs3/pytwist/unitio.py", line 198, in createUnit
    self._parseException(errcode, errmsg, headers)
  File "/opt/opsware/pylibs3/pytwist/unitio.py", line 291, in _parseException
    raise exc
pytwist.com.opsware.common.PackageRepositoryCommunicationException: PackageRepositoryCommunicationException:None

Caused by:com.loudcloud.opsware_common.errors.OpswareError:OpswareError: wordclient.parseResponseError [ module: UploadCommand, method: execute, line: 130, hostname: <CORE_HOSTNAME>, timestamp: <TIMESTAMP> response:  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>502 Bad Gateway</title> </head><body> <h1>Bad Gateway</h1> <p>The proxy server received an invalid  response from an upstream server.<br />  </p> <hr> <address>Apache Server at 127.0.0.1 Port 81</address> </body></html> , traceback:  java.io.PrintWriter@1579c2fc, message:  Non-XMLRPC response received ]

DEBUG [79564]: Traceback (most recent call last):
  File "./bin/word.py", line 30, in retryfunc
  File "/opt/opsware/pylibs3/pytwist/unitio.py", line 115, in uploadFile
    unit_ref = self.createUnit(params)
  File "/opt/opsware/pylibs3/pytwist/unitio.py", line 198, in createUnit
    self._parseException(errcode, errmsg, headers)
  File "/opt/opsware/pylibs3/pytwist/unitio.py", line 291, in _parseException
    raise exc
pytwist.com.opsware.common.PackageRepositoryCommunicationException: PackageRepositoryCommunicationException:None

Excerpt from /var/log/opsware/mm_worbot/wordbot.err

INFO " RPMUnitHandler.getUploadArgs self.target_unit_id: None" - - - - ""

INFO "destination path is /var/opt/opsware/word/mmword_local/packages/software_repository/Linux/RHEL9-X86_64/ModemManager-1.20.2-1.el9.x86_64.rpm" - - - - ""

ERROR "ErrorName: cogbot.packageError
FaultCode: 101
Timestamp: <Timestamp>
Request: UNKNOWN
Module: rpm_handler.py
Method: readDescription
Line: 233
Params: {'package': '/var/opt/opsware/wordbot_tmp//word_temp/tmpcc0l6ky9/ModemManager-1.20.2-1.el9.x86_64.rpm', 'command': ['/bin/rpm', '-q', '--nodigest', '--queryformat', '%{SUMMARY}\n', '-p', '/var/opt/opsware/wordbot_tmp//word_temp/tmpcc0l6ky9/ModemManager-1.20.2-1.el9.x86_64.rpm'], 'results': ''}" - - - - ""

Labels:

Support Tips/Knowledge Docs
Comment List
Related
Recommended