> Could you share your steps to reproduce the problem? Nothing special really, just a repo migrated from pulp2 which I now tried to remove. First I just tried to remove the repoversions containing packages, only keeping version 0, since I wanted to make a fresh sync:
http DELETE https://<pulpserver>/pulp/api/v3/repositories/rpm/rpm/3bf87b61-8211-45ce-8a0f-377358d2e32c/versions/1/ When that didn't work I tried to remove the repository altogether: http DELETE https://<pulpserver>/pulp/api/v3/repositories/rpm/rpm/3bf87b61-8211-45ce-8a0f-377358d2e32c/ Both actions results in the same error. I worked around this by modifying the repo using version 0 as base_version, rather than removing all existing repoversions, in order to make a fresh sync. And that worked. So it's not a pressing need, and I'm pretty sure I have removed repoversions from pulp2-migrated repos before. So i don't know whats different in this case. //Adam ________________________________ From: Tanya Tereshchenko <[email protected]> Sent: 10 February 2021 14:15 To: Winberg Adam Cc: [email protected] Subject: Re: [Pulp-list] how do I remove migration plugin and data Hi Adam, There is a story filed to add an ability to remove a plugin and its data. Please follow it here https://pulp.plan.io/issues/7822 and feel free to leave a comment to express your interest or reasons to remove. We plan to work on it relatively soon, but it was not on a high priority list for us. There are 2 primary goals covered by this story and both don't seem extremely urgent: - space, there is a lot of pulp2 data in pulp3 database that can be removed - compatibility with other plugins, migration plugin won't be compatible with all new pulp3 releases forever, it would be good to be able to remove it; at the moment it's compatible with pulpcore 3.7+. However if you think you are running into some problems because of having the plugin installed, it becomes important to address it sooner rather than later. I tried to reproduce your issue by removing the migrated File or RPM repository/publication/distribution and all worked for me. Could you share your steps to reproduce the problem? Here or feel free to file an issue in redmine https://pulp.plan.io/projects/migration/issues/new The versions of pulpcore and plugins would be good to know (since I'm testing on the latest), as well as which resources and how you delete them. Seeing a specific cli command, API call or your script might be helpful. Thank you, Tanya On Tue, Feb 9, 2021 at 8:44 AM Winberg Adam <[email protected]<mailto:[email protected]>> wrote: Hi, I've finished my 2to3 migration and now I want to get rid of pulp_2to3_migration related db entries. I cant find any documentation regarding this, what is the recommended procedure to do this? Right now I get errors when trying to remove certain repos: django.db.utils.IntegrityError: update or delete on table "core_publication" violates foreign key constraint "pulp_2to3_migration__pulp3_publication_id_221e8b1c_fk_core_publ" on table "pulp_2to3_migration_pulp2distributor" //Adam _______________________________________________ Pulp-list mailing list [email protected]<mailto:[email protected]> https://www.redhat.com/mailman/listinfo/pulp-list
_______________________________________________ Pulp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
