Skip to content

Commit

Permalink
test changes
Browse files Browse the repository at this point in the history
Signed-off-by: vkathole <[email protected]>
  • Loading branch information
vkathole committed Jan 8, 2025
1 parent 23d846d commit eeb9b8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,8 @@ def factory(
node_name (str): The name of specific node to schedule the pod
node_selector (dict): dict of key-value pair to be used for nodeSelector field
eg: {'nodetype': 'app-pod'}
project (object): ocs_ci.ocs.resources.ocs.OCS instance
of 'Project' kind.
replica_count (int): Replica count for deployment config
raw_block_pv (str): True if pod with raw block pvc
sa_obj (object) : If specific service account is needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def run_file_creator_io_with_cephfs(dc_pod_factory):
kind=constants.NAMESPACE, namespace=config.ENV_DATA["cluster_namespace"]
)

for dc_pod in range(12):
for dc_pod in range(6):
log.info(f"Creating {interface} based PVC")
log.info("Creating fedora dc pod")
pod_obj = dc_pod_factory(
Expand Down Expand Up @@ -61,16 +61,19 @@ def active_mds_alert_values(threading_lock):
active_mds_pod = cluster.get_active_mds_info()["active_pod"]
cpu_alert = constants.ALERT_MDSCPUUSAGEHIGH

scaling_type = "Vertical"

api = prometheus.PrometheusAPI(threading_lock=threading_lock)
alert_list = api.wait_for_alert(name=cpu_alert, state="pending")
message = f"Ceph metadata server pod ({active_mds_pod}) has high cpu usage"
description = (
f"Ceph metadata server pod ({active_mds_pod}) has high cpu usage."
f"\nPlease consider increasing the CPU request for the {active_mds_pod} pod as described in the runbook."
f" Please consider {scaling_type} scaling, by adding more resources to the existing MDS pod."
f" Please see 'runbook_url' for more details."
)
runbook = (
"https://github.com/openshift/runbooks/blob/master/alerts/"
"openshift-container-storage-operator/CephMdsCpuUsageHigh.md"
"https://github.com/openshift/runbooks/blob/master/alerts/openshift-container-storage-operator"
"/CephMdsCpuUsageHighNeedsVerticalScaling.md"
)
severity = "warning"
state = ["pending"]
Expand Down

0 comments on commit eeb9b8c

Please sign in to comment.