Changing a host's content view failed with an error "Content view and lifecycle environment must be provided together" on Red Hat Satellite.
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.hoston Red Hat Satellite. -
Changing the content host's content-view with
redhat.satellite.hostmodule, 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.