-
Notifications
You must be signed in to change notification settings - Fork 121
500 Server Error when listing user roles #6330
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
Comments
From the trace back i read that the serializer_class of the objects viewset seems to be I was not able to reproduce this either with nor without an assigned object:
|
We're using the pulp-minimal image pulled off the quay registry so if there are missing plugins, then it's a Pulp oci-images build issue. I'm not sure what you mean by what object type it was; I'm just trying to list a user's role and getting the 500, so let me know how I can clarify further. Thanks! |
If you're asking what other object types we've seen it on, maybe this is related? And we've also seen it on pulp_file uploads but I didn't open an issue for that yet. |
This also adds a corresponding PRN field. fixes pulp#6330
Can you try applying this change in the container to see if it solves the problem? |
This also adds a corresponding PRN field. fixes pulp#6330
How can I apply the change? Just overwrite user.py and util.py? Aren't they already loaded into memory? |
Yeah, you probably need to start a modified container. I don't see an easy way, sorry. But I don't have another way to verify this is a fix. |
Sorry for the silence on this... how can I build an image to test with? |
np Here's a (hopefully still valid) guide: |
Version
Deployed in Kubernetes via Pulp Operator/Helm chart. Image is
pulp-minimal:3.63.11
.Describe the bug
We recently upgraded from 3.17 to 3.63 (hitting every 3.xx release along the way, making sure migrations succeed, etc.) and have been seeing a lot of 500's in general. For example, when simply trying to list a user's roles, we get a 500 error. Note that we are not using domains... when I try to list a user's roles in the
default
domain, I don't get a 500, but I also don't get any results.On the API pod we see:
Note that trying to use the API directly gives the same 500 so it doesn't seem to be a CLI issue.
To Reproduce
Just try to get a user's role as described above.
Expected behavior
Pulp should return the user's roles.
Additional context
Like I said, we recently upgraded, so is it possible something got missed in a migration?
The text was updated successfully, but these errors were encountered: