theforeman / foreman_cockpit

:rocket: Display console and journal of Cockpit-enabled hosts in Foreman - now replaced by Remote Execution's cockpit integration
GNU General Public License v3.0
18 stars 13 forks source link

Network error not rescued #18

Open wiad opened 5 years ago

wiad commented 5 years ago

For some of my hosts the rescue part in ping_cockpit_service in app/models/concerns/foreman_cockpit/host_extensions.rb did not catch an error ('network unreachable') which leads to Foreman displaying an error message instead of just skipping the cockpit display on that host.

I had to add the error Errno::ENETUNREACH to the rescue list to make it work.