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)
This commit is contained in:
Giulio Fidente 2018-06-11 18:57:02 +02:00
parent 77de2f093c
commit c3415390b1
2 changed files with 4 additions and 4 deletions

View File

@ -121,7 +121,7 @@ parameter_defaults:
CephPools:
- name: altrbd
pg_num: 8
rule_name: ''
rule_name: replicated_rule
CephAnsibleExtraConfig:
centos_package_dependencies: []
ceph_osd_docker_memory_limit: '1g'

View File

@ -86,7 +86,7 @@ parameters:
description: >
It can be used to override settings for one of the predefined pools, or to create
additional ones. Example:
[{"name": "volumes", "pg_num": 64, "rule_name": ""}]
[{"name": "volumes", "pg_num": 64, "rule_name": "replicated_rule"}]
default: []
type: json
CinderRbdPoolName:
@ -245,7 +245,7 @@ outputs:
template:
name: <%pool%>
pg_num: {get_param: CephPoolDefaultPgNum}
rule_name: ""
rule_name: replicated_rule
application: rbd
for_each:
<%pool%>:
@ -261,7 +261,7 @@ outputs:
- []
- - name: {get_param: GnocchiRbdPoolName}
pg_num: {get_param: CephPoolDefaultPgNum}
rule_name: ""
rule_name: replicated_rule
application: openstack_gnocchi
- {get_param: CephPools}
openstack_keys: &openstack_keys