Why repositories are appended with the postfix message "(Orphaned)" on Red Hat Satellite 6?
Environment
- Red Hat Satellite 6
Issue
- Why repositories are appended with the postfix message "(Orphaned)" on Red Hat Satellite 6?
- Attempting to disable a repository from Red Hat Satellite WebUI fails with error: Couldn't find repository set with id 'XXXX'.
Resolution
-
Make sure that the
manifesthas all the requiredsubscriptionsaccording to the previously synced repositories.OR
-
Undesired repositories can be removed forcefully using the following steps.
Caution: Please take a complete backup/snapshot of the Red Hat Satellite 6 server.-
Use the
hammercommand to find out the IDs of the affected(orphaned) repositories.# hammer repository list --organization-label=<LABEL> -
Execute the following command to remove the repository.
# foreman-rake console irb(main:001:0> User.current = User.first irb(main:002:0> ForemanTasks.sync_task(::Actions::Katello::Repository::Destroy, Katello::Repository.find(REPO_ID))where
REPO_IDis the appropriate ID as produced by thehammer command. -
Once done, execute the following command to delete associated packages from the filesystem.
# satellite-maintain service restart # foreman-rake katello:delete_orphaned_content RAILS_ENV=production >/dev/null
-
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.
Comments