payload: {"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/autoscaler/issues/1754","repository_url":"https://api.github.com/repos/kubernetes/autoscaler","labels_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/1754/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/1754/comments","events_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/1754/events","html_url":"https://github.com/kubernetes/autoscaler/issues/1754","id":417800862,"node_id":"MDU6SXNzdWU0MTc4MDA4NjI=","number":1754,"title":"AWS: Failed to look for node info on ASG Launch Template","user":{"login":"lcasassa","id":1313969,"node_id":"MDQ6VXNlcjEzMTM5Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1313969?v=4","gravatar_id":"","url":"https://api.github.com/users/lcasassa","html_url":"https://github.com/lcasassa","followers_url":"https://api.github.com/users/lcasassa/followers","following_url":"https://api.github.com/users/lcasassa/following{/other_user}","gists_url":"https://api.github.com/users/lcasassa/gists{/gist_id}","starred_url":"https://api.github.com/users/lcasassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcasassa/subscriptions","organizations_url":"https://api.github.com/users/lcasassa/orgs","repos_url":"https://api.github.com/users/lcasassa/repos","events_url":"https://api.github.com/users/lcasassa/events{/privacy}","received_events_url":"https://api.github.com/users/lcasassa/received_events","type":"User","site_admin":false},"labels":[{"id":602001307,"node_id":"MDU6TGFiZWw2MDIwMDEzMDc=","url":"https://api.github.com/repos/kubernetes/autoscaler/labels/aws","name":"aws","color":"bfdadc","default":false},{"id":587167715,"node_id":"MDU6TGFiZWw1ODcxNjc3MTU=","url":"https://api.github.com/repos/kubernetes/autoscaler/labels/cluster-autoscaler","name":"cluster-autoscaler","color":"d4c5f9","default":false},{"id":763888386,"node_id":"MDU6TGFiZWw3NjM4ODgzODY=","url":"https://api.github.com/repos/kubernetes/autoscaler/labels/sig/aws","name":"sig/aws","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":{"login":"Jeffwan","id":4739316,"node_id":"MDQ6VXNlcjQ3MzkzMTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4739316?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeffwan","html_url":"https://github.com/Jeffwan","followers_url":"https://api.github.com/users/Jeffwan/followers","following_url":"https://api.github.com/users/Jeffwan/following{/other_user}","gists_url":"https://api.github.com/users/Jeffwan/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeffwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeffwan/subscriptions","organizations_url":"https://api.github.com/users/Jeffwan/orgs","repos_url":"https://api.github.com/users/Jeffwan/repos","events_url":"https://api.github.com/users/Jeffwan/events{/privacy}","received_events_url":"https://api.github.com/users/Jeffwan/received_events","type":"User","site_admin":false},"assignees":[{"login":"Jeffwan","id":4739316,"node_id":"MDQ6VXNlcjQ3MzkzMTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4739316?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeffwan","html_url":"https://github.com/Jeffwan","followers_url":"https://api.github.com/users/Jeffwan/followers","following_url":"https://api.github.com/users/Jeffwan/following{/other_user}","gists_url":"https://api.github.com/users/Jeffwan/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeffwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeffwan/subscriptions","organizations_url":"https://api.github.com/users/Jeffwan/orgs","repos_url":"https://api.github.com/users/Jeffwan/repos","events_url":"https://api.github.com/users/Jeffwan/events{/privacy}","received_events_url":"https://api.github.com/users/Jeffwan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2019-03-06T13:23:12Z","updated_at":"2019-04-01T16:25:36Z","closed_at":null,"author_association":"NONE","body":"I have several ASG with current size 0. All of the ASG are created with ￼Launch Template. I'm using gcr.io/google-containers/cluster-autoscaler:v1.3.7 with the command:\r\n\r\n        - ./cluster-autoscaler\r\n        - --cloud-provider=aws\r\n        - --namespace=kube-system\r\n        - --node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled,kubernetes.io/cluster/eks-tf-mi-playground-1-cluster-01\r\n        - --expander=least-waste\r\n        - --logtostderr=true\r\n        - --stderrthreshold=info\r\n        - --v=4\r\n\r\nAnd somehow it is detecting them as Launch Configuration but it is not. How can I tell autoscaler to look for Launch Template on all ASG instead of Launch Configuration?\r\n\r\nThis are some logs:\r\n\r\n```\r\nI0306 13:16:06.427091       1 auto_scaling.go:48] Failed LaunchConfiguration info request for : ValidationError: 1 validation error detected: Value '[]' at 'launchConfigurationNames' failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 1600, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: [\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*]\r\n\tstatus code: 400, request id: ffed3ce5-4011-11e9-a015-cb400eaf9394\r\nE0306 13:16:06.427123       1 utils.go:280] Unable to build proper template node for eks-worker-tf-eks-01-m5-2xl-2: ValidationError: 1 validation error detected: Value '[]' at 'launchConfigurationNames' failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 1600, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: [\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*]\r\n\tstatus code: 400, request id: ffed3ce5-4011-11e9-a015-cb400eaf9394\r\nI0306 13:16:06.513070       1 auto_scaling_groups.go:316] Regenerating instance to ASG map for ASGs: [eks-worker-tf-eks-01-m5-2xl-0 eks-worker-tf-eks-01-m5-2xl-1 eks-worker-tf-eks-01-m5-2xl-2 eks-worker-tf-eks-01-m5-4xl-0 eks-worker-tf-eks-01-m5-4xl-1 eks-worker-tf-eks-01-m5-4xl-2 eks-worker-tf-eks-01-m5-l-0 eks-worker-tf-eks-01-m5-l-1 eks-worker-tf-eks-01-m5-l-2 eks-worker-tf-eks-01-p2-xl-0 eks-worker-tf-eks-01-p2-xl-1 eks-worker-tf-eks-01-p2-xl-2]\r\nI0306 13:16:06.626631       1 aws_manager.go:148] Refreshed ASG list, next refresh after 2019-03-06 13:16:16.626624752 +0000 UTC m=+715.550545349\r\nI0306 13:16:06.626757       1 utils.go:541] No pod using affinity / antiaffinity found in cluster, disabling affinity predicate for this loop\r\nI0306 13:16:06.626771       1 static_autoscaler.go:260] Filtering out schedulables\r\nI0306 13:16:06.627040       1 static_autoscaler.go:270] No schedulable pods\r\nI0306 13:16:06.627055       1 scale_up.go:249] Pod ml-dev/fuad-neural-training-job-pznxl is unschedulable\r\nI0306 13:16:06.627059       1 scale_up.go:249] Pod ml-dev/ali-changeme-0 is unschedulable\r\nE0306 13:16:06.627091       1 static_autoscaler.go:293] Failed to scale up: Could not compute total resources: No node info for: eks-worker-tf-eks-01-m5-2xl-0\r\nI0306 13:16:08.094772       1 leaderelection.go:209] successfully renewed lease kube-system/cluster-autoscaler\r\nI0306 13:16:10.104128       1 leaderelection.go:209] successfully renewed lease kube-system/cluster-autoscaler\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/kubernetes/autoscaler/issues/comments/478648900","html_url":"https://github.com/kubernetes/autoscaler/issues/1754#issuecomment-478648900","issue_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/1754","id":478648900,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3ODY0ODkwMA==","user":{"login":"Jeffwan","id":4739316,"node_id":"MDQ6VXNlcjQ3MzkzMTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4739316?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeffwan","html_url":"https://github.com/Jeffwan","followers_url":"https://api.github.com/users/Jeffwan/followers","following_url":"https://api.github.com/users/Jeffwan/following{/other_user}","gists_url":"https://api.github.com/users/Jeffwan/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeffwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeffwan/subscriptions","organizations_url":"https://api.github.com/users/Jeffwan/orgs","repos_url":"https://api.github.com/users/Jeffwan/repos","events_url":"https://api.github.com/users/Jeffwan/events{/privacy}","received_events_url":"https://api.github.com/users/Jeffwan/received_events","type":"User","site_admin":false},"created_at":"2019-04-01T16:25:36Z","updated_at":"2019-04-01T16:25:36Z","author_association":"CONTRIBUTOR","body":"Let me have a test on these versions and have a patch. @CAR6807  Thanks for reporting."}}
other: {"actor":{"display_login":"Jeffwan"}}