Bug 2227297 - insights-client Could not update Ansible hostname
Summary: insights-client Could not update Ansible hostname
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: insights-client
Version: 7.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: CSI Client Tools Bugs
QA Contact: CSI Client Tools Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-28 16:05 UTC by Riya Banerjee
Modified: 2023-08-14 13:38 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-160348 0 None None None 2023-07-28 16:09:34 UTC
Red Hat Issue Tracker RHELPLAN-163790 0 None None None 2023-07-28 16:06:31 UTC

Description Riya Banerjee 2023-07-28 16:05:40 UTC
Description of problem:
When trying to use insights-client command line to update ansible hostname, it fails with the below error
~~~~
insights-client --ansible-host=xxxxxx.yyy.zzz
returns: Could not update Ansible hostname.
~~~~

Version-Release number of selected component (if applicable):
# insights-client --version
Client: 3.1.7
Core: 3.2.1-1

How reproducible:
Always

Additional info:
Below is the error which we get in the verbose output

2023-06-13 20:53:39,784 NETWORK insights.client.connection HTTP Status: 400 Bad Request
2023-06-13 20:53:39,784 NETWORK insights.client.connection HTTP Response Text: {"message":"Cloud request failed","headers":{},"response":"

{\n \"detail\": \"None is not of type 'object'\",\n \"status\": 400,\n \"title\": \"Bad Request\",\n \"type\": \"about:blank\"\n}
\n"}
2023-06-13 20:53:39,785 NETWORK insights.client.connection HTTP Response Message: Cloud request failed
2023-06-13 20:53:39,785 DEBUG insights.client.connection Debug Information:
HTTP Status Code: 400
2023-06-13 20:53:39,785 DEBUG insights.client.connection HTTP Status Text: Bad Request
2023-06-13 20:53:39,786 ERROR insights.client.connection Could not update Ansible hostname.


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