Project

General

Profile

Bug #35906

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

Added by Tim Serong 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
09/10/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

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

History

#2 Updated by Nathan Cutler 3 months ago

  • Status changed from New to Need Review

#3 Updated by Nathan Cutler 3 months ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Nathan Cutler 3 months ago

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

#5 Updated by Nathan Cutler 2 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF