Changing a host's content view failed with an error "Content view and lifecycle environment must be provided together" on Red Hat Satellite.

Solution Verified - Updated -

Issue

  • Changing a host's content view failed with an error Content view and lifecycle environment must be provided together on Red Hat Satellite.
  • Unable to change a host's content view using the module redhat.satellite.host on Red Hat Satellite.
  • Changing the content host's content-view with redhat.satellite.host 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']}"
    

Environment

  • Red Hat Satellite 6.16
  • Red Hat Satellite 6.17

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content