]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-wnbd: improve image map error message 51665/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 22 May 2023 10:01:19 +0000 (10:01 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 22 May 2023 12:22:22 +0000 (12:22 +0000)
commit5bbcfc82970bd3a76536a7dd554096bec70ddc2d
treeec0b25b8386aff0d40e609f62400d03230b221e1
parent0f6404222f47b7f31edc6c3c4120d2a8e65f522c
rbd-wnbd: improve image map error message

"rbd-wnbd map" commands are delegated to the centralized
ceph-rbd Windows service, which in turn will create the
actual image mapping. This allows the daemons to continue
running even after the current session ends.

rbd-wnbd communicates with the service through a named pipe.
If the operation fails, we're only getting an error code.

This change will print the according error message based on the
error code, suggesting the user to check the logs or use
foreground mode ("-f") for additional information.

We could also capture the entire subprocess console output and
print it in case of errors. This can be quite verbose, so we'll
keep it simple for now.

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