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

Building cluster in existing VPC takes over VPC and IGW #3203

Closed
erkolson opened this issue Aug 15, 2017 · 10 comments
Closed

Building cluster in existing VPC takes over VPC and IGW #3203

erkolson opened this issue Aug 15, 2017 · 10 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@erkolson
Copy link

I'm trying to use an existing VPC to test upgrading from v1.6.1 to v1.7.3. This VPC contains my dev/qa kubernetes cluster running 1.6.1 managed by kops.

I've built the test cluster at 1.6.1 and all looks great. When I run kops update cluster (using kops 1.7.0), it wants to make the expected changes but also the following:

  InternetGateway/k8s-17-test.example.com
  	Name                	 kubernetes-devqa.example.com -> k8s-17-test.example.com

  VPC/k8s-17-test.example.com
  	Name                	 kubernetes-devqa.example.com -> k8s-17-test.example.com
  	Tags                	 {Name: kubernetes-devqa.example.com} -> {kubernetes.io/cluster/k8s-17-test.example.com: shared, KubernetesCluster: k8s-17-test.example.com, Name: k8s-17-test.example.com}

I think the behavior is wrong. It did not create the VPC or the IGW, it should leave it alone. Is kops expected to support more than one cluster in a VPC?

One more note, I also see the same changes when I run kops update cluster with kops v1.6.1.

@KashifSaadat
Copy link
Contributor

Hi @erkolson. The dry-run will alert for the Name and Tag changes but will not actually modify those resources. There is a fix for it in progress here: #3184

@chrislovecnm
Copy link
Contributor

Any update on this issue? Can we close?

@danieljamesscott
Copy link

I'm still seeing this issue

@KashifSaadat
Copy link
Contributor

Hi @danieljamesscott, which version of the Kops binary are you using? Can you provide a snippet of the kops update cluster dryrun command so I can see what resources it is saying will be updated?

@danieljamesscott
Copy link

danieljamesscott commented Dec 19, 2017

dscott@localhost:~$ $ kops version
Version 1.8.0 (git-5099bc5)

...
Will modify resources:
  InternetGateway/kube.dan.example.com
        Name                     dan-igw -> kube.dan.example.com

  SSHKey/qmg-aws
        PublicKey                <nil> -> <resource>
        KeyFingerprint           <<OMITTED>> -> <<OMITTED>>

  VPC/kube.dan.example.com
        Tags                     {} -> {kubernetes.io/cluster/kube.dan.example.com: shared}

Must specify --yes to apply changes

dscott@localhost:~$ $ 

So it's showing that it will change the name of the gateway. For the SSH key, I created the cluster with no ssh key, then added an 'sshKeyName' entry to the spec - possibly it needs to re-upload a public SSH key?

EDIT: I'm fine with the VPC tagging, it's mainly the IGW name that's bothering me - the SSH key is probably a separate issue.

@KashifSaadat
Copy link
Contributor

Hi @danieljamesscott, thanks for providing the output.

I've tested with the specific kops version you were using (git hash 5099bc5) and was able to recreate the issue. I then built kops from source, retested and found that both the IGW and SSHKey changes were no longer shown, so it seems this has been fixed now.

Would you be able to test and confirm by building kops off the master branch?

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 20, 2018
@MadWombat
Copy link

I am on 1.8.1 and I am still seeing this issue.

@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 27, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

7 participants