You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: dnf Command Returns "Failed loading plugin "osmsplugin": No module named 'librepo'"

edited Sep 10, 2024 1:50PM in Linux

APPLIES TO

Oracle Linux Cloud Service - Version Oracle Linux 8.0 and later
Oracle Cloud Infrastructure
Information in this document applies to any platform.

SYMPTOMS

OSMS enabled instance fails to list the repositories and reports the following error message  while running dnf(8) commands. 

$ dnf repolist
Failed loading plugin "osmsplugin": No module named 'librepo'
No Repositories available.

The /var/log/oracle-cloud-agent/plugins/osms/agent.log reports the following error.

2024-09-05 20:12:55,061 - INFO - gRPC Start: OSMS Agent service started
2024-09-05 20:13:04,429 - INFO - OSMS check completed successfully. Next check in 120  seconds.
2024-09-05 20:13:05,047 - INFO - Called action 'activate' with opc-request-id: <ID>; response- headers: {'Date': 'Thu, 05 Sep 2024 18:13:04 GMT', 'opc-request-id': '<ID>', 'Content-Type':  'application/json', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains;',  'Content-Length': '111'}; status: 404; took: 0.516s

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!