]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: updated tests with osdspec_affinity 67315/head
authorTimothy Q Nguyen <timqn22@gmail.com>
Fri, 27 Feb 2026 20:12:08 +0000 (12:12 -0800)
committerTimothy Q Nguyen <timqn22@gmail.com>
Fri, 27 Feb 2026 20:12:08 +0000 (12:12 -0800)
The osdspec_affinity field is required so tests run properly.

Signed-off-by: Timothy Q Nguyen <timqn22@gmail.com>
src/pybind/mgr/cephadm/tests/test_cephadm.py

index 50119e97e02456c5dc2fc8a0da5031edf38ea1ef..457bf72a7d3309a37f7cc976d366239c1ade5fd7 100644 (file)
@@ -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'
                         }]