[Pulp-list] how do I remove migration plugin and data

Tanya Tereshchenko ttereshc at redhat.com
Wed Feb 10 15:42:57 UTC 2021


Could you please share the pulp-2to3-migration plugin version as well?
Thanks!

Tanya

On Wed, Feb 10, 2021 at 4:26 PM Winberg Adam <Adam.Winberg at smhi.se> wrote:

> Forgot my versions:
>
>
> python3-pulp-rpm-3.7.0-1.el8.noarch
> python3-pulpcore-3.7.3-1.el8.noarch
>
> So I'm not on latest, will update and test again
>
>
>
> ------------------------------
> *From:* Winberg Adam
> *Sent:* 10 February 2021 16:15
> *To:* Tanya Tereshchenko
> *Cc:* pulp-list at redhat.com
> *Subject:* Re: [Pulp-list] how do I remove migration plugin and data
>
>
> > 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 <ttereshc at redhat.com>
> *Sent:* 10 February 2021 14:15
> *To:* Winberg Adam
> *Cc:* pulp-list at redhat.com
> *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 <Adam.Winberg at smhi.se> 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
>> Pulp-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/pulp-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20210210/f7383580/attachment.htm>


More information about the Pulp-list mailing list