Bug 1733479 - Client unable to upload directly to cloud.redhat.com if client rhsm is registered to sat6
Summary: Client unable to upload directly to cloud.redhat.com if client rhsm is regist...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Hybrid Cloud Console (console.redhat.com)
Classification: Red Hat
Component: Client
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: jcrafts
QA Contact: Pavol Kotvan
Kevin Blake
URL:
Whiteboard:
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2019-07-26 08:28 UTC by Peter Vreman
Modified: 2023-09-07 20:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-15 16:30:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Vreman 2019-07-26 08:28:54 UTC
Description of problem:
When debugging an uplaod issue i want to test to uplaod directly to Insights.
So far all my tries failed.

Even using the most empty configuration to does not work:
---------
$ cat /tmp/insights.conf
[insights-client]
auto_config=False
proxy=http://fibsproxydev:8080
----------
Even is this case although auto_config is explicitly False is 


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Register system to Sat6
2. Try to connect insighst client to connect to cloud.redhat.com without Sat6, e.g. run insights-client --test-connection
3.

Actual results:
Step 2 is impossible, it always tries to auto configure sat6 and fails to upload, and even if auto_config fallsback then then the url of cert-api.redhat.com is incorrect.

Expected results:
Step 2 is possible. I think multiple issues are here:
- Make sure autho_config is not done when it is disabled
- Add default config of cloud.redhat.com and use it if auto_config=False
- Add option to ignore the sat6 (e.g. --ignore-sat6)


Additional info:

Comment 1 Peter Vreman 2019-07-26 08:34:16 UTC
Output of --verbose that shows although 'auto_config: False' the client still does 'insights.client.auto_config Trying to autoconfigure...'
 
-------
2019-07-26 08:20:59,200    DEBUG insights.client.phase.v1 CONFIG:     analyze_container: False
    analyze_file: False
    analyze_image_id: False
    analyze_mountpoint: False
    authmethod: BASIC
    auto_config: False
    auto_update: True
    base_url: None
....
2019-07-26 08:20:59,201    DEBUG insights.client.auto_config Trying to autoconfigure...
2019-07-26 08:20:59,204    DEBUG rhsm.https Using m2crypto wrappers to provide httplib and ssl
2019-07-26 08:20:59,221    DEBUG insights.client.auto_config Checking if system is subscription-manager registered
2019-07-26 08:20:59,221    DEBUG insights.client.auto_config System is subscription-manager registered
...
2019-07-26 08:20:59,272    DEBUG insights.client.utilities Client version: 3.0.3-3.el6
2019-07-26 08:20:59,272    DEBUG insights.client.utilities Core version: 3.0.112-1
-------

Tested all on RHEL6.10


Note You need to log in before you can comment on or make changes to this bug.