Skip to content
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

Bug 1481147 - Fix default pod image for network diagnostics #16439

Merged

Conversation

pravisankar
Copy link

  • This also ensures network diagnostics pod and test pod images uses
    deployed openshift version/tag (not the latest) so that it doesn't
    need to download another same image with latest tag.

  • Print more details when network diagnostics test setup fails.
    Currently when network diags fails, it only informs how many test pods failed but doesn't provide why those pods failed. This change will fetch logs for the pods in case of setup failure.

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 19, 2017
@pravisankar pravisankar added component/diagnostics and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 19, 2017
@pravisankar
Copy link
Author

@openshift/networking @knobunc PTAL

@pravisankar
Copy link
Author

[test]

Ravi Sankar Penta added 2 commits September 19, 2017 14:11
- This also ensures network diagnostics pod and test pod images uses
  deployed openshift version/tag (not the latest) so that it doesn't
  need to download another same image with latest tag.
Currently when network diags fails, it only informs how many test pods
failed but doesn't provide why those pods failed. This change will fetch
logs for the pods in case of setup failure.
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 19, 2017
@jcantrill
Copy link
Contributor

@sosiouxme Should this be assigned to you?

@sosiouxme
Copy link
Member

looks like a flake
/test cmd

As an assignee, what am I supposed to do? Review only? Give a /lgtm? Doesn't look like I need to /approve.

@pravisankar
Copy link
Author

@sosiouxme merge-bot says this pr needs an approver from pkg/diagnostics/OWNERS and pkg/oc/OWNERS
You are one of the owners in pkg/diagnostics, so I think you can just review or can review, give /lgtm and/or /approve.

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 22, 2017
@pravisankar pravisankar removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 22, 2017
@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 22, 2017
Copy link
Contributor

@knobunc knobunc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, small nit but otherwise good stuff. Thanks!

@@ -131,6 +123,14 @@ func GetTestPod(testPodImage, testPodProtocol, podName, nodeName string, testPod
return pod
}

func getTrimmedImage(image string) string {
// Image format could be: [<dns-name>/]openshift/origin-deployer[:<tag>]
tokens := strings.Split(image, "/")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't know how many /s will be present in the given image (dns path may have many) and we only care about the last token.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, the last. Gotcha!

@knobunc
Copy link
Contributor

knobunc commented Sep 22, 2017

/approve

@knobunc
Copy link
Contributor

knobunc commented Sep 22, 2017

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 22, 2017
@sosiouxme
Copy link
Member

@pravisankar you're also an approver for that path so my approval is superfluous :)

Copy link
Contributor

@dcbw dcbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dcbw, knobunc, pravisankar

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue

@openshift-merge-robot openshift-merge-robot merged commit fc7190d into openshift:master Sep 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/diagnostics lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants