[Pulp-list] upgrade question

Briand, Sheldon Sheldon.Briand at nrc-cnrc.gc.ca
Wed Feb 16 14:51:40 UTC 2022


I have filed the bug:
https://github.com/pulp/pulp_rpm/issues/2405

After manually running the migrate command it looks like the migration error is here:
Applying rpm.0039_disttree_digest

-----Original Message-----
From: Matthias Dellweg [mailto:mdellweg at redhat.com] 
Sent: February 16, 2022 4:33 AM
To: Briand, Sheldon <Sheldon.Briand at nrc-cnrc.gc.ca>
Cc: pulp-list at redhat.com
Subject: Re: [Pulp-list] upgrade question

***ATTENTION*** This email originated from outside of the NRC. ***ATTENTION*** Ce courriel provient de l'extérieur du CNRC

I fear, there is a broken migration (That will probably have worked on an empty dataset). Can you please file a bug at https://github.com/pulp/pulp_rpm/issues ? It would be very helpful to include the version of pulp-rpm you are coming from and the one you upgrade to. Also can you please start the `pulpcore-manager migrate` command by hand and tell which migration emits this error?

Thanks for reaching out!
  Matthias

On Tue, Feb 15, 2022 at 8:01 PM Briand, Sheldon <Sheldon.Briand at nrc-cnrc.gc.ca> wrote:
>
> Hi,
>
>
>
> I’m trying to upgrade a non-production pulp 3 server from version 3.15.2 to 3.17.3.  I’m using the ansible installer for the upgrade.
>
>
>
> I’m not sure if that is a valid upgrade path.  Should I have gone to 3.16 first?
>
>
>
> If it is a valid upgrade path I’m receiving this error at the following step:
>
>
>
> TASK [pulp.pulp_installer.pulp_database_config : Run database 
> migrations]
>
> fatal: FAILED! => {"changed": true, "cmd": ["/usr/local/lib/pulp/bin/pulpcore-manager", "migrate", "--no-input"], "delta": "0:00:03.164289", "end": "2022-02-15 13:00:45.103362", "msg": "non-zero return code", "rc": 1, "start": "2022-02-15 13:00:41.939073", "stderr": "Traceback (most recent call last):\n  File \"/usr/local/lib/pulp/lib64/python3.8/site-packages/django/db/backends/utils.py\", line 84, in _execute\n    return self.cursor.execute(sql, params)\npsycopg2.errors.ObjectInUse: cannot ALTER TABLE \"rpm_distributiontree\" because it has pending trigger events\n\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"/usr/local/lib/pulp/bin/pulpcore-manager\", line 8, in <module>\n    sys.exit(manage())\n
>
>
>
> I’m wondering how I can fix the error?
>
>
>
> Thanks,
>
> -Sheldon
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://listman.redhat.com/mailman/listinfo/pulp-list





More information about the Pulp-list mailing list