You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating the rabbitmq controller from the example, the rabbitmq pod is shown as "Pending" indefinitely. At the same time, creating the rabbitmq controller leads to the following stacktrace in /var/log/scheduler.log:
I0318 13:15:11.501964 4582 factory.go:156] About to try and schedule pod rabbitmq-controller-hh2gd
I0318 13:15:11.505716 4582 util.go:68] Recovered from panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/util.go:62
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/util.go:53
/usr/src/go/src/runtime/asm_amd64.s:401
/usr/src/go/src/runtime/panic.go:387
/usr/src/go/src/runtime/panic.go:42
/usr/src/go/src/runtime/sigpanic_unix.go:26
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/scheduler/predicates.go:112
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/scheduler/predicates.go:138
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/scheduler/generic_scheduler.go:110
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/scheduler/generic_scheduler.go:63
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler/scheduler.go:75
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler/scheduler.go:69
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/util.go:107
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/util.go:108
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/util.go:92
/usr/src/go/src/runtime/asm_amd64.s:2232
Deleting the "cpu" entry from the rabbitmq controller file and resubmitting results in the pod being scheduled without any trouble. My questions:
Does the "cpu" keyword have any meaning in the context of the controller file, or should it be removed?
The crash seems to be caused by the scheduler not being able to find a minion with the desired characteristics. I haven't looked into this into too much detail, but it looks like it would make sense to have the scheduler log an error rather than crashing.
I'm using Kubernetes 0.12.0 and I've deployed a 4-minion cluster to GCE. Our changes to cluster/gce/config-default.sh are the following:
Thanks @zmerlynn, that looks like it will fix things!
Is there any value in removing the cpu keyword from the RabbitMQ example, since it doesn't look like it carries any significance? Please let me know if I've misunderstood this.
The rabbitmq example in the docs specifies a "cpu" keyword that doesn't seem to be listed in https://developers.google.com/compute/docs/containers/container_vms#container_manifest.
After creating the rabbitmq controller from the example, the rabbitmq pod is shown as "Pending" indefinitely. At the same time, creating the rabbitmq controller leads to the following stacktrace in /var/log/scheduler.log:
Deleting the "cpu" entry from the rabbitmq controller file and resubmitting results in the pod being scheduled without any trouble. My questions:
I'm using Kubernetes 0.12.0 and I've deployed a 4-minion cluster to GCE. Our changes to cluster/gce/config-default.sh are the following:
The text was updated successfully, but these errors were encountered: