Project

General

Profile

Actions

Bug #13157

closed

ceph-disk: list fails on isolated journals

Added by Loïc Dachary over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

Description

When /dev/vdc1 is a journal for which the corresponding data partition has been zapped, ceph-disk list fails with

DEBUG:ceph-disk:list_devices: [{'path': '/dev/vda', 'partitions': [{'dmcrypt': {}, 'uuid': 'd8af2f7c-c923-4d36-9b5c-dcfaf09821a0', 'mount': '/', 'ptype': '0fc63daf-8483-4772-8e79-3d69d8477de4', 'is_partition': True, 'fs_type': 'xfs', 'path': '/dev/vda1', 'type': 'other'}]}, {'path': '/dev/vdb', 'type': 'other', 'dmcrypt': {}, 'ptype': 'unknown', 'is_partition': False}, {'path': '/dev/vdc', 'partitions': [{'dmcrypt': {}, 'uuid': '0b78206d-baca-4e02-b5cf-a2218dce4df4', 'ptype': '45b0969e-9b03-4f30-b4c6-b4b80ceff106', 'is_partition': True, 'path': '/dev/vdc1', 'type': 'journal'}]}, {'path': '/dev/vdd', 'type': 'other', 'dmcrypt': {}, 'ptype': 'unknown', 'is_partition': False}]
Traceback (most recent call last):
  File "/sbin/ceph-disk", line 3587, in <module>
    main(sys.argv[1:])
  File "/sbin/ceph-disk", line 3544, in main
    args.func(args)
  File "/sbin/ceph-disk", line 2936, in main_list
    output = list_format_plain(devices)
  File "/sbin/ceph-disk", line 2797, in list_format_plain
    prefix=' '))
  File "/sbin/ceph-disk", line 2768, in list_format_dev_plain
    if dev['journal_for']:
KeyError: 'journal_for'

Actions #1

Updated by Loïc Dachary over 8 years ago

  • Status changed from In Progress to Fix Under Review
Actions #2

Updated by Loïc Dachary over 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF