Why repositories are appended with the postfix message "(Orphaned)" on Satellite 6?

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6

Issue

  • Why repositories are appended with the postfix message "(Orphaned)" on Satellite 6?

Resolution

  • Make sure that the manifest has all the required subscriptions according to the previously synced repositories.

    OR

  • Undesired repositories can be remove forcefully using below mentioned steps.
    Caution: Please take a complete backup/snapshot of Satellite.

1) Use hammer command to find out the IDs of the affected(orphaned) repositories:

# hammer repository list --organization-label=<LABEL>

2) Executed below 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_ID is the appropriate ID as produced by the hammer command.

3) Once done, execute below command to delete associated packages from the filesystem:

# katello-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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.