IOError: [Errno 2] No such file or directory: '/etc/cloud/cloud.cfg'

Solution Verified - Updated -

Issue

When running insights-client --register on Red Hat Enterprise Linux Server 7.8 this error is displayed.

[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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content