[#182] Updates for dev-env

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
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: attributes:
sudo_shell: false sudo_shell: false
plugin_name: docker plugin_name: docker
healthcheck_plugin_name: basic
attributes:
skip_readiness_check: True
force_transactions: True
services: services:
- name: s01 - name: s01
attributes: 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") @wait_for_success(60 * SERVICE_ACTIVE_TIME * 3, 60, title="Wait for {cluster_node} readiness")
def readiness_on_node(cluster_node: ClusterNode): 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 # TODO: Move to healtcheck classes
svc_name = cluster_node.service(StorageNode).get_service_systemctl_name() svc_name = cluster_node.service(StorageNode).get_service_systemctl_name()
with reporter.step(f"Check service {svc_name} is active"): with reporter.step(f"Check service {svc_name} is active"):