Project

General

Profile

Actions

Feature #31041

closed

Insights snippet - Add --test-connection

Added by Leos Stejskal about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host registration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Issue:
If there is an issue with Foreman's Insights API,
insights-client --register command will fail with really long ugly HTML error.

Running `insights-client --test-connection` we can catch the error with
nice output like this:

Running Connection Tests...
=== Begin Upload URL Connection Test ===
Connection failed
=== End Upload URL Connection Test: FAILURE ===

=== Begin API URL Connection Test ===
Connection failed
=== End API URL Connection Test: FAILURE ===

Connectivity tests completed with some errors
See /var/log/insights-client/insights-client.log for more details.

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #34340: Insights snippet - remove connection testClosedLeos StejskalActions
Actions

Also available in: Atom PDF