Project

General

Profile

Actions

Bug #22011

closed

abort in listing mapped nbd devices when running in a container

Added by Li Wang over 6 years ago. Updated about 6 years ago.

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

100%

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

Description

In some container scenarios, the file '/sys/block/nbd0/pid'
in the container records the host pid of the process
which opened the device, therefore the file '/proc/pid/cmdline'
corresponding to the pid in the container does not exist,
in that case, 'rbd-nbd list-mapped' will cause the
following assertion failure,

src/tools/rbd_nbd/rbd-nbd.cc: In function 'int get_mapped_info(int, Config*)'
/src/tools/rbd_nbd/rbd-nbd.cc: 834: FAILED assert(ifs.is_open())
ceph version 13.0.0-1632-gf9cfe84 (f9cfe84) mimic (dev)
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x102) [0x7fc6b1054ba2]
2: (()+0x15c58) [0x560cd4697c58]
3: (main()+0x9) [0x560cd46937f9]
4: (__libc_start_main()+0xf0) [0x7fc6b003f830]
5: (_start()+0x29) [0x560cd46938f9]
NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
Aborted (core dumped)


Related issues 2 (0 open2 closed)

Copied to rbd - Backport #22185: luminous: abort in listing mapped nbd devices when running in a containerResolvedActions
Copied to rbd - Backport #22186: jewel: abort in listing mapped nbd devices when running in a containerResolvedNathan CutlerActions
Actions #1

Updated by Jason Dillaman over 6 years ago

  • Backport set to luminous,jewel
Actions #2

Updated by Jason Dillaman over 6 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Nathan Cutler over 6 years ago

  • Copied to Backport #22185: luminous: abort in listing mapped nbd devices when running in a container added
Actions #4

Updated by Nathan Cutler over 6 years ago

  • Copied to Backport #22186: jewel: abort in listing mapped nbd devices when running in a container added
Actions #5

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF