-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oc scale not taking effect inmediatelly and not shown in console #9053
Comments
Moved as issue in origin-web-console. openshift/origin-web-console#45 |
This is not a console issue. Are you scaling up before the deployment completes? |
Yes, I'm scaling before the deployment completes. But as you can see, the DC reflects the scaled value, but console does not. Maybe not sending events to console, but when I scale after deployment, console instantly sees the new value. I'd guess that the console is not watching for events until deployment has finished. |
I guess this is your initial deployment. When you scale the deploymentconfig before the deployment finishes, the deploymentconfig will store the new value, and the dc controller will try to scale up the latest complete replication controller. Since there is none (even if there was one), the deployment process will always scale to the desired replicas with which it started the deployment. So you have something like this: $ oc new-app ...
# dc.spec.replicas = 1 --> desired replicas = 1 --> deployment process will finish with 1 --> rc.spec.replicas = 1
$ oc scale dc --replicas=10 # before the deployment process exits
# dc.spec.replicas = 10, rc.spec.replicas =1 Deployment finishes and after at most 2 minutes (resync interval of the dc controller), the dc will be reconciled, and the rc will be actually scaled up. #9002 fixes this. Every time a deployment completes (the rc is marked as complete), the dc controller will notice it and reconcile the related dc on the spot, so you should be able to notice your 10 pods as soon as the deployment is complete. cc: @ironcladlou |
I have done this in command line:
In the UI I see this:
Inmediately I do a scaling:
I can see that now there¡s 10 pods requested, but still 1 pod.
UI Does not reflect this. THIS IS THE ERROR/ISSUE
In the UI I see this:
Then after 2 minutes (or so, state consolidation):
I see the console updated:
If I scale now to 20 from CLI:
I see immediate change in console.
The text was updated successfully, but these errors were encountered: