mgr/dashboard: Make saml2 robust against module load errors#66759
mgr/dashboard: Make saml2 robust against module load errors#66759
Conversation
|
Can one of the admins verify this patch? |
14 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
74f774a to
cf873b3
Compare
|
The tracker issue is https://tracker.ceph.com/issues/70411, which however was closed with CI changes that didn't actually improve anything on the Ceph side. This PR actually fixes the issue in the most reasonable way (if the saml2 package does not work, do not take down the entire dashboard). The underlying issue is unclear and hard to debug, but seems likely to be yet another subinterpreter problem. Since saml2 support is optional, it makes sense to at least just disable saml2 for deployments which run into this. |
cf873b3 to
af1f147
Compare
Loading saml2 can fail due to issues with the xmlsec package (possibly
subinterpreter related):
File "/usr/share/ceph/mgr/dashboard/controllers/saml2.py", line 6, in <module>
from onelogin.saml2.auth import OneLogin_Saml2_Auth
File "/lib/python3.13/site-packages/onelogin/saml2/auth.py", line 12, in <module>
import xmlsec
xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
Instead of taking down the entire dashboard module, treat this exception
like a missing saml2 package.
Improves: https://tracker.ceph.com/issues/70411
Signed-off-by: Hector Martin <marcan@marcan.st>
af1f147 to
133b6a2
Compare
|
I've changed the commit tag to "Improves:" instead of "Fixes:", as this doesn't fix the underlying issue (which is now positively identified as subinterpreters). |
|
Thanks for the work on this! Once the workflows are all green, we're good to merge. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
Ping, not sure what happened with the workflows here? |
|
jenkins retest this please |
Loading saml2 can fail due to issues with the xmlsec package (subinterpreter related):
Instead of taking down the entire dashboard module, treat this exception like a missing saml2 package.
Improves: https://tracker.ceph.com/issues/70411
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.