teamhephy / controller

Hephy Workflow Controller (API)
https://teamhephy.com
MIT License
14 stars 26 forks source link

AKS deis-controller at v2.20.1 can no longer scale process types #93

Closed kingdonb closed 3 years ago

kingdonb commented 5 years ago
$ deis ps:scale web=3
Scaling processes... but first, coffee!
Error: Unknown Error (503): {"detail":"(scale): ('failed to scale Deployment \"sredash-web\" in Namespace \"sredash\": 400 Bad Request Scale in version \"v1\" cannot be handled as a Scale: no kind \"Scale\" is registered for version \"apps/v1\"', 'Deployment', 'sredash-web', 'sredash')"}

I'm at hephy/controller v2.20.1, and I have this new app, successfully deployed, but can't scale it. This is the error I get.

My cluster is an AKS agentpool on Standard_D2s_v3 instances, on this version:

Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.2", GitCommit:"cff46ab41ff0bb44d8584413b598ad8360ec1def", GitTreeState:"clean", BuildDate:"2019-01-13T23:15:13Z", GoVersion:"go1.11.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.5", GitCommit:"753b2dbc622f5cc417845f0ff8a77f539a4213ea", GitTreeState:"clean", BuildDate:"2018-11-26T14:31:35Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}

I rolled back my controller deployment to get it going again:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  annotations:
    component.deis.io/version: v2.20.0
    deployment.kubernetes.io/revision: "8"
$ kubectl --namespace=deis rollout undo deployment deis-controller --to-revision=6
$ deis ps:scale web=2
Scaling processes... but first, coffee!
done in 33s
=== sredash Processes
--- web:
sredash-web-85ccdc9559-7jvw8 up (v5)
sredash-web-85ccdc9559-qb6xw up (v5)

It worked... so also, related note, I wonder if we can get something to show up in these "Change Cause" columns of rollout history?

$ kubectl -n deis rollout history deployments deis-controller
deployment.extensions/deis-controller
REVISION  CHANGE-CAUSE
3         <none>
7         <none>
8         <none>
kingdonb commented 5 years ago

I should have included the AKS version:

Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.5", GitCommit:"753b2dbc622f5cc417845f0ff8a77f539a4213ea", GitTreeState:"clean", BuildDate:"2018-11-26T14:31:35Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Cryptophobia commented 3 years ago

This should be resolved in newest versions of Hephy Workflow!