pulp / pulp-oci-images

Containerfiles and other assets for building Pulp 3 OCI images
https://docs.pulpproject.org/pulp_oci_images/
34 stars 55 forks source link

CommandError: duplicate key value violates unique constraint "core_signingservice_name_key" #473

Open git-hyagi opened 1 year ago

git-hyagi commented 1 year ago

Version Tested with quay.io/pulp/galaxy-minimal:stable.

Describe the bug When a signing service is already stored in the database, every new pulp-api container (galaxy-minimal image) will output the error:

CommandError: duplicate key value violates unique constraint "core_signingservice_name_key"
DETAIL:  Key (name)=(ansible-default) already exists.
pulp [None]: pulpcore.deprecation:WARNING: verify_signature() is deprecated and will be removed in pulpcore==3.25; use gpg_verify().
CommandError: duplicate key value violates unique constraint "core_signingservice_name_key"
DETAIL:  Key (name)=(container-default) already exists.

Additional context Even though these errors do not interfere with the app execution they slow down the container startup.

mikedep333 commented 1 year ago

Related to #472 .

If we remove this functionality from the script, it will address both.