Repository navigation
Conversation
|
I retriggered API tests. Thank you so much, @tchaikov. |
|
thanks @tchaikov. now the API tests are failing on pyo3 failure I had this branch created to backport the pyo3 fixes to squid a while ago. Probably we can also include that commits to this PR? |
|
API tests failed on a flaky test thats being fixed in main: https://jenkins.ceph.com/job/ceph-api/110109/ |
|
jenkins test api |
|
@nizamial09 thanks Nizamudeen! as this patchset is non trivial, i am adding the needs-qa label in hope to get it included in the next batch of our qa test. |
|
@tchaikov Is there a particular suite that would be best? I can schedule one. |
@djgalloway Hi David, thank you for offering to help with testing! I reviewed the integration tests used to verify the PRs included in this changeset and found:
Both ran the |
Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 2b9cf24) Conflicts: src/pybind/mgr/mgr_util.py - accepted incoming changes
Signed-off-by: Paulo E. Castro <[email protected]> (cherry picked from commit 4bcab13)
…he exit. Signed-off-by: Paulo E. Castro <[email protected]> (cherry picked from commit 56d508f)
Signed-off-by: Paulo E. Castro <[email protected]> (cherry picked from commit 218d84f)
The remote verify_tls function was not raising errors when it should. Fix the function so that it always returns an object when it succeeds or fails gracefully. Always parse that function in the crypto caller class. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 96a7a72)
…ode/decode. Signed-off-by: Paulo E. Castro <[email protected]> (cherry picked from commit e364df3)
Signed-off-by: Paulo E. Castro <[email protected]> (cherry picked from commit 21d6e1d) Conflicts: src/pybind/mgr/cephadm/cert_mgr.py - removed this file since it doesn't exist in squid
Name the parser objects after their functions and not `foo` and `bar`. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 5d4eeff)
Replace a direct usage of bycrypt with our cryptocaller wrapper. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit d2fd81e)
Why violate the typing in a test? mypy never noticed this because tests are not type checked but there seems to be no need to turn a str into bytes to pass to a function that is typed only as taking str! Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 955143d)
The functions now handle the i/o but allow the crypto function class to centralize the functions that actually use the crypto libs. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 4e4cfa5)
Use a main function to encapsulate the cli parsing rather than a block of code in module scope. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit c98e53f)
Lightly reorganize and make the "endpoint" functions in cryptotools.py more consistent and uniform. Use small functions for input and output handling so that the handling is done the same way throughout. Pass a pre-constructed crypto caller via the args to then endpoint functions. Make generating the private key it's own named function rather than one single (and only) function with overloaded behavior controlled by a cli switch. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 552d7b4)
Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit c3dc34a)
Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 0c774d5)
Add a module to select a desired crypto caller. Update the callers to use the crypto caller interface. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 0eb2f4b)
Previously, the internal crypto caller would catch (and convert) some errors when reading the cert but not all cases. Move the logic to catch the errors to a common location and do it once consistently. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit f6ab087)
The cephadm modules needs to use python cryptography module for ssh (via asyncssh) and thus there's no need to use the remote crypto caller in cephadm. Configure cephadm to always use the internal cryptocaller. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 2128ffa) Conflicts: src/pybind/mgr/cephadm/module.py - REQUIRE_POST_OPTIONS import was not present in that file on squid, so removing it
Add a mgr config option `crypto_caller` that lets a ceph user override the default behavior of using the remote crypto caller. Supported values are `internal` and `remote`. Signed-off-by: John Mulligan <[email protected]> (cherry picked from commit 27c2050) Conflicts: src/pybind/mgr/dashboard/module.py - removed the sso oauth2 option
in frontend e2e.sh file, we don't need to start the node venv early on before the ceph cluster is started. we only need it for the `npm` or `npx` commands. Starting node virtual env and then starting ceph will cause the ceph cluster to assume the node-env python as the python environment which breaks the cryptotools call. So moving the node-env venv start after the ceph is created Fixes: https://tracker.ceph.com/issues/73804 Signed-off-by: Nizamudeen A <[email protected]> (cherry picked from commit a56ae5b) (cherry picked from commit 411fcaa)
05b55d1 to
4899c9b
Compare
|
rebased against latest squid HEAD, to address the test failure of "Check for missing .qa links". |
| MAJOR_VER=$(echo "$VERSION_ID" | sed -e 's/\..*$//') | ||
| if [ "$MAJOR_VER" -ge "22" ] ; then | ||
| if [ "$MAJOR_VER" -ge "24" ] ; then | ||
| PYBUILD="3.12" |
There was a problem hiding this comment.
Noble is not supported on squid (not even yet on main), why is this change necessary?
There was a problem hiding this comment.
@batrick Noble is used on at least some of our test nodes (e.g. soko08). This change was cherry-picked from 4df3683, which was originally created to address the exact same test failure after some test nodes were upgraded to Ubuntu Noble:
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Python3_EXECUTABLE Python3_INCLUDE_DIRS
Python3_LIBRARIES Interpreter Development Development.Module
Development.Embed) (Required is exact version "3.10")
Reason given by package:
Interpreter: Wrong version for the interpreter "/bin/python3"
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindPython/Support.cmake:3863 (find_package_handle_standard_args)
cmake/modules/FindPython3.cmake:545 (include)
CMakeLists.txt:557 (find_package)
This failure was triggered while testing the squid backport in #67623. Since "Ceph API tests" is a required gating workflow, this was blocking merges — hence backporting #61827 to fix it. An example of the failing run is here.
There was a problem hiding this comment.
I'm concerned that even allowing a build on Squid on Noble might give users the false impression it will work. We already know (as part of the rocky10 effort) that the ceph-mgr will fail in surprising ways with py3.12.
That we're using Noble for our test nodes is a separate issue. I'm also discovering that change in this reef backport: #67657
I don't think this distribution upgrade was appropriate for Squid/Reef. I'm trying to learn more about what happened here.
There was a problem hiding this comment.
@batrick Hi Patrick, i don't think we claim to user that Squid supports Nobel in this changeset. the changeset was originally created to address the build failure caused by SPDK + glibc in our CI, and later was expanded to address more issues due to our building host changes. none of these changes updates the supporting matrix. but yes, they are pulled in to enable us to support Nobel. but the idea is merely to fix the CI workflow.
@djgalloway what do you think? if i am working in the wrong direction, i am happy to close this pull request.
There was a problem hiding this comment.
I think the builders must be fixed to build with Jammy for ceph api tests. That seems to be the primary issue.
Are there other build failures (jenkins or otherwise) caused by inappropriately using Noble?
There was a problem hiding this comment.
@tchaikov I'm not rejecting all of these requested changes. If perhaps, you're trying to support Noble for some internal user that's fine but the Noble specific changes must be carried downstream. The other changes should be backported through the normal tracker ticket process with separate PRs. (If no main tracker exists, a manual backport ticket should be created.)
There was a problem hiding this comment.
Thanks Patrick.
I think the builders must be fixed to build with Jammy for
ceph api tests. That seems to be the primary issue.Are there other build failures (jenkins or otherwise) caused by inappropriately using Noble?
I think all of these commits were backported to fix the FTBFS and test failures with/on Nobel. Again, I am not trying to support "some internal users", but to fix the test failures.
The other changes should be backported through the normal tracker ticket process with separate PRs.
I see. And i am going to close this pull request. i created it per the request of @djgalloway .
This PR backports two SPDK submodule bumps to the squid branch to resolve a build failure introduced by newer glibc versions.
Background
Building with newer glibc causes a FTBFS due to conflicts in SPDK. The fix for this issue is already present in SPDK's main branch and has been integrated into Ceph's main branch via commits
Changes
This PR cherry-picks the necessary SPDK submodule updates to bring the squid branch in line with main, resolving the build failure.
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.