Skip to content

Commit

Permalink
Merge pull request #40979 from leseb/raw-list-fix-dup
Browse files Browse the repository at this point in the history
ceph-volume: fix raw listing when finding OSDs from different clusters
  • Loading branch information
leseb committed Apr 22, 2021
2 parents a5b1644 + ec0f5f3 commit 0ae8faa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ceph-volume/ceph_volume/devices/raw/list.py
Expand Up @@ -78,13 +78,13 @@ def generate(self, devs=None):
# ignore non-main devices, for now
continue
whoami = oj[dev]['whoami']
result[whoami] = {
result[oj[dev]['osd_uuid']] = {
'type': 'bluestore',
'osd_id': int(whoami),
'osd_uuid': oj[dev]['osd_uuid'],
'ceph_fsid': oj[dev]['ceph_fsid'],
'dev': dev
}
for f in ['osd_uuid', 'ceph_fsid']:
result[whoami][f] = oj[dev][f]
result[whoami]['device'] = dev
return result

@decorators.needs_root
Expand Down

0 comments on commit 0ae8faa

Please sign in to comment.