Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

AWS Cluster Autoscaler: NodeGroupForNode should return nil if instance is not in any known ASG #1721

Conversation

andrewsykim
Copy link

@andrewsykim andrewsykim commented Sep 9, 2016

#1311

We ran into a bug where the CheckGroupsAndNodes check fails once we added a second ASG to our cluster that was not maintained by CA. And that's because in GetAsgForInstance we should be returning a nil group if the instance doesn't belong to any of the groups that the CA is aware of.


This change is Reviewable

@andrewsykim
Copy link
Author

@mwielgus @pbitty @osxi @iterion R?

@mwielgus
Copy link
Contributor

mwielgus commented Sep 9, 2016

LGTM

@mwielgus mwielgus added the lgtm Indicates that a PR is ready to be merged. label Sep 9, 2016
@pbitty
Copy link

pbitty commented Sep 9, 2016

LGTM

@mwielgus
Copy link
Contributor

@k8s-bot test this

@mwielgus mwielgus closed this Sep 12, 2016
@mwielgus mwielgus reopened this Sep 12, 2016
@mwielgus
Copy link
Contributor

Skipping hack/../hack/verify-all.sh
!!! 'gofmt -s' needs to be run on the following files: 
./cluster-autoscaler/cloudprovider/aws/aws_cloud_provider_test.go

@andrewsykim Please run the above command and push the new version.

@andrewsykim andrewsykim force-pushed the aws-ca-bug-instance-not-in-known-group branch from 9e34255 to fa8d4cd Compare September 12, 2016 17:44
@k8s-github-robot
Copy link

/lgtm cancel //PR changed after LGTM, removing LGTM. @andrewsykim @mwielgus

@k8s-github-robot k8s-github-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 12, 2016
@mwielgus mwielgus added the lgtm Indicates that a PR is ready to be merged. label Sep 12, 2016
@mwielgus mwielgus merged commit 4e617b9 into kubernetes-retired:master Sep 12, 2016
k8s-github-robot pushed a commit to kubernetes/kubernetes that referenced this pull request Sep 12, 2016
Automatic merge from submit-queue

Bump cluster autoscaler to 0.3

Almost no changes comparing to 0.3.0-beta6. Just a minor fix in AWS support: kubernetes-retired/contrib#1721.
pwittrock pushed a commit to kubernetes/kubernetes that referenced this pull request Sep 13, 2016
Automatic merge from submit-queue

Bump cluster autoscaler to 0.3

Almost no changes comparing to 0.3.0-beta6. Just a minor fix in AWS support: kubernetes-retired/contrib#1721.
(cherry picked from commit bfef4ad)
@andrewsykim andrewsykim deleted the aws-ca-bug-instance-not-in-known-group branch September 13, 2016 20:42
shyamjvs pushed a commit to shyamjvs/kubernetes that referenced this pull request Dec 1, 2016
Automatic merge from submit-queue

Bump cluster autoscaler to 0.3

Almost no changes comparing to 0.3.0-beta6. Just a minor fix in AWS support: kubernetes-retired/contrib#1721.
(cherry picked from commit bfef4ad)
mwielgus added a commit to kubernetes/autoscaler that referenced this pull request Apr 18, 2017
…a-bug-instance-not-in-known-group

AWS Cluster Autoscaler: NodeGroupForNode should return nil if instance is not in any known ASG
mwielgus added a commit to kubernetes/autoscaler that referenced this pull request Apr 18, 2017
…a-bug-instance-not-in-known-group

AWS Cluster Autoscaler: NodeGroupForNode should return nil if instance is not in any known ASG
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants