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

Bug 2247061

Summary: Ceph deployment couldn't set 'target_size_ratio' for pools
Product: Red Hat OpenStack Reporter: Manoj Katari <mkatari>
Component: tripleo-ansibleAssignee: Manoj Katari <mkatari>
Status: CLOSED ERRATA QA Contact: Alfredo <alfrgarc>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.1 (Wallaby)CC: alfrgarc, fpantano, johfulto, mariel, nm-s, sapaul
Target Milestone: z4Keywords: Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tripleo-ansible-3.3.1-17.1.20231107000822.8debef3.el9ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-21 09:38:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Manoj Katari 2023-10-30 14:01:16 UTC
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 ~]$

Comment 1 Manoj Katari 2023-10-30 14:04:55 UTC
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.

Comment 12 Manoj Katari 2024-09-09 10:59:08 UTC
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

Comment 13 Saumik Paul 2024-09-09 11:01:09 UTC
Hello Manoj,

Thanks a lot.

Regards

Comment 18 errata-xmlrpc 2024-11-21 09:38:59 UTC
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