Skip to content

Commit 5c3a8c4

Browse files
mgr/cephadm: After reapplying the osd spec, the OSD services are continuously applied in each serve loop iteration
Fixes: https://tracker.ceph.com/issues/72774 Signed-off-by: Shweta Bhosale <[email protected]>
1 parent 712b0ea commit 5c3a8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pybind/mgr/cephadm/inventory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ def osdspec_needs_apply(self, host: str, spec: ServiceSpec) -> bool:
15121512
):
15131513
return True
15141514
created = self.mgr.spec_store.get_created(spec)
1515-
if not created or created > self.last_device_change[host]:
1515+
if not created or created > self.osdspec_last_applied[host][spec.service_name()]:
15161516
return True
15171517
return self.osdspec_last_applied[host][spec.service_name()] < self.last_device_change[host]
15181518

0 commit comments

Comments
 (0)