Reduce default ceph pool weight to 20

Enabling the 3 charms would require a 120% of capacity which cannot
work. Ask a less initial size, and let ceph autoscale PGs when needed.

Change-Id: Ica115806caf243ba70836d09ee273fbc651120a7
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
This commit is contained in:
Guillaume Boutry 2024-12-12 15:53:49 +01:00
parent 8fcfaf96b4
commit a69380677d
No known key found for this signature in database
GPG Key ID: 0DD77DC1796E98CD
4 changed files with 14 additions and 4 deletions

View File

@ -41,7 +41,7 @@ config:
your ceph cluster).
ceph-pool-weight:
type: int
default: 40
default: 20
description: |
Defines a relative weighting of the pool as a percentage of the total
amount of data in the Ceph cluster. This effectively weights the number

View File

@ -41,7 +41,7 @@ config:
your ceph cluster).
ceph-pool-weight:
type: int
default: 40
default: 20
description: |
Defines a relative weighting of the pool as a percentage of the total
amount of data in the Ceph cluster. This effectively weights the number

View File

@ -41,7 +41,7 @@ config:
your ceph cluster).
ceph-pool-weight:
type: int
default: 40
default: 20
description: |
Defines a relative weighting of the pool as a percentage of the total
amount of data in the Ceph cluster. This effectively weights the number

View File

@ -30,11 +30,21 @@ class OpenStackImagesSyncK8sTest(test_utils.BaseCharmTest):
application_name="openstack-images-sync"
)
keystone_session = openstack_utils.get_overcloud_keystone_session()
keystone_session = cls._get_keystone_session()
cls.glance_client: GlanceClient = (
openstack_utils.get_glance_session_client(keystone_session)
)
@classmethod
@tenacity.retry(
wait=tenacity.wait_fixed(7),
stop=tenacity.stop_after_attempt(5),
reraise=True,
)
def _get_keystone_session(cls):
"""Get keystone session."""
return openstack_utils.get_overcloud_keystone_session()
@tenacity.retry(
wait=tenacity.wait_fixed(10),
stop=tenacity.stop_after_delay(1800),