-
Notifications
You must be signed in to change notification settings - Fork 124
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
Pulp3Error: value too long for type character varying(20) when syncing SLES enterprise repo #2501
Comments
Also happens during 2to3 migrations if the repo was successfully synced into Pulp 2. |
Here is the corresponding Pulp 2 field (not limited to 20 chars): https://github.com/pulp/pulp_rpm/blob/2-master/plugins/pulp_rpm/plugins/db/models.py#L1499 |
If it helps, I can provide the The relevant reference appears to be:
|
See also the discourse discussion on this issue: https://discourse.pulpproject.org/t/fixing-a-pulp-rpm-20-char-db-field-limit-with-backports/439 |
Version
pulp_rpm 3.14.14
pulpcore 3.14.16
Katello 4.1
From looking at the current pulp_rpm main branch, I think it is still affected.
Describe the bug
Trying to sync the SLES enterprise repo "NVIDIA Compute Module 15 x86_64 (id: 2131)" to Katello results in the following Error:
To Reproduce
With such an account try to sync the relevant repo using the Katello SCC manager (or else directly into Pulp) and get the Error.
Expected behavior
Successful sync.
Additional context
From my testing around this problem, it looks like the affected repo is trying to write the string
"license-sle-module-NVIDIA-compute"
into the following DB field: https://github.com/pulp/pulp_rpm/blob/main/pulp_rpm/app/models/custom_metadata.py#L26This results in the error because the string is too long for this
RepoMetadataFile
.The text was updated successfully, but these errors were encountered: