Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-34800

Unable to update or change a Host's content view using the redhat.satellite.host module on Satellite v6.16

XMLWordPrintable

    • 5
    • False
    • ansible-collection-redhat-satellite-5.1.1-1
    • Moderate
    • None
    • None
    • None
    • To Do

      Description of problem: when using the 'redhat.satellite.host' module with the following task:

      ~~~~~~~~~ 

      name: Change a host's CV
        delegate_to: localhost
        redhat.satellite.host:
      name: "client.example.org"
      content_view: "Some_CV"
      organization: "Some_Organization"
      lifecycle_environment: "Library"
      ~~~~~~~~~

       
      The module returns the following error from the API:

       ======= 
      "msg": "Failed to ensure entity state: ForemanApiException: Error while performing update on hosts: 422 Client Error: Unprocessable Content for url: https://satellite.example.com/api/hosts/123 - {'id': 123, 'errors':

      {'base': ['Content view and lifecycle environment must be provided together']}

      , 'full_messages': ['Content view and lifecycle environment must be provided together']}"
       =======

      How reproducible: Yes

       

      Is this issue a regression from an earlier version: No

       

      Steps to Reproduce:

      • Try to change the host's content-view using the 'redhat.satellite.host' module with the following task:

      ~~~

      name: Change a host's CV
        delegate_to: localhost
        redhat.satellite.host:
      name: "client.example.org"
      content_view: "Some_CV"
      organization: "Some_Organization"
      lifecycle_environment: "Library"
      ~~~

      Actual behavior:

      Changing a Host's content view failed with the following error: "Content view and lifecycle environment must be provided together"

      Expected behavior:

      The host's content-view should be updated successfully.

      Business Impact / Additional info:

      NA

              egolov@redhat.com Evgeni Golov
              rhn-support-ankulkar Anand Kulkarni
              Ian Ballou, Jeremy Lenz
              Radek Mynar Radek Mynar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: