Project

General

Profile

Actions

Bug #61364

closed

rbd-wnbd: improve image map error message

Added by Lucian Petrut 12 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
reef,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

"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.

We should 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.


Related issues 2 (0 open2 closed)

Copied to rbd - Backport #61365: reef: rbd-wnbd: improve image map error messageResolvedLucian PetrutActions
Copied to rbd - Backport #61462: quincy: rbd-wnbd: improve image map error messageResolvedIlya DryomovActions
Actions

Also available in: Atom PDF