-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tfrobot: Support deployments cancelation on Ctrl+c #838
Comments
4 tasks
Work completed: ➜ tfrobot git:(development-cancel-deployments-on-SIGTERM) ✗ go run main.go deploy -c config.yaml
2:40PM INF starting peer session=tf-320046 twin=10804
2:40PM INF validating configuration file
2:40PM INF done validating configuration file
2:40PM INF Running deployment Node group=group_a
2:40PM INF Filter nodes Node group=group_a
2:40PM WRN Planetary and public IP options are false. Setting planetary IP to true vms group=example1vm
2:40PM INF Starting mass deployment Node group=group_a
2:41PM INF Retrying to deploy Deployment trial=2 Node group=group_a
2:41PM INF Filter nodes Node group=group_a
2:41PM INF Starting mass deployment Node group=group_a
2:41PM INF Done deploying Node group=group_a
2:41PM INF Running deployment Node group=group_b
2:41PM INF Filter nodes Node group=group_b
2:41PM WRN Planetary and public IP options are false. Setting planetary IP to true vms group=example2vm
2:41PM INF Starting mass deployment Node group=group_b
^C
2:41PM INF canceling contracts project name=group_b
2:42PM INF Running deployment Node group=group_c
2:42PM INF canceling contracts project name=group_c
2:42PM INF project is canceled project name=group_c
2:42PM INF Running deployment Node group=group_d
2:42PM INF canceling contracts project name=group_d
2:42PM INF project is canceled project name=group_d
2:42PM INF canceling contracts project name=group_a
2:42PM INF canceling contracts project name=group_b
2:42PM INF project is canceled project name=group_b
2:42PM INF canceling contracts project name=group_c
2:42PM INF project is canceled project name=group_c
2:42PM INF canceling contracts project name=group_d
2:42PM INF project is canceled project name=group_d
2:42PM FTL error="failed to run deployer, deployment was interrupted with signal SIGTERM"
exit status 1
➜ tfrobot git:(development-cancel-deployments-on-SIGTERM)
|
It didn't work with me; I deployed and stopped it, and it didn't cancel any of the deployed contracts.
|
Work completed
➜ tfrobot git:(development-fix-tfrobot-cancel-on-ctrl-c) ✗ go run main.go deploy -c config.yml
5:20PM INF starting peer session=tf-573353 twin=6410
5:20PM INF validating configuration file
5:20PM INF done validating configuration file
5:20PM INF Running deployment Node group=group_a
5:20PM INF Filter nodes Node group=group_a
5:20PM WRN Planetary and public IP options are false. Setting planetary IP to true vms group=examplevm
5:20PM INF Starting mass deployment Node group=group_a
5:20PM INF Done deploying Node group=group_a
5:20PM INF Running deployment Node group=group_b
5:20PM INF Filter nodes Node group=group_b
5:20PM WRN Planetary and public IP options are false. Setting planetary IP to true vms group=examplevm
5:20PM INF Starting mass deployment Node group=group_b
^C
5:21PM INF canceling contracts project name=vm/group_b
5:21PM INF project is canceled project name=vm/group_b
5:21PM INF Running deployment Node group=group_c
5:21PM INF canceling contracts project name=vm/group_c
5:21PM INF project is canceled project name=vm/group_c
5:21PM INF canceling contracts project name=vm/group_a
5:21PM INF project is canceled project name=vm/group_a
5:21PM INF canceling contracts project name=vm/group_b
5:21PM INF canceling contracts project name=vm/group_c
5:21PM INF project is canceled project name=vm/group_c
5:21PM FTL error="failed to run deployer, deployment was interrupted with signal SIGTERM"
exit status 1
➜ tfrobot git:(development-fix-tfrobot-cancel-on-ctrl-c) ✗ go run main.go load -c config.yml
5:21PM INF starting peer session=tf-575218 twin=6410
5:21PM INF Loading deployments
ok: {}
error:
group_a: couldn't find any contracts of node group group_a
group_b: couldn't find any contracts of node group group_b
group_c: couldn't find any contracts of node group group_c
|
verified: deployments are canceled on ctrl+c
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe
tfrobot stops deployment on Ctrl+c but don't cancel deployed vms
Describe the solution you'd like
Cancelation on Ctrl+c should be added to clean up after not completed deployments
The text was updated successfully, but these errors were encountered: