Bug 2227297
| Summary: | insights-client Could not update Ansible hostname | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Riya Banerjee <ribanerj> |
| Component: | insights-client | Assignee: | CSI Client Tools Bugs <csi-client-tools-bugs> |
| Status: | NEW --- | QA Contact: | CSI Client Tools Bugs <csi-client-tools-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.9 | CC: | ahumbe, cmarinea, csnyder, gtanzill, jsamir, qianzhan, redakkan |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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.