IOError: [Errno 2] No such file or directory: '/etc/cloud/cloud.cfg' が表示される
Issue
Red Hat Enterprise Linux Server
7.8 で Insights-client --register
を実行すると、以下のエラーが表示されます。
[root@server ~]# insights-client --register
Unable to fetch egg url. Defaulting to /release
Successfully registered host server.example
Automatic scheduling for Insights has been enabled.
Starting to collect Insights data for server.example
Traceback (most recent call last):
File "/var/lib/insights/newest.egg/insights/core/dr.py", line 965, in run
result = DELEGATES[component].process(broker)
File "/var/lib/insights/newest.egg/insights/core/dr.py", line 684, in process
return self.invoke(broker)
File "/var/lib/insights/newest.egg/insights/core/plugins.py", line 90, in invoke
return self.component(broker)
File "/var/lib/insights/newest.egg/insights/specs/default.py", line 282, in cloud_cfg
with open(relative_path, 'r') as f:
IOError: [Errno 2] No such file or directory: '/etc/cloud/cloud.cfg'
Environment
Red Hat Enterprise Linux 7.x
insights-client.noarch 0:3.1.1-1.el7_9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.