ceph-osd-replication-count should be set based on the number of nodes instead of OSDs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
Fix Committed
|
High
|
Hemanth Nakkina |
Bug Description
$ snap list openstack
Name Version Rev Tracking Publisher Notes
openstack 2024.1 503 2024.1/edge canonical✓ -
It looks like the current logic will set ceph-osd-
However, in the following case in the bootstrap phase, I think replica=1 should be used since Ceph cannot put the replicas onto the same host in the following tree.
$ sudo ceph osd tree
ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF
-1 0.03119 root default
-2 0.03119 host sunbeam-1
1 0.01559 osd.1 up 1.00000 1.00000
2 0.01559 osd.2 up 1.00000 1.00000
$ juju run microceph/leader list-disks
Running operation 13 with 1 task
- task 14 on unit-microceph-0
Waiting for task 14...
osds: '[{''osd'': 1, ''path'': ''/dev/
''sunbeam-1''}, {''osd'': 2, ''path'': ''/dev/
''location'': ''sunbeam-1''}]'
unpartitioned-
So in this case replica should be 1 based on the unique number of "location" (sunbeam-1) instead of 2 based on the number of OSDs.
description: | updated |
Changed in snap-openstack: | |
status: | New → Triaged |
status: | Triaged → In Progress |
importance: | Undecided → High |
assignee: | nobody → Hemanth Nakkina (hemanth-n) |
I mean the logic can be:
ceph-osd- replication- count is the unique number of host when # of hosts is < 3 replication- count = 3 when the number of hosts is >=3
or ceph-osd-
or something like that.