Oracle Linux – OSMS Registration issue. No module named requests.
APPLIES TO:
Linux OS – Version Oracle Linux 8
Linux x86_64 on Oracle Public Cloud
SYMPTOMS:
OSMS is enabled and running as per /var/log/oracle-cloud-agent/agent.log
:
2024/04/04 16:16:53.108159 instance.go:148: publicName OS Management Service Agent for plugin osms
2024/04/04 16:16:53.108231 policy.go:81: Plugin [osms] has [Enable] state
2024/04/04 16:16:53.109993 health.go:107: health check of plugin:[osms], desiredState:[Enable], currentState:[running], status:[running] version:[1.39.0-11004] err:[<nil>]
However, OSMS registration is failing with an error according to /var/log/oracle-cloud-agent/plugins/osms/agent.log
:
2024-04-04 16:08:58,160 - ERROR - Error checking actions (next check in 960 seconds): Command: ['osms', '--log-level', 'INFO', 'register', '--server-url', 'http://127.0.0.1:9003/ XMLRPC'] failed (1): stderr: b'Traceback (most recent call last):\n File "/usr/sbin/osms", line 15, in <module>\n from osms import cli\n File "/usr/share/oracle-cloud-agent/ plugins/osms/osms/cli.py", line 9, in <module>\n import requests\nImportError: No module named requests\n' stdout: b.
Tagged:
0