Skip to content
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

Simple test fails #675

Open
nikolay opened this issue Sep 2, 2018 · 2 comments
Open

Simple test fails #675

nikolay opened this issue Sep 2, 2018 · 2 comments

Comments

@nikolay
Copy link

nikolay commented Sep 2, 2018

PS C:\Users\nikol\Code\Infra> C:\Users\nikol\go\bin\kubicorn.exe create stzlata --profile do
2018-09-01T19:14:36-07:00 [ℹ]  Selected [fs] state store
2018-09-01T19:14:36-07:00 [✿]  The state [./_state/stzlata/cluster.yaml] has been created. You can edit the file, then run `kubicorn apply stzlata`
PS C:\Users\nikol\Code\Infra> C:\Users\nikol\go\bin\kubicorn.exe apply stzlata
2018-09-01T19:14:55-07:00 [ℹ]  Selected [fs] state store
2018-09-01T19:14:55-07:00 [ℹ]  Loaded cluster: stzlata
2018-09-01T19:14:55-07:00 [ℹ]  Init Cluster
2018-09-01T19:14:55-07:00 [ℹ]  Query existing resources
2018-09-01T19:14:57-07:00 [ℹ]  Resolving expected resources
2018-09-01T19:14:57-07:00 [ℹ]  Reconciling
2018-09-01T19:14:57-07:00 [ℹ]  Parsing bootstrap script from GitHub [https://raw.githubusercontent.com/kubicorn/bootstrap/master/digitalocean_k8s_ubuntu_16.04_master.sh]
2018-09-01T19:14:59-07:00 [✔]  Created Droplet [108328841]
2018-09-01T19:15:01-07:00 [ℹ]  Waiting for Private IP address...
2018-09-01T19:15:01-07:00 [ℹ]  Parsing bootstrap script from GitHub [https://raw.githubusercontent.com/kubicorn/bootstrap/master/digitalocean_k8s_ubuntu_16.04_node.sh]
2018-09-01T19:15:02-07:00 [✔]  Created Droplet [108328846]
2018-09-01T19:15:04-07:00 [✔]  Created Droplet [108328849]
2018-09-01T19:15:05-07:00 [✔]  Created Firewall [0a60e295-c67c-4113-84d5-bdd6dc17931a]
2018-09-01T19:15:06-07:00 [✔]  Created Firewall [3288f6f5-4925-4183-8bf5-a7f9bc221cd4]
2018-09-01T19:15:06-07:00 [ℹ]  Updating state store for cluster [stzlata]
2018-09-01T19:15:06-07:00 [ℹ]  Hanging while fetching kube config...
2018-09-01T19:17:51-07:00 [✿]  The [stzlata] cluster has applied successfully!
2018-09-01T19:17:51-07:00 [✿]  You can now `kubectl get nodes`
2018-09-01T19:17:51-07:00 [✿]  You can SSH into your cluster ssh -i ~/.ssh/id_rsa root@178.128.6.81
PS C:\Users\nikol\Code\Infra> C:\Users\nikol\go\bin\kubicorn.exe apply stzlata
2018-09-01T19:20:36-07:00 [ℹ]  Selected [fs] state store
2018-09-01T19:20:36-07:00 [ℹ]  Loaded cluster: stzlata
2018-09-01T19:20:36-07:00 [ℹ]  Init Cluster
2018-09-01T19:20:36-07:00 [ℹ]  Query existing resources
2018-09-01T19:20:39-07:00 [ℹ]  Resolving expected resources
2018-09-01T19:20:39-07:00 [ℹ]  Reconciling
2018-09-01T19:20:40-07:00 [ℹ]  Parsing bootstrap script from GitHub [https://raw.githubusercontent.com/kubicorn/bootstrap/master/digitalocean_k8s_ubuntu_16.04_master.sh]
2018-09-01T19:20:41-07:00 [✔]  Created Droplet [108329228]
2018-09-01T19:20:43-07:00 [✖]  Error during apply of atomic reconciler, attempting clawback: Found [2] droplets for tag [stzlata-master]
2018-09-01T19:20:44-07:00 [!]
2018-09-01T19:20:44-07:00 [!]  Attempting to backtrack and cleanup created resources.
2018-09-01T19:20:44-07:00 [!]
2018-09-01T19:20:47-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:20:52-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:20:58-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:04-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:09-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:15-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:21-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:26-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:32-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:38-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:43-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:49-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:21:55-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:00-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:06-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:12-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:17-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:23-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:28-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:34-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:40-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:46-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:22:52-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:23:06-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:23:11-07:00 [ℹ]  Droplet count mis-match, trying query again
2018-09-01T19:23:17-07:00 [✔]  Deleted Droplet [108328841]
2018-09-01T19:23:18-07:00 [✔]  Deleted Droplet [108329228]
2018-09-01T19:23:18-07:00 [✖]  Unable to commit state store: Nil cluster spec
@xmudrii
Copy link
Member

xmudrii commented Sep 3, 2018

@nikolay Thank you for reporting the issue!

This is a known issue. Currently, it is not possible to apply one state multiple times. Once cluster is applied, if you want a new one, you need to create a new state (kubicorn create), and then apply that one.

Therefore, it is not possible to redeploy or scale the cluster without creating a new one.

You can also check issue #512 for more details about this issue and progress report.

@nikolay
Copy link
Author

nikolay commented Sep 6, 2018

Sorry, my personal expectation was that kubicorn apply is idempotent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants