Repository navigation
oc: List actual rc state in oc status - #6443
0xmichalis wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
This block is losing the "<# pods I have>/<# of pods I want> pods" output.
There was a problem hiding this comment.
This block is losing the "<# pods I have>/<# of pods I want> pods" output.
Hmm... You removed the line in the test, so I thought it was gone. I'm still getting the "growing to X"? If so, fix the test, don't just remove the line entirely.
There was a problem hiding this comment.
I thought about it but I don't feel strong either way. Since we have no pods running currently it makes sense for me to show no output. Now oc status isn't just about the current state, and since we can provide info about future state derived from the spec, then we should do it. How about "scaling to # pods" when we start from zero?
There was a problem hiding this comment.
Or something similar that doesn't carry the <i have> 0 pods info
|
I was hoping for some deeper introspection. Can you actually inspect the pod state to see if its Maybe something like: when they're all ready, this seems fine: @jwforres @fabianofranz @smarterclayton opinions? |
|
Yes, I was actually inspecting pod phase in a earlier version of this PR. Will rework using it. |
|
say 'scaling to' not 'growing to' to be consistent with the web console |
|
it gets pretty wordy saying pods for every state, maybe just say pods on the first state |
|
@jwforres you use "scaling to" in every direction (growing, reducing), right? "growing" and "reducing" are more detailed, with "scaling to" we are consistent, @deads2k @smarterclayton your call. |
|
Show only what is important to the user. What is wrong (vs what is
right), and obey precedence (no point showing irrelevant info when
something more important). Status, not detail.
|
|
Growing to is an artifact of historical reasons. As long as direction
is clear in the text (because we show both numbers), we don't need
different verbs.
|
I'd trust @jwforres's opinion with UI wording more mine. "scaling to" it is |
|
A user who needs more detailed info on a deployment should get it by
oc describe DC/foo
|
This isn't more detailed, this is the "should my service work" sort of look. Seeing |
|
@deads2k PTAL, I have changed this to show only running pods. While deploying: Zero running deployment: Scaling to 10: 10 pods running-deployment: Scaling more: |
|
We always show the most relevant status. If you have 1 pending and 2
healthy, that's "1 pending of 3".
Listing out all the states is over communicating.
|
|
This is fine for now
|
The only state I am listing is running pods |
|
I was referring to the previous discussion.
|
|
[test] |
|
Evaluated for origin test up to 5a680b7 |
|
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/56/) |
|
|
@Kargakis Is there a question or is the output just not what you expected? You can click on the two console outputs here to see what failed in the 2 runs: |
|
doh |
|
I decided not to proceed with this PR since it puts the burden of calculating running pods for a deploymentConfig in the graph instead of being part of the controller loop. Furthermore the way I pass info to the deploymentConfig describer is fragile (that's the reason behind the test panic as well). The right solution would be to calculate the number of running pods for the DC in the controller and surface it in the DC status (upstream PR adding this functionality in Deployments: kubernetes/kubernetes#19382). So until we do something similar, there is no way we can reliably inform our describer (and oc status) of the actually running pods for a deploymentConfig. |
Fixes #6426
@deads2k PTAL