canonical / mysql-k8s-operator

A Charmed Operator for running MySQL on Kubernetes
https://charmhub.io/mysql-k8s
Apache License 2.0
8 stars 16 forks source link

DPE-5582 Timeout node count query #514

Closed paulomach closed 1 month ago

paulomach commented 1 month ago

Issue

Recent PR #499 introduced new method on update status for the k8s charm. The method calls node_count method that fails on all units if there's one unresponsive unit, causing regression in freeze db tests, due responsive units not being able to relabel pods.

Solution

Add timeout on node_count method to avoid hanging due unresponsive unit(s).