Project

General

Profile

Feature #31041

Insights snippet - Add --test-connection

Added by Leos Stejskal 12 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host registration
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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.

Associated revisions

Revision d5092649 (diff)
Added by Leos Stejskal 12 months ago

Fixes #31041 - Insights snippet - Add connection test

History

#1 Updated by The Foreman Bot 12 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8066 added

#2 Updated by The Foreman Bot 12 months ago

  • Fixed in Releases 2.3.0 added

#3 Updated by Leos Stejskal 12 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Tomer Brisker 11 months ago

  • Category set to Host registration

Also available in: Atom PDF