Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-3826

insights-client Could not update Ansible hostname

    • None
    • Moderate
    • rhel-sst-csi-client-tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      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):

      1. 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.

              jira-bugzilla-migration RH Bugzilla Integration
              rhn-support-ribanerj Riya Banerjee
              RH Bugzilla Integration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: