Project

General

Profile

Actions

Bug #46558

closed
DS JO

cephadm: paths attribute ignored for db_devices/wal_devices via OSD spec

Bug #46558: cephadm: paths attribute ignored for db_devices/wal_devices via OSD spec

Added by Dimitri Savineau over 6 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Category:
cephadm/osd
Target version:
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v17.0.0-1098-g156a4ee786
Released In:
v17.2.0~2926
Upkeep Timestamp:
2025-07-14T19:36:45+00:00

Description

When creating an OSD spec for using dedicated devices for either DB and/or WAL bluestore devices, we can't use the paths drive group attribute [1] because it seems currently ignored but works for data_devices.

# cat osds.yml
service_type: osd
service_id: foo
placement:
  label: osds
data_devices:
  paths:
    - /dev/sdc
db_devices:
  paths:
    - /dev/sdd
encrypted: false
# cephadm shell -m osds.yml -- ceph orch apply osd -i /mnt/osds.yml
INFO:cephadm:Inferring fsid b6dc7042-c6ac-11ea-974b-fa163e8d447e
INFO:cephadm:Inferring config /var/lib/ceph/b6dc7042-c6ac-11ea-974b-fa163e8d447e/mon.ofgnapinv-1/config
INFO:cephadm:Using recent ceph image docker.io/ceph/daemon-base:latest-master
WARNING: The same type, major and minor should not be used for multiple devices.
Scheduled osd.foo update...

As a result, there's an OSD created on /dev/sdc only without the bluestore DB on /dev/sdd

# cephadm shell -- ceph-volume lvm list
INFO:cephadm:Inferring fsid b6dc7042-c6ac-11ea-974b-fa163e8d447e
INFO:cephadm:Inferring config /var/lib/ceph/b6dc7042-c6ac-11ea-974b-fa163e8d447e/mon.ofgnapinv-1/config
INFO:cephadm:Using recent ceph image docker.io/ceph/daemon-base:latest-master
WARNING: The same type, major and minor should not be used for multiple devices.
WARNING: The same type, major and minor should not be used for multiple devices.
WARNING: The same type, major and minor should not be used for multiple devices.

====== osd.5 =======

  [block]       /dev/ceph-bd41b3ba-23a0-4e03-bb1c-5e17f89136a1/osd-block-fde2284b-1f59-48ab-995f-706a3e49c6bf

      block device              /dev/ceph-bd41b3ba-23a0-4e03-bb1c-5e17f89136a1/osd-block-fde2284b-1f59-48ab-995f-706a3e49c6bf
      block uuid                avv5vs-2gZg-how1-kYnq-PAGL-bsfL-qAHg8m
      cephx lockbox secret      
      cluster fsid              b6dc7042-c6ac-11ea-974b-fa163e8d447e
      cluster name              ceph
      crush device class        None
      encrypted                 0
      osd fsid                  fde2284b-1f59-48ab-995f-706a3e49c6bf
      osd id                    5
      osdspec affinity          foo
      type                      block
      vdo                       0
      devices                   /dev/sdc

[1] https://github.com/ceph/ceph/blob/master/src/python-common/ceph/deployment/drive_group.py#L27


Related issues 3 (0 open — 3 closed)

Related to Orchestrator - Bug #44738: drivegroups/cephadm: db_devices don't get applied correctly when using "paths"Won't Fix

Actions
Related to Orchestrator - Bug #49191: cephadm: service_type: osd: Failed to apply: ''NoneType'' object has no attribute ''paths''"'Duplicate

Actions
Related to Orchestrator - Bug #46687: MGR_MODULE_ERROR: Module 'cephadm' has failed: No filters appliedCan't reproduceJuan Miguel Olmo Martínez

Actions

SW Updated by Sebastian Wagner over 6 years ago Actions #1

  • Category changed from cephadm to cephadm/osd

SA Updated by Saputro Aryulianto over 6 years ago Actions #2

Dimitri Savineau wrote:

When creating an OSD spec for using dedicated devices for either DB and/or WAL bluestore devices, we can't use the paths drive group attribute [1] because it seems currently ignored but works for data_devices.

[...]

As a result, there's an OSD created on /dev/sdc only without the bluestore DB on /dev/sdd

[...]

[1] https://github.com/ceph/ceph/blob/master/src/python-common/ceph/deployment/drive_group.py#L27

Hi,

there is any update for this issue? since create wal devices by paths attribute is very common and important

SW Updated by Sebastian Wagner over 6 years ago Actions #4

  • Status changed from New to Resolved
  • Target version changed from v16.0.0 to v15.2.5
  • Pull request ID set to 36543

DS Updated by Dimitri Savineau over 6 years ago Actions #5

@Sebastien : does that mean we need another tracker for implementing this feature or it won't happen at all ?

I thought PR 36543 was only a temporary solution until something was implemented.

JS Updated by Joshua Schmid about 6 years ago Actions #6

DriveGroups are supposed to `describe` a state/layout without explicitly pointing to disk identifiers.

If there is a specific example where the existing filters are not sufficient to depict the desired cluster layout we can certainly talk about extending the functionality of the drivegroups.

`paths` for data_devices are mainly for testing purposes and should not be used in production clusters unless absolutely unavoidable(for whatever reason).

JO Updated by Juan Miguel Olmo Martínez almost 6 years ago Actions #7

  • Status changed from Resolved to In Progress
  • Assignee set to Juan Miguel Olmo Martínez
  • Priority changed from Normal to High
  • Target version changed from v15.2.5 to v17.0.0
  • Affected Versions deleted (v15.2.4)

SW Updated by Sebastian Wagner almost 6 years ago Actions #8

  • Related to Bug #44738: drivegroups/cephadm: db_devices don't get applied correctly when using "paths" added

SW Updated by Sebastian Wagner almost 6 years ago Actions #9

  • Related to Bug #49191: cephadm: service_type: osd: Failed to apply: ''NoneType'' object has no attribute ''paths''"' added

JO Updated by Juan Miguel Olmo Martínez almost 6 years ago Actions #10

  • Related to Bug #46687: MGR_MODULE_ERROR: Module 'cephadm' has failed: No filters applied added

SW Updated by Sebastian Wagner over 5 years ago Actions #11

  • Status changed from In Progress to Pending Backport
  • Pull request ID changed from 36543 to 39415

SW Updated by Sebastian Wagner over 5 years ago Actions #12

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #13

  • Merge Commit set to 156a4ee786edd000dc2d978a2f98041666f2aac4
  • Fixed In set to v17.0.0-1098-g156a4ee786
  • Released In set to v17.2.0~2926
  • Upkeep Timestamp set to 2025-07-14T19:36:45+00:00
Actions

Also available in: PDF Atom