open-nomad/command
Michael Schurter ee3eddbac3 drain: block cli until all allocs stop
Before the drain CLI would block until the node was marked as completing
drain operations. While technically correct, it could lead operators (or
more likely: scripts) to shutdown drained nodes before all of its
allocations had *actually* terminated.

This change makes the CLI block until all allocations have terminated
(unless ignoring system jobs).
2018-03-29 10:56:09 -07:00
..
agent Merge pull request #4046 from hashicorp/tls-same-file-reload 2018-03-29 10:51:32 -04:00
test-resources Refactor spawn-daemon so it can be used by all OSes and make it write exit code to a file 2015-10-28 16:23:33 -07:00
acl.go Grouped commands help description 2018-03-21 20:27:32 -07:00
acl_bootstrap.go sync 2017-10-13 14:36:02 -07:00
acl_bootstrap_test.go spelling: bootstrap 2018-03-11 17:43:19 +00:00
acl_policy.go Grouped commands help description 2018-03-21 20:27:32 -07:00
acl_policy_apply.go sync 2017-10-13 14:36:02 -07:00
acl_policy_apply_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_policy_delete.go sync 2017-10-13 14:36:02 -07:00
acl_policy_delete_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_policy_info.go sync 2017-10-13 14:36:02 -07:00
acl_policy_info_test.go policy list and token self commands 2017-10-13 16:31:46 -07:00
acl_policy_list.go List does json/template 2017-10-13 16:37:33 -07:00
acl_policy_list_test.go List does json/template 2017-10-13 16:37:33 -07:00
acl_token.go Grouped commands help description 2018-03-21 20:27:32 -07:00
acl_token_create.go sync 2017-10-13 14:36:02 -07:00
acl_token_create_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_token_delete.go sync 2017-10-13 14:36:02 -07:00
acl_token_delete_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_token_info.go sync 2017-10-13 14:36:02 -07:00
acl_token_info_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_token_self.go Update acl_token_self.go 2017-10-13 16:38:13 -07:00
acl_token_self_test.go policy list and token self commands 2017-10-13 16:31:46 -07:00
acl_token_update.go sync 2017-10-13 14:36:02 -07:00
acl_token_update_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
agent_info.go Return AgentSelf struct from Agent.Self() instead of map 2017-03-08 15:59:10 +01:00
agent_info_test.go Parallel 2017-07-20 21:24:21 -07:00
alloc.go Grouped commands help description 2018-03-21 20:27:32 -07:00
alloc_fs.go aliases 2018-03-21 20:27:32 -07:00
alloc_fs_test.go rename files 2018-03-21 20:27:32 -07:00
alloc_logs.go aliases 2018-03-21 20:27:32 -07:00
alloc_logs_test.go rename files 2018-03-21 20:27:32 -07:00
alloc_status.go use subcommands 2018-03-21 20:27:32 -07:00
alloc_status_test.go Code review feedback 2018-01-31 09:58:05 -06:00
check.go add global flags to autocomplete 2017-08-23 22:58:44 +00:00
check_test.go Parallel 2017-07-20 21:24:21 -07:00
commands.go color 2018-03-21 20:27:32 -07:00
data_format.go Formatting abilities 2017-07-07 12:07:07 -07:00
data_format_test.go Parallel 2017-07-20 21:24:21 -07:00
deployment.go Fix spelling error 2018-03-22 15:18:09 -07:00
deployment_fail.go sync 2017-10-13 14:36:02 -07:00
deployment_fail_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
deployment_list.go sync 2017-10-13 14:36:02 -07:00
deployment_list_test.go Parallel 2017-07-20 21:24:21 -07:00
deployment_pause.go sync 2017-10-13 14:36:02 -07:00
deployment_pause_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
deployment_promote.go sync 2017-10-13 14:36:02 -07:00
deployment_promote_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
deployment_resume.go sync 2017-10-13 14:36:02 -07:00
deployment_resume_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
deployment_status.go sync 2017-10-13 14:36:02 -07:00
deployment_status_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
eval.go Grouped commands help description 2018-03-21 20:27:32 -07:00
eval_status.go use subcommands 2018-03-21 20:27:32 -07:00
eval_status_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
executor_plugin.go Added executorconfig 2017-01-12 15:47:58 -08:00
helpers.go Deprecated commands 2018-03-21 20:27:32 -07:00
helpers_test.go Show reschedule eligibility time in alloc-status when followup evalid is available 2018-03-14 16:10:32 -05:00
integration_test.go update test to use assert 2017-09-05 16:38:15 -07:00
job.go Grouped commands help description 2018-03-21 20:27:32 -07:00
job_deployments.go sync 2017-10-13 14:36:02 -07:00
job_deployments_test.go Add testing around nomad job deployments command 2017-09-06 17:16:46 -07:00
job_dispatch.go sync 2017-10-13 14:36:02 -07:00
job_dispatch_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
job_history.go sync 2017-10-13 14:36:02 -07:00
job_history_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
job_init.go aliases 2018-03-21 20:27:32 -07:00
job_init_test.go rename files 2018-03-21 20:27:32 -07:00
job_inspect.go aliases 2018-03-21 20:27:32 -07:00
job_inspect_test.go rename files 2018-03-21 20:27:32 -07:00
job_plan.go Fix old references 2018-03-22 13:39:18 -07:00
job_plan_test.go rename files 2018-03-21 20:27:32 -07:00
job_promote.go sync 2017-10-13 14:36:02 -07:00
job_promote_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
job_revert.go sync 2017-10-13 14:36:02 -07:00
job_revert_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
job_run.go rename files 2018-03-21 20:27:32 -07:00
job_run_test.go rename files 2018-03-21 20:27:32 -07:00
job_status.go More code review feedback 2018-03-21 14:28:14 -05:00
job_status_test.go More code review feedback 2018-03-21 14:28:14 -05:00
job_stop.go rename files 2018-03-21 20:27:32 -07:00
job_stop_test.go rename files 2018-03-21 20:27:32 -07:00
job_validate.go aliases 2018-03-21 20:27:32 -07:00
job_validate_test.go rename files 2018-03-21 20:27:32 -07:00
meta.go color 2018-03-21 20:27:32 -07:00
meta_test.go add acl token as meta flag 2017-09-15 23:33:43 +00:00
monitor.go spelling: sanitize 2018-03-11 18:52:59 +00:00
monitor_test.go spelling: triggered 2018-03-11 19:06:15 +00:00
namespace.go Grouped commands help description 2018-03-21 20:27:32 -07:00
namespace_apply.go sync 2017-10-13 14:36:02 -07:00
namespace_apply_test.go fix test 2017-09-19 10:28:23 -05:00
namespace_delete.go sync 2017-10-13 14:36:02 -07:00
namespace_delete_test.go Sync namespace changes 2017-09-07 17:04:21 -07:00
namespace_inspect.go add missing namespace commands 2017-10-13 16:32:47 -07:00
namespace_inspect_test.go Inspect returns json, not cli formatted output 2017-12-05 12:04:11 -05:00
namespace_list.go guide 2017-10-16 11:23:18 -07:00
namespace_list_test.go List does json/template 2017-10-13 16:37:33 -07:00
namespace_status.go gofmt changes 2017-11-29 19:43:19 -05:00
namespace_status_test.go Handle exact namespace match properly when also matched as prefix 2017-11-29 19:40:08 -05:00
node.go Grouped commands help description 2018-03-21 20:27:32 -07:00
node_config.go rename files 2018-03-21 20:27:32 -07:00
node_config_test.go rename files 2018-03-21 20:27:32 -07:00
node_drain.go drain: block cli until all allocs stop 2018-03-29 10:56:09 -07:00
node_drain_test.go drain: block cli until all allocs stop 2018-03-29 10:56:09 -07:00
node_eligibility.go code review 2018-03-21 16:51:44 -07:00
node_eligibility_test.go Fix node eligibility test 2018-03-21 16:51:45 -07:00
node_status.go reformat message 2018-03-28 12:28:16 -04:00
node_status_test.go non-Existent -> nonexistent 2018-03-12 11:59:33 -07:00
operator.go Grouped commands help description 2018-03-21 20:27:32 -07:00
operator_autopilot.go remove comment 2018-03-22 14:49:08 -07:00
operator_autopilot_get.go Clean up some leftover autopilot differences from Consul 2018-02-08 10:27:26 -08:00
operator_autopilot_get_test.go Add autopilot functionality based on Consul's autopilot 2017-12-18 14:29:41 -08:00
operator_autopilot_set.go Clean up some leftover autopilot differences from Consul 2018-02-08 10:27:26 -08:00
operator_autopilot_set_test.go spelling: command 2018-03-11 17:47:37 +00:00
operator_autopilot_test.go Add autopilot functionality based on Consul's autopilot 2017-12-18 14:29:41 -08:00
operator_keygen.go rename files 2018-03-21 20:27:32 -07:00
operator_keygen_test.go rename files 2018-03-21 20:27:32 -07:00
operator_keyring.go rename files 2018-03-21 20:27:32 -07:00
operator_raft.go Grouped commands help description 2018-03-21 20:27:32 -07:00
operator_raft_list.go Added support for v2 raft APIs and -raft-protocol option 2017-12-12 10:17:16 -06:00
operator_raft_list_test.go Parallel 2017-07-20 21:24:21 -07:00
operator_raft_remove.go Add raft remove by id endpoint/command 2018-01-16 13:35:32 -08:00
operator_raft_remove_test.go Add raft remove by id endpoint/command 2018-01-16 13:35:32 -08:00
operator_raft_test.go Parallel 2017-07-20 21:24:21 -07:00
operator_test.go Parallel 2017-07-20 21:24:21 -07:00
quota.go Grouped commands help description 2018-03-21 20:27:32 -07:00
quota_apply.go sync 2017-10-13 14:36:02 -07:00
quota_apply_test.go sync 2017-10-13 14:36:02 -07:00
quota_delete.go quota command docs 2017-10-13 16:16:36 -07:00
quota_delete_test.go sync 2017-10-13 14:36:02 -07:00
quota_init.go sync 2017-10-13 14:36:02 -07:00
quota_init_test.go sync 2017-10-13 14:36:02 -07:00
quota_inspect.go sync 2017-10-13 14:36:02 -07:00
quota_inspect_test.go sync 2017-10-13 14:36:02 -07:00
quota_list.go guide 2017-10-16 11:23:18 -07:00
quota_list_test.go sync 2017-10-13 14:36:02 -07:00
quota_status.go quota command docs 2017-10-13 16:16:36 -07:00
quota_status_test.go sync 2017-10-13 14:36:02 -07:00
sentinel.go Grouped commands help description 2018-03-21 20:27:32 -07:00
sentinel_apply.go spelling: enforcement 2018-03-11 17:59:12 +00:00
sentinel_apply_test.go sync 2017-09-19 10:08:23 -05:00
sentinel_delete.go sync 2017-10-13 14:36:02 -07:00
sentinel_delete_test.go sync 2017-09-19 10:08:23 -05:00
sentinel_list.go sync 2017-10-13 14:36:02 -07:00
sentinel_list_test.go sync 2017-09-19 10:08:23 -05:00
sentinel_read.go sync 2017-10-13 14:36:02 -07:00
sentinel_read_test.go sync 2017-09-19 10:08:23 -05:00
server.go Grouped commands help description 2018-03-21 20:27:32 -07:00
server_force_leave.go use subcommands 2018-03-21 20:27:32 -07:00
server_force_leave_test.go Parallel 2017-07-20 21:24:21 -07:00
server_join.go use subcommands 2018-03-21 20:27:32 -07:00
server_join_test.go Parallel 2017-07-20 21:24:21 -07:00
server_members.go use subcommands 2018-03-21 20:27:32 -07:00
server_members_test.go Ignore left members when querying regions for leader in server-members command. 2018-03-05 16:56:36 -06:00
status.go sync 2017-10-13 14:36:02 -07:00
status_test.go Status honors exact match and displays matches when more than one is available 2017-08-29 08:42:09 -07:00
ui.go UI command documentation 2017-10-11 18:24:58 -07:00
util_test.go Standardize retrieving a free port into a helper package 2017-10-23 16:48:20 -07:00
version.go Add version package 2017-08-16 15:44:21 -07:00
version_test.go Parallel 2017-07-20 21:24:21 -07:00