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.

Change-Id: I275c1ca53ea79eea607cbbb58aa21cae6d6be80b
Closes-Bug: 1776252
(cherry picked from commit dcf558628f)
tags/8.0.4
Giulio Fidente 1 year ago
parent
commit
c3415390b1

+ 1
- 1
ci/environments/scenario001-multinode-containers.yaml View File

@@ -121,7 +121,7 @@ parameter_defaults:
121 121
   CephPools:
122 122
     - name: altrbd
123 123
       pg_num: 8
124
-      rule_name: ''
124
+      rule_name: replicated_rule
125 125
   CephAnsibleExtraConfig:
126 126
     centos_package_dependencies: []
127 127
     ceph_osd_docker_memory_limit: '1g'

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

@@ -86,7 +86,7 @@ parameters:
86 86
     description: >
87 87
       It can be used to override settings for one of the predefined pools, or to create
88 88
       additional ones. Example:
89
-      [{"name": "volumes", "pg_num": 64, "rule_name": ""}]
89
+      [{"name": "volumes", "pg_num": 64, "rule_name": "replicated_rule"}]
90 90
     default: []
91 91
     type: json
92 92
   CinderRbdPoolName:
@@ -245,7 +245,7 @@ outputs:
245 245
                       template:
246 246
                         name: <%pool%>
247 247
                         pg_num: {get_param: CephPoolDefaultPgNum}
248
-                        rule_name: ""
248
+                        rule_name: replicated_rule
249 249
                         application: rbd
250 250
                       for_each:
251 251
                         <%pool%>:
@@ -261,7 +261,7 @@ outputs:
261 261
                     - []
262 262
                     - - name: {get_param: GnocchiRbdPoolName}
263 263
                         pg_num: {get_param: CephPoolDefaultPgNum}
264
-                        rule_name: ""
264
+                        rule_name: replicated_rule
265 265
                         application: openstack_gnocchi
266 266
                   - {get_param: CephPools}
267 267
           openstack_keys: &openstack_keys

Loading…
Cancel
Save