]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: avoid double counting NVMe devices in host facts 67669/head
authorUjjawal Anand <ujjawal.anand@ibm.com>
Thu, 5 Mar 2026 06:18:03 +0000 (11:48 +0530)
committerUjjawal Anand <ujjawal.anand@ibm.com>
Mon, 9 Mar 2026 06:36:52 +0000 (12:06 +0530)
commitbf02baa41f89e1dc71242ece67687a5f2f2a6be5
tree90bbe504c4d5b3b4b03ea48afac33d9457788f45
parent332260fa162e01ac81db5d577895c95870d8cb7c
cephadm: avoid double counting NVMe devices in host facts

- On some systems,the same NVMe drive appears twice in /sys/block,once as the real device
(ex: nvme2n1) and once as a sysfs only alias (ex: nvme2c2n1).
- To avoid counting the same disk twice, we filter /sys/block and only consider entries that have a
valid 'dev' attribute and a corresponding '/dev' node.

Fixes: https://tracker.ceph.com/issues/75342
Signed-off-by: Ujjawal Anand <ujjawal.anand@ibm.com>
src/cephadm/cephadmlib/host_facts.py
src/cephadm/tests/test_host_facts.py