]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common: 'all:true' -> '*' 33970/head
authorSage Weil <sage@redhat.com>
Sat, 14 Mar 2020 14:50:58 +0000 (09:50 -0500)
committerSage Weil <sage@redhat.com>
Sat, 14 Mar 2020 14:52:08 +0000 (09:52 -0500)
'all:true' is no longer a valid PlacementSpec.

Signed-off-by: Sage Weil <sage@redhat.com>
doc/cephadm/monitoring.rst
doc/mgr/orchestrator.rst
src/cephadm/vstart-smoke.sh
src/pybind/mgr/cephadm/tests/test_scheduling.py
src/pybind/mgr/rook/module.py
src/vstart.sh

index 38d0aee91ab1dbef627e3b09c34581cc28a73f9c..0d4a16e0a5df0a14906744242d217994c44d952c 100644 (file)
@@ -23,7 +23,7 @@ To deploy a basic monitoring stack:
 
 #. Deploy a node-exporter service on every node of the cluster.  The node-exporter provides host-level metrics like CPU and memory utilization.::
 
-     ceph orch apply node-exporter all:true
+     ceph orch apply node-exporter '*'
 
 #. Deploy alertmanager::
 
index f4c4be77a66ed543edd17ec7b602201368fac91c..3cdfdf14a551953b0cce5780fb1bd62b8e3d2c91 100644 (file)
@@ -317,7 +317,7 @@ Placement by pattern matching
 
 Daemons can be placed on hosts as well::
 
-    orch apply prometheus all:true
+    orch apply prometheus '*'
 
 Or in yaml::
 
index feda8e2793c1a8801515a122b17dac1c987acc2f..4eb879bdb85efef93fd862c2c8bb7b66881e54c3 100755 (executable)
@@ -19,8 +19,7 @@ bin/ceph orch host ls
 
 bin/ceph orch rm crash
 ! bin/ceph orch ls | grep crash
-bin/ceph orch apply crash all:true
-bin/ceph orch apply crash \*
+bin/ceph orch apply crash '*'
 bin/ceph orch ls | grep crash
 
 while ! bin/ceph orch ps | grep crash ; do sleep 1 ; done
@@ -58,7 +57,7 @@ while ! bin/ceph mon dump | grep 'epoch 2' ; do sleep 1 ; done
 
 bin/ceph orch apply rbd-mirror 1
 
-bin/ceph orch apply node-exporter all:true
+bin/ceph orch apply node-exporter '*'
 bin/ceph orch apply prometheus 1
 bin/ceph orch apply alertmanager 1
 bin/ceph orch apply grafana 1
index 2922c99e183128bfb0d4a42ae66c8bf5cf6d0349..f7f7f7e9edae2a42dc407eda099a30373ad7e3ff 100644 (file)
@@ -243,9 +243,9 @@ def test_node_assignment3(service_type, placement, hosts,
 
 @pytest.mark.parametrize("placement",
     [
-        ('1 all:true'),
-        ('all:true label:foo'),
-        ('all:true host1 host2'),
+        ('1 *'),
+        ('* label:foo'),
+        ('* host1 host2'),
     ])
 def test_bad_placements(placement):
     try:
index eef36bf6773a0d09f95007e05ab550af273c2494..8b9d3b7ba5a18193e51236f88f7f51dae42b3bfb 100644 (file)
@@ -289,7 +289,7 @@ class RookOrchestrator(MgrModule, orchestrator.Orchestrator):
                 service_name='crash',
                 spec=ServiceSpec(
                     'crash',
-                    placement=PlacementSpec.from_string('all:true'),
+                    placement=PlacementSpec.from_string('*'),
                 ),
                 size=num_nodes,
                 container_image_name=image_name,
index ae7d8e31a5fcd7867e1d3d2ca9af82be0ba2c7e9..78008f6568ec596e95fc28e9ac501440282cbfbf 100755 (executable)
@@ -996,7 +996,7 @@ EOF
         ceph_adm mgr module enable cephadm
         ceph_adm orch set backend cephadm
         ceph_adm orch host add $HOSTNAME
-        ceph_adm orch apply crash all:true
+        ceph_adm orch apply crash '*'
     fi
 }