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 1389213 - Fix join/isolate project network #11679

Merged
merged 2 commits into from
Nov 2, 2016

Conversation

pravisankar
Copy link

@pravisankar pravisankar commented Oct 31, 2016

Pass kubeletTypes.ContainerID.ID instead of kubeletTypes.ContainerID.String() to UpdatePod(),
Otherwise docker client fails with error: no such container '://'

Fixes bug 1389213

@pravisankar
Copy link
Author

@openshift/networking PTAL

@@ -33,7 +33,6 @@ const (
sdnScript = "openshift-sdn-ovs"
setUpCmd = "setup"
tearDownCmd = "teardown"
statusCmd = "status"
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this omission have anything to do with the bz? Or is it just a cleanup.

Copy link
Author

Choose a reason for hiding this comment

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

Nope, minor cleanup. Since this cleanup is only couple of lines, I have created a separate commit instead of new pr to avoid additional test/merge cycle.

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, with the caveat that @rajatchopra's question needs an answer.

@knobunc
Copy link
Contributor

knobunc commented Nov 1, 2016

[test]

@danwinship
Copy link
Contributor

LGTM as is though you could also change UpdatePod() to just take a *kapi.Pod, and inline getPodContainerID() into it.

@knobunc
Copy link
Contributor

knobunc commented Nov 1, 2016

Failing because router doesn't have permission to list services. Bug 1380669 link

Ravi Sankar Penta added 2 commits November 1, 2016 14:51
Pass kubeletTypes.ContainerID.ID instead of kubeletTypes.ContainerID.String() to UpdatePod(),
Otherwise docker client fails with error: no such container '://<id>'
Remove unused statusCmd variable.
@pravisankar pravisankar force-pushed the fix-broken-join-network branch from 7876d8b to bca9fd2 Compare November 1, 2016 18:51
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to bca9fd2

@pravisankar
Copy link
Author

Updated, Now UpdatePod() takes kapi.Pod arg and getPodContainerID is called inside the method.

cc: @danwinship

@knobunc
Copy link
Contributor

knobunc commented Nov 1, 2016

LGTM again. @danwinship please merge if you are good with it.

@danwinship
Copy link
Contributor

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10947/) (Base Commit: f55922e)

@danwinship
Copy link
Contributor

@knobunc openshift-bot only has eyes for you

)

func getPodContainerID(pod *kapi.Pod) string {
if len(pod.Status.ContainerStatuses) > 0 {
// Extract only container ID, pod.Status.ContainerStatuses[0].ContainerID is of the format: docker://<containerID>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this bit is acutally also fixed by #11613

Copy link
Contributor

Choose a reason for hiding this comment

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

But actually, just use yours and I'll rebase #11613 on top of this one.

@dcbw
Copy link
Contributor

dcbw commented Nov 1, 2016

LGTM

@knobunc
Copy link
Contributor

knobunc commented Nov 2, 2016

[merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Nov 2, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10947/) (Image: devenv-rhel7_5305)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to bca9fd2

@openshift-bot openshift-bot merged commit fd5cffe into openshift:master Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants