Skip to content

Commit

Permalink
restart rook-ceph-operator pod
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Horak <[email protected]>
  • Loading branch information
dahorak committed May 31, 2024
1 parent 7841087 commit 12ea8f0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@
validate_pods_are_respinned_and_running_state,
get_pods_having_label,
get_pod_count,
get_operator_pods,
delete_pods,
)
from ocs_ci.ocs.resources.storage_cluster import (
ocs_install_verification,
Expand Down Expand Up @@ -1611,6 +1613,21 @@ def configure_virtual_host_style_acess_for_rgw(self):
'["rgw.data.local","rook-ceph-rgw-ocs-storagecluster-cephobjectstore.openshift-storage.svc"]'
"}}}}'"
)
# Restart rook-ceph-operator pod, not sure if this is required step or just workaround
logger.info("Restarting rook-ceph-operator pod")
rook_ceph_operator_pods = get_operator_pods()
delete_pods(rook_ceph_operator_pods, wait=True)
# wait for rook-ceph-operator pod starts
pod_obj = OCP(
kind=constants.POD, namespace=config.ENV_DATA["cluster_namespace"]
)
pod_obj.wait_for_resource(
condition=constants.STATUS_RUNNING,
selector=constants.OPERATOR_LABEL,
timeout=300,
sleep=5,
)
logger.info("Pod rook-ceph-operator were successfully restarted")

def cleanup_pgsql_db(self):
"""
Expand Down

0 comments on commit 12ea8f0

Please sign in to comment.