]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: Make sure we don't co-locate the same daemon 33853/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 10 Mar 2020 12:54:08 +0000 (13:54 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 10 Mar 2020 12:54:08 +0000 (13:54 +0100)
Fixes: https://tracker.ceph.com/issues/44397
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/tests/test_scheduling.py

index abd3b3e4e2da3b864b96464a11a18028ca65b960..2235641b5a48a1d484c099ebc13f2b9de17675b7 100644 (file)
@@ -42,6 +42,15 @@ class NodeAssignmentTest(NamedTuple):
             ],
             ['host1', 'host2', 'host3']
         ),
+        # count that is bigger than the amount of hosts. Truncate to len(hosts)
+        # RGWs should not be co-located to each other.
+        NodeAssignmentTest(
+            'rgw',
+            PlacementSpec(count=4),
+            'host1 host2 host3'.split(),
+            [],
+            ['host1', 'host2', 'host3']
+        ),
         # count + partial host list
         NodeAssignmentTest(
             'mon',