Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2245945

Summary: [DDF] It is necessary to add the parameter **rule_name**, for example **rule_name: replicated_rule**.
Product: Red Hat OpenStack Reporter: Direct Docs Feedback <ddf-bot>
Component: documentationAssignee: RHOS Documentation Team <rhos-docs>
Status: CLOSED DUPLICATE QA Contact: RHOS Documentation Team <rhos-docs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 17.1 (Wallaby)CC: jamsmith, johfulto, mariel
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard: DDF-triage
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-04 14:42:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Direct Docs Feedback 2023-10-24 17:24:44 UTC
It is necessary to add the parameter **rule_name**, for example **rule_name: replicated_rule**.

because the task "*Create pool*" in the role tripleo_cephadm in this file **/usr/share/ansible/roles/tripleo_cephadm/tasks/pools.yaml** , does not have a default value

```
- name: Create pool
      command: "{{ tripleo_cephadm_ceph_cli }} osd pool create {{ item.name }} {{ item.pg_num | default('') }} {{ item.rule_name }} --autoscale-mode {{ item.pg_autoscale | default('on') }}"
      loop: "{{ tripleo_cephadm_pools | default([]) }}"
      changed_when: false
```

Reported by: nsuarez

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.1/html/deploying_red_hat_ceph_storage_and_red_hat_openstack_platform_together_with_director/assembly_customizing-the-storage-service_deployingcontainerizedrhcs#annotations:bc8a7856-6195-4a8a-bac4-1480d7dc5044

Comment 3 John Fulton 2023-12-04 14:42:09 UTC
It is not necessary to add the parameter **rule_name**, for example **rule_name: replicated_rule** because if the rule_name is not there, then tripleo-ansible will default it as per this PR.

https://github.com/openstack/tripleo-ansible/commit/52ea8a993ae3f749b9a6d54e76ca1fe850eca168

Comment 4 John Fulton 2023-12-04 14:42:34 UTC

*** This bug has been marked as a duplicate of bug 2210873 ***