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

Error creating cluster: "found duplicate tasks with name" #1415

Closed
itskingori opened this Issue Jan 9, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@itskingori
Copy link
Member

itskingori commented Jan 9, 2017

Version of kops

$ kops version
Version 1.5.0-alpha1

Ps: Specific commit is 2dbda04.


Step 1: Initialize the cluster

$ kops create cluster \
  --name=production.kubernetes.example.com \
  --state=s3://example.kubernetes \
  --bastion=true \
  --cloud=aws \
  --dns-zone=production.kubernetes.example.com \
  --master-zones=us-east-1c,us-east-1d,us-east-1e \
  --master-size=m4.large \
  --networking=weave \
  --node-size=m4.large \
  --node-count=3 \
  --network-cidr=10.80.0.0/16 \
  --out=. \
  --ssh-public-key=~/.ssh/kubernetes_rsa.pub \
  --target=terraform \
  --topology=private \
  --zones=us-east-1c,us-east-1d,us-east-1e

Step 2: Edited the cluster

$ kops edit cluster \
  --name=production.kubernetes.example.com \
  --state=s3://example.kubernetes
spec:
  topology:
    bastion:
-      bastionPublicName: bastion-production.kubernetes.example.com
+      bastionPublicName: bastion.production.kubernetes.example.com

Step 3: Output edits to Terraform

$ kops update cluster \
  --name=production.kubernetes.example.com \
  --state=s3://example.kubernetes \
  --out=. \
  --target=terraform

This is the error I get:

F0109 17:57:11.085785   34106 task.go:55] found duplicate tasks with name "DNSZone/production.kubernetes.example.com": *awstasks.DNSZone {"Name":"production.kubernetes.example.com","DNSName":"production.kubernetes.example.com","ZoneID":null,"Private":false,"PrivateVPC":null} and *awstasks.DNSZone {"Name":"production.kubernetes.example.com","DNSName":"production.kubernetes.example.com","ZoneID":null,"Private":false,"PrivateVPC":null}
@kris-nova

This comment has been minimized.

Copy link
Member

kris-nova commented Jan 9, 2017

Duplicate of #1374 and #1410

Fixed in #1345

@itskingori

Can you please build from HEAD now that this has been merged and try again?

@kris-nova kris-nova closed this Jan 9, 2017

@itskingori

This comment has been minimized.

Copy link
Member

itskingori commented Jan 9, 2017

@kris-nova Ok. 👍

Sorry about that 🙈 ... for once I didn't check. I was testing your new bastion fixes but I'd branched off at 2dbda04 a few hours ago. It didn't quite look related to the bastion issue so didn't want to pollute #1322.

@itskingori

This comment has been minimized.

Copy link
Member

itskingori commented Jan 9, 2017

I can confirm latest version solves this problem (dfed37e).

Thanks. 🙌

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