From 7e69426b8b84cef24cf5a2646f97d489cac40584 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Mon, 22 Feb 2016 10:24:56 -0500 Subject: [PATCH] AWS: Only warn about nameless instances if they are running Otherwise this is just confusing logspam. Fix #20912 --- pkg/cloudprovider/providers/aws/aws.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cloudprovider/providers/aws/aws.go b/pkg/cloudprovider/providers/aws/aws.go index 596b6f2fd38..df1b41fb2d7 100644 --- a/pkg/cloudprovider/providers/aws/aws.go +++ b/pkg/cloudprovider/providers/aws/aws.go @@ -2344,7 +2344,9 @@ func (a *AWSCloud) getInstancesByNodeNames(nodeNames []string) ([]*ec2.Instance, for _, instance := range allInstances { nodeName := aws.StringValue(instance.PrivateDnsName) if nodeName == "" { - glog.V(2).Infof("ignoring ec2 instance with no PrivateDnsName: %q", aws.StringValue(instance.InstanceId)) + if isAlive(instance) { + glog.V(2).Infof("ignoring ec2 instance with no PrivateDnsName: %q", aws.StringValue(instance.InstanceId)) + } continue } i, found := nodeNamesMap[nodeName]