Skip to content

Commit

Permalink
Fix ydbd_slice format drives call (#3814)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunga authored Apr 17, 2024
1 parent 4c14c55 commit e264ef6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ydb/tools/ydbd_slice/kube/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from collections import defaultdict
from kubernetes.client import Configuration

from ydb.tools.ydbd_slice import nodes, handlers
from ydb.tools.ydbd_slice import nodes
from ydb.tools.ydbd_slice.kube import api, kubectl, yaml, generate, cms, dynconfig


Expand Down Expand Up @@ -230,10 +230,9 @@ def slice_nodeclaim_format(api_client, project_path, manifests):
logger.info('no nodes found, nothing to format.')
return
node_list = nodes.Nodes(node_list)
handlers.format_drivers(node_list)
cmd = r"sudo find /dev/disk/ -path '*/by-partlabel/kikimr_*' " \
r"-exec dd if=/dev/zero of={} bs=1M count=1 status=none \;"
nodes.execute_async(cmd)
node_list.execute_async(cmd)


def slice_nodeclaim_delete(api_client, project_path, manifests):
Expand Down

0 comments on commit e264ef6

Please sign in to comment.