{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/autoscaler/issues/903","repository_url":"https://api.github.com/repos/kubernetes/autoscaler","labels_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/903/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/903/comments","events_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/903/events","html_url":"https://github.com/kubernetes/autoscaler/issues/903","id":327149830,"number":903,"title":"CA does not scale up from zero nodes in group","user":{"login":"wskinner","id":1054197,"avatar_url":"https://avatars2.githubusercontent.com/u/1054197?v=4","gravatar_id":"","url":"https://api.github.com/users/wskinner","html_url":"https://github.com/wskinner","followers_url":"https://api.github.com/users/wskinner/followers","following_url":"https://api.github.com/users/wskinner/following{/other_user}","gists_url":"https://api.github.com/users/wskinner/gists{/gist_id}","starred_url":"https://api.github.com/users/wskinner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wskinner/subscriptions","organizations_url":"https://api.github.com/users/wskinner/orgs","repos_url":"https://api.github.com/users/wskinner/repos","events_url":"https://api.github.com/users/wskinner/events{/privacy}","received_events_url":"https://api.github.com/users/wskinner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-29T02:19:28Z","updated_at":"2018-05-29T02:19:28Z","closed_at":null,"author_association":"NONE","body":"**What happened**:\r\nCluster Autoscaler will not scale up from zero nodes. However, it will scale up from one node.\r\nI have a node group whose template includes p2.xlarge GPU instances. With zero running instances in my gpu-nodes node group, I create a new Job that requests 2 pods, each with 1 GPU. The pods are unschedulable, and CA logs show:\r\n```I0524 15:30:32.066956       1 factory.go:33] Event(v1.ObjectReference{Kind:\"Pod\", Namespace:\"engine\", Name:\"distributed-job-2xp8n\", UID:\"34fa9255-5f67-11e8-bede-068abf0075c0\", APIVersion:\"v1\", ResourceVersion:\"98300\", FieldPath:\"\"}): type: 'Normal' reason: 'NotTriggerScaleUp' pod didn't trigger scale-up (it wouldn't fit if a new node is added)```\r\nThe pods never get created, and no GPU instances get spun up.\r\n\r\n**What you expected to happen**:\r\nCA should scale up the cluster by adding two p2.xlarge instances to the gpu-nodes group.\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\nIn a kops cluster on AWS:\r\n1. Create a node group which includes p2.xlarge as the instance type.\r\n2. Create a Job that requests 2 containers, each requesting a single nvidia.com/gpu.\r\n\r\n**Anything else we need to know?**:\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\nClient Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.3\", GitCommit:\"2bba0127d85d5a46ab4b778548be28623b32d0b0\", GitTreeState:\"clean\", BuildDate:\"2018-05-21T09:17:39Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"8\", GitVersion:\"v1.8.7\", GitCommit:\"b30876a5539f09684ff9fde266fda10b37738c9c\", GitTreeState:\"clean\", BuildDate:\"2018-01-16T21:52:38Z\", GoVersion:\"go1.8.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n\r\n- Cloud provider or hardware configuration: AWS\r\n- OS (e.g. from /etc/os-release): k8s-1.8-debian-jessie-amd64-hvm-ebs-2018-02-08\r\n- Kernel (e.g. `uname -a`): Linux ip-172-20-40-189 4.4.115-k8s #1 SMP Thu Feb 8 15:37:40 UTC 2018 x86_64 GNU/Linux\r\n- Install tools: kops 1.8.1\r\n- Others: \r\nCA image: gcr.io/google_containers/cluster-autoscaler:v1.0.5\r\n"}}
{"actor":{"display_login":"wskinner"}}