Project

General

Profile

Actions

Bug #35906

closed

ceph-disk: is_mounted() returns None for mounted OSDs with Python 3

Added by Tim Serong over 5 years ago. Updated over 5 years ago.

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

0%

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

Description

`ceph-disk list --format=json` on python 3 gives null for the mount member, even for mounted OSDs, e.g.:

# ceph-disk list --format=json|json_pp
...
   {
      "path" : "/dev/vdg",
      "partitions" : [
         {
            "whoami" : "23",
            "is_partition" : true,
            "path" : "/dev/vdg1",
            "ceph_fsid" : "00296336-7bf2-43f1-a48c-24c7212bf478",
            "dmcrypt" : {},
            "uuid" : "b447f027-f116-47d0-9cd1-ca2348e8e3db",
            "block_uuid" : "dfaf6613-f958-497a-9dfb-ad343e897639",
            "block_dev" : "/dev/vdg2",
            "type" : "data",
            *"mount" : null,*
            "ptype" : "4fbd7e29-9d25-41b8-afd0-062c0ceff05d",
            "magic" : "ceph osd volume v026",
            "cluster" : "ceph",
            "state" : "prepared",
            "fs_type" : "xfs" 
         },
         {
            "type" : "block",
            "is_partition" : true,
            "path" : "/dev/vdg2",
            "ptype" : "cafecafe-9b03-4f30-b4c6-b4b80ceff106",
            "block_for" : "/dev/vdg1",
            "dmcrypt" : {},
            "uuid" : "dfaf6613-f958-497a-9dfb-ad343e897639" 
         }
      ]
   }
...

Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #35981: luminous: ceph-disk: is_mounted() returns None for mounted OSDs with Python 3ResolvedPrashant DActions
Actions #2

Updated by Nathan Cutler over 5 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Nathan Cutler over 5 years ago

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

Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #35981: luminous: ceph-disk: is_mounted() returns None for mounted OSDs with Python 3 added
Actions #5

Updated by Nathan Cutler over 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF