Skip to content

Commit

Permalink
Increase drain timeout to 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafis Ganeev committed May 31, 2021
1 parent 8fb7883 commit 9ce98e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,7 @@ def _drain_nodes(sysadmin_client: vcd_client.Client, vapp_href, node_names,
script = "#!/usr/bin/env bash\n"
for node_name in node_names:
script += f"kubectl drain {node_name} " \
f"--ignore-daemonsets --timeout=60s --delete-local-data\n"
f"--ignore-daemonsets --timeout=300s --delete-local-data\n"

try:
vapp = vcd_vapp.VApp(sysadmin_client, href=vapp_href)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,7 @@ def _drain_nodes(sysadmin_client: vcd_client.Client, vapp_href, node_names,
script = "#!/usr/bin/env bash\n"
for node_name in node_names:
script += f"kubectl drain {node_name} " \
f"--ignore-daemonsets --timeout=60s --delete-local-data\n"
f"--ignore-daemonsets --timeout=300s --delete-local-data\n"

try:
vapp = vcd_vapp.VApp(sysadmin_client, href=vapp_href)
Expand Down
2 changes: 1 addition & 1 deletion container_service_extension/server/vcdbroker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ def _drain_nodes(sysadmin_client: vcd_client.Client, vapp_href, node_names,
script = "#!/usr/bin/env bash\n"
for node_name in node_names:
script += f"kubectl drain {node_name} " \
f"--ignore-daemonsets --timeout=60s --delete-local-data\n"
f"--ignore-daemonsets --timeout=300s --delete-local-data\n"

try:
vapp = vcd_vapp.VApp(sysadmin_client, href=vapp_href)
Expand Down

0 comments on commit 9ce98e3

Please sign in to comment.