From: Timothy Q Nguyen Date: Fri, 27 Feb 2026 20:12:08 +0000 (-0800) Subject: mgr/cephadm: updated tests with osdspec_affinity X-Git-Tag: v21.0.1~170^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cd283667db252b76a35c1e2b15dc210487c7dd4b;p=ceph.git mgr/cephadm: updated tests with osdspec_affinity The osdspec_affinity field is required so tests run properly. Signed-off-by: Timothy Q Nguyen --- diff --git a/src/pybind/mgr/cephadm/tests/test_cephadm.py b/src/pybind/mgr/cephadm/tests/test_cephadm.py index 50119e97e02..457bf72a7d3 100644 --- a/src/pybind/mgr/cephadm/tests/test_cephadm.py +++ b/src/pybind/mgr/cephadm/tests/test_cephadm.py @@ -119,7 +119,8 @@ def with_osd_daemon(cephadm_module: CephadmOrchestrator, _run_cephadm, host: str str(osd_id): [{ 'tags': { 'ceph.cluster_fsid': cephadm_module._cluster_fsid, - 'ceph.osd_fsid': 'uuid' + 'ceph.osd_fsid': 'uuid', + 'ceph.osdspec_affinity': '', }, 'type': 'data' }] @@ -2364,7 +2365,8 @@ Traceback (most recent call last): '1': [{ 'tags': { 'ceph.cluster_fsid': cephadm_module._cluster_fsid, - 'ceph.osd_fsid': 'uuid' + 'ceph.osd_fsid': 'uuid', + 'ceph.osdspec_affinity': '', }, 'type': 'data' }] @@ -2408,13 +2410,15 @@ Traceback (most recent call last): '1': [{ 'tags': { 'ceph.cluster_fsid': cephadm_module._cluster_fsid, - 'ceph.osd_fsid': 'uuid' + 'ceph.osd_fsid': 'uuid', + 'ceph.osdspec_affinity': '', }, 'type': 'data' }, { 'tags': { 'ceph.cluster_fsid': cephadm_module._cluster_fsid, - 'ceph.osd_fsid': 'uuid' + 'ceph.osd_fsid': 'uuid', + 'ceph.osdspec_affinity': '', }, 'type': 'db' }]