Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #20245 - del orphan products on upgrade #6892

Merged
merged 1 commit into from Aug 7, 2017

Conversation

jlsherrill
Copy link
Member

as part of the upgrade to candlepin 2.0, orphaned products
(products that no longer have a subscription) are not carried
over to every org. So this rake task deletes them

@theforeman-bot
Copy link

Issues: #20245

@jlsherrill
Copy link
Member Author

To test:

install a katello 3.3
import a manifest
delete the manifest
upgrade to katello 3.4
go to the redhat repos page (likely will error)
drop this rake task onto the filesystem and run foreman-rake katello:upgrades:3.4:remove_unused_products

Copy link
Member

@cfouant cfouant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to a .rake file and rebase.

Once that is done, ACK! Works well, thanks @jlsherrill!

as part of the upgrade to candlepin 2.0, orphaned products
(products that no longer have a subscription) are not carried
over to every org.  So this rake task deletes them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants