[#182] Updates for dev-env

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
support/v0.39
Andrey Berezin 2024-01-12 18:16:56 +03:00 committed by Andrey Berezin
parent 5bc170e6f9
commit 3a380755b4
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,10 @@ hosts:
attributes:
sudo_shell: false
plugin_name: docker
healthcheck_plugin_name: basic
attributes:
skip_readiness_check: True
force_transactions: True
services:
- name: s01
attributes:

View File

@ -371,6 +371,12 @@ def after_deploy_healthcheck(cluster: Cluster):
@wait_for_success(60 * SERVICE_ACTIVE_TIME * 3, 60, title="Wait for {cluster_node} readiness")
def readiness_on_node(cluster_node: ClusterNode):
if (
"skip_readiness_check" in cluster_node.host.config.attributes
and cluster_node.host.config.attributes["skip_readiness_check"]
):
return
# TODO: Move to healtcheck classes
svc_name = cluster_node.service(StorageNode).get_service_systemctl_name()
with reporter.step(f"Check service {svc_name} is active"):