Skip to content

Commit

Permalink
[ydbd_slice] fix Namespace exception(args.confirm) on update (#13171)
Browse files Browse the repository at this point in the history
  • Loading branch information
shmel1k authored Jan 4, 2025
1 parent 1d8fe0a commit e9955b8
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions ydb/tools/ydbd_slice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ def deduce_components_from_args(args, cluster_details):
if 'dynamic_slots' in result:
result['dynamic_slots'] = ['all']

result['confirm'] = args.confirm
if hasattr(args, "confirm"):
confirm = args.confirm
else:
confirm = True
result['confirm'] = confirm

logger.debug("active components is '%s'", result)
return result
Expand Down Expand Up @@ -749,10 +753,17 @@ def _run(args):

mode = modes.add_parser(
"clear",
parents=[direct_nodes_args(), cluster_description_args(), binaries_args(), component_args(), ssh_args()],
parents=[
direct_nodes_args(),
cluster_description_args(),
binaries_args(),
component_args(),
ssh_args(),
with_confirmation(),
],
description="Stop all ydbd instances at the nodes, format all ydbd drives, shutdown dynamic slots. "
"And don't start nodes after it. "
"Use --hosts to specify particular hosts."
"And don't start nodes after it. "
"Use --hosts to specify particular hosts.",
)
mode.set_defaults(handler=_run)

Expand Down

0 comments on commit e9955b8

Please sign in to comment.