Browse Source

Set Ceph pools rule_name to replicated_rule

By setting the value of rule_name explicitly, we prevent backward
incompatibility issues because the default which ceph-ansible uses
might fit a particular version of Ceph, not all.

Note that the actual value for rule_name is different in the Pike
backport, deploying Ceph Jewel, because it needs to be set to
"replicated_ruleset" and not "replicated_rule" as with Ceph Luminous.

Change-Id: I275c1ca53ea79eea607cbbb58aa21cae6d6be80b
Closes-Bug: 1776252
(cherry picked from commit dcf558628f)
tags/7.0.14
Giulio Fidente 1 year ago
parent
commit
74b5bda397
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      docker/services/ceph-ansible/ceph-base.yaml

+ 2
- 2
docker/services/ceph-ansible/ceph-base.yaml View File

@@ -77,7 +77,7 @@ parameters:
77 77
     description: >
78 78
       It can be used to override settings for one of the predefined pools, or to create
79 79
       additional ones. Example:
80
-      [{"name": "volumes", "pg_num": 64, "rule_name": ""}]
80
+      [{"name": "volumes", "pg_num": 64, "rule_name": "replicated_ruleset"}]
81 81
     default: []
82 82
     type: json
83 83
   CinderRbdPoolName:
@@ -229,7 +229,7 @@ outputs:
229 229
                       template:
230 230
                         name: <%pool%>
231 231
                         pg_num: {get_param: CephPoolDefaultPgNum}
232
-                        rule_name: ""
232
+                        rule_name: replicated_ruleset
233 233
                       for_each:
234 234
                         <%pool%>:
235 235
                           - {get_param: CinderRbdPoolName}

Loading…
Cancel
Save