Bug 2247061 - Ceph deployment couldn't set 'target_size_ratio' for pools
Summary: Ceph deployment couldn't set 'target_size_ratio' for pools
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z4
: 17.1
Assignee: Manoj Katari
QA Contact: Alfredo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-30 14:01 UTC by Manoj Katari
Modified: 2024-11-21 09:39 UTC (History)
6 users (show)

Fixed In Version: tripleo-ansible-3.3.1-17.1.20231107000822.8debef3.el9ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-11-21 09:38:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 899552 0 None MERGED Fix ceph pool creation to set 'target_size_ratio' 2023-11-07 18:25:42 UTC
Red Hat Issue Tracker OSP-30084 0 None None None 2023-10-30 14:09:50 UTC
Red Hat Product Errata RHBA-2024:9974 0 None None None 2024-11-21 09:39:01 UTC

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


Note You need to log in before you can comment on or make changes to this bug.