-
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
status: Warn about transient deployment trigger errors #5085
status: Warn about transient deployment trigger errors #5085
Conversation
@deads2k now that the dc controller changes are in, let's get this out of the way. What's the intention here, follow the deploymentconfig message set by the controller, or traverse the graph and report separately? |
Hmm, I have been working on this today and depending on the dc message (both the content and its format) is a mess. I think I'll just traverse the graph and report separately. |
Also @ironcladlou |
Should the controller be adapted to use this code? |
You mean create a graph in the dc controller? Not sure how I feel about it but I would prefer if we weren't duplicating logic. |
Is there some reason using the graph library there would be inappropriate? It seems to provide the core analytics we're looking for in a variety of contexts (CLI, backend code trying to do analysis, etc). |
|
Graphs should be used for graph type operations. Looking at resources is not a graph layer thing. If there is common code it should probably be in an API helper method (not util) that does a common transform. |
Not sure if it's possible for the graph stuff and the dc controller to share an api helper. It's either the one or the other I think. |
No graph library for now. If you have to refactor to do something common, On Mon, Oct 26, 2015 at 2:33 PM, Michail Kargakis [email protected]
|
That's what I'm saying, I cannot extract any common code. Is it ok if oc status and the dc controller report separately? oc status is On Mon, Oct 26, 2015 at 7:44 PM, Clayton Coleman [email protected]
|
DC controller should report into the status of the deployment config. On Mon, Oct 26, 2015 at 2:50 PM, Michail Kargakis [email protected]
|
[test] |
I'm going to add tests for this. |
Tests added and passing locally. |
@openshift/team-project-committers |
@smarterclayton @liggitt this is low risk and useful since the reporting by the dc controller was disabled. |
agree with @liggitt this is 1.1.1 the bar for changes is pretty high right now |
@deads2k this needs reviewing if you have time. |
dcNode := uncastDcNode.(*deploygraph.DeploymentConfigNode) | ||
|
||
// 1. Image stream for tag of interest does not exist | ||
for _, uncastIsNode := range g.SuccessorNodesByEdgeKind(uncastIstNode, imageedges.ReferencedImageStreamGraphEdgeKind) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you hide this look inside of a function, so this reads more like:
if exists := doesImageStreamExist(isTag); !exists{
// add marker
}
It would just help me reason about how many markers I might get.
#5681 flake re[test] |
RelatedNodes: []graph.Node{uncastIstNode, bcNode}, | ||
|
||
Severity: osgraph.InfoSeverity, | ||
Key: ImageStreamTagNotAvailableWarning, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably ought to be an info key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
nit, lgtm otherwise. |
Evaluated for origin test up to e4886ff |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7079/) (Image: devenv-rhel7_2701) |
Evaluated for origin merge up to e4886ff |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7079/) |
Merged by openshift-bot
@deads2k
Separate marker for each warning means we traverse the graph and not follow the message set up by the dc controller. Or is it enough to break down the message into markers?