]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: pin cheroot version in requirements-required.txt 65635/head
authorAdam King <adking@redhat.com>
Mon, 22 Sep 2025 21:05:07 +0000 (17:05 -0400)
committerAdam King <adking@redhat.com>
Tue, 23 Sep 2025 02:04:11 +0000 (22:04 -0400)
commite8922cfe823950896996416fbac2de7936290398
tree935f5a6848a12cf745a6c94253b6aca0aeae032d
parentf14fbb4815714edf3eca4334db9179cb909f2b71
pybind/mgr: pin cheroot version in requirements-required.txt

With python 3.10 (didn't seem to happen with python 3.12) the
pybind/mgr/cephadm/tests/test_node_proxy.py test times out.
This appears to be related to a new release of the cheroot
package and a github issues describing the same problem
we're seeing has been opened by another user
https://github.com/cherrypy/cheroot/issues/769

It is worth noting that the workaround described in that
issue does also work for us. If you add

```
import cheroot
cheroot.server.HTTPServer._serve_unservicable = lambda: None
```

after the existing imports in test_node_proxy.py the
test hanging issue also disappears. Also worth noting the
particular pin of

cheroot~=10.0

was chosen as it matches the existing pin being used
in pybind/mgr/dashboard/constraints.txt

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 6231955b5d00ae6b3630ee94e85b2449092ef0fe)
src/pybind/mgr/requirements-required.txt