During RHOSP 17.1+Ceph deployment, overcloud deploy fails to set the 'target_size_ratio' These are pool related parameter passed to the overcloud deploy command. [stack@undercloud-1 ~]$ cat /home/stack/templates/ceph-pools.yaml parameter_defaults: CephPools: - name: volumes target_size_ratio: 0.4 application: rbd rule_name: replicated_rule - name: images target_size_ratio: 0.1 application: rbd rule_name: replicated_rule - name: vms target_size_ratio: 0.3 application: rbd rule_name: replicated_rule But pools are not set with 'target_size_ratio' [tripleo-admin@overcloud-controller-0 ~]$ for pool in volumes vms backups images; do echo -e "\n####Pool: $pool"; sudo cephadm shell -- ceph osd pool get $pool target_size_ratio; done ####Pool: volumes Inferring fsid 6874d9ac-07ed-5d18-ab74-8e081d3bf67c Inferring config /var/lib/ceph/6874d9ac-07ed-5d18-ab74-8e081d3bf67c/mon.overcloud-controller-0/config Using ceph image with id 'e0a07e0bc118' and tag 'latest' created on 2023-10-09 19:12:33 +0000 UTC undercloud-1.ctlplane.redhat.local:8787/rhceph/rhceph-6-rhel9@sha256:90254e04840fd9f443700bd0942de476703bfe86ba77c3eb0a238dd4bd6af140 Error ENOENT: option 'target_size_ratio' is not set on pool 'volumes' ####Pool: vms Inferring fsid 6874d9ac-07ed-5d18-ab74-8e081d3bf67c Inferring config /var/lib/ceph/6874d9ac-07ed-5d18-ab74-8e081d3bf67c/mon.overcloud-controller-0/config Using ceph image with id 'e0a07e0bc118' and tag 'latest' created on 2023-10-09 19:12:33 +0000 UTC undercloud-1.ctlplane.redhat.local:8787/rhceph/rhceph-6-rhel9@sha256:90254e04840fd9f443700bd0942de476703bfe86ba77c3eb0a238dd4bd6af140 Error ENOENT: option 'target_size_ratio' is not set on pool 'vms' ####Pool: backups Inferring fsid 6874d9ac-07ed-5d18-ab74-8e081d3bf67c Inferring config /var/lib/ceph/6874d9ac-07ed-5d18-ab74-8e081d3bf67c/mon.overcloud-controller-0/config Using ceph image with id 'e0a07e0bc118' and tag 'latest' created on 2023-10-09 19:12:33 +0000 UTC undercloud-1.ctlplane.redhat.local:8787/rhceph/rhceph-6-rhel9@sha256:90254e04840fd9f443700bd0942de476703bfe86ba77c3eb0a238dd4bd6af140 Error ENOENT: option 'target_size_ratio' is not set on pool 'backups' ####Pool: images Inferring fsid 6874d9ac-07ed-5d18-ab74-8e081d3bf67c Inferring config /var/lib/ceph/6874d9ac-07ed-5d18-ab74-8e081d3bf67c/mon.overcloud-controller-0/config Using ceph image with id 'e0a07e0bc118' and tag 'latest' created on 2023-10-09 19:12:33 +0000 UTC undercloud-1.ctlplane.redhat.local:8787/rhceph/rhceph-6-rhel9@sha256:90254e04840fd9f443700bd0942de476703bfe86ba77c3eb0a238dd4bd6af140 Error ENOENT: option 'target_size_ratio' is not set on pool 'images' [tripleo-admin@overcloud-controller-0 ~]$
After the updates to pool creation task https://review.opendev.org/c/openstack/tripleo-ansible/+/884555/20/tripleo_ansible/roles/tripleo_cephadm/tasks/pools.yaml Which will not use ceph_pool python module and runs the pool creation command direclty. The command run at https://opendev.org/openstack/tripleo-ansible/src/branch/stable/wallaby/tripleo_ansible/roles/tripleo_cephadm/tasks/pools.yaml#L28 doesn't support the option target_size_ratio.
Hi Saumik, This patch sets `target_size_ratio` during pool_creation. As a WA for z3, it can be manually set after the pool creation using the command below , you can refer [1] for more details. #sudo cephadm shell -- ceph osd pool set <pool-name> target_size_ratio <ratio_value> [1] https://docs.redhat.com/en/documentation/red_hat_ceph_storage/5/html/storage_strategies_guide/placement_groups_pgs#specifying-target-size-using-the-total-cluster-capacity
Hello Manoj, Thanks a lot. Regards
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (RHOSP 17.1.4 bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:9974