]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd: add image map timeouts on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 28 Jan 2021 14:08:29 +0000 (14:08 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 3 Feb 2021 07:19:43 +0000 (07:19 +0000)
commit8b08fb80284ee1cce62f800db92231f8493756fc
tree820f182bbeac0327bc69ca2b024c8c4170f3cc48
parent1744ba056869c2d5fb6b9d4551ea4da38dc8546a
rbd: add image map timeouts on Windows

This change adds configurable timeouts used when starting the centralized RBD
service and mapping images.

This change also fixes an issue where the service would wait indefinitely for
a failed mapping. This issue was caused by the fact that multiple child
processes were inheriting pipe handles.

Note that we can't use timeouts with Windows anonymous pipes, which is why
we're going to use unique named pipes.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/tools/rbd_wnbd/rbd_wnbd.cc
src/tools/rbd_wnbd/rbd_wnbd.h