How to remove a Content View from a Lifecycle Environment in Red Hat Satellite 6
Environment
- Red Hat Satellite 6
Issue
- Is it possible to remove or demote a Content View from a Lifecycle environment?
Resolution
-
To remove a
Content Viewfrom aLifecycle Environmentusing the WebUI- Log in to the Satellite WebUI ->
Content->Content View-> Click on theContent View that is to be demoted. - Click on the
arrow next to the Promote buttonopposite the version that has to be removed, click onRemovefrom the drop-down menu. - Select the environment from which you want to remove the content view then click on
Next. - If there are any Content Hosts in this Environment that are using this version of the Content View, then you will be prompted to move these hosts to a different version of the Content View.
- Click on
Confirm Remove.
- Log in to the Satellite WebUI ->
-
To achieve this via command line, the
hammerutility can be used.-
Obtain the content view ID, lifecycle environment, organization ID using the below commands:
# hammer content-view list # hammer lifecycle-environment list # hammer organization list -
Plug the above values into the following command:
# hammer content-view remove-from-environment --lifecycle-environment <environment_name> --id <content_view_ID> --organization-id <organization_id>
-
For more KB articles/solutions related to Red Hat Satellite 6.x Content View Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Content View Issues
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.