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

bugfix: vendor latest libnetwork for connect panic #1556

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

shaloulcy
Copy link
Contributor

@shaloulcy shaloulcy commented Jun 20, 2018

It seems a bug of libnetwork. When libnetwork restores the sandbox, it forgets to initialize the epPriority map. So the Join panic. The latest alibaba/libnetwork has fixed the bug. We will vendor the latest libnetwork and add some test cases

https://github.com/alibaba/libnetwork/commit/655f08f8be32ff847d0554ef0128a3de80665cd6

Signed-off-by: Eric Li lcy041536@gmail.com

Ⅰ. Describe what this PR did

It seems a bug of libnetwork. When libnetwork restores the sandbox, it forgets to initialize the epPriority map. So the Join panic. The latest alibaba/libnetwork has fixed the bug. We will vendor the latest libnetwork and add some test cases

Ⅱ. Does this pull request fix one issue?

fixes #1550

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Jun 20, 2018

Codecov Report

Merging #1556 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1556      +/-   ##
==========================================
- Coverage   41.58%   41.57%   -0.02%     
==========================================
  Files         267      267              
  Lines       17339    17339              
==========================================
- Hits         7211     7209       -2     
- Misses       9241     9243       +2     
  Partials      887      887
Impacted Files Coverage Δ
apis/server/utils.go 59.52% <0%> (-4.77%) ⬇️

@allencloud
Copy link
Collaborator

Do we need to add integration test to cover issue #1550 ? @shaloulcy

@shaloulcy
Copy link
Contributor Author

@allencloud I have added integration test. PTAL

@@ -727,7 +727,5 @@ func joinOptions(endpoint *types.Endpoint) ([]libnetwork.EndpointOption, error)
var joinOptions []libnetwork.EndpointOption
// TODO: parse endpoint's links

// set priority option
joinOptions = append(joinOptions, libnetwork.JoinOptionPriority(nil, endpoint.Priority))
Copy link
Collaborator

@rudyfly rudyfly Jun 20, 2018

Choose a reason for hiding this comment

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

I'm afraid I will refuse about this, we have used this feature, can you fix this bug in our libnetwork(https://github.com/alibaba/libnetwork) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rudyfly I have update the codes, PTAL

It seems a bug of libnetwork. When libnetwork restores the sandbox,
it forgets to initialize the epPriority map. So the Join panic. The
latest alibaba/libnetwork has fixed the bug. We will vendor the latest
libnetwork and add some test cases

alibaba/libnetwork@655f08f

Signed-off-by: Eric Li <lcy041536@gmail.com>
@pouchrobot pouchrobot added size/M and removed size/L labels Jun 21, 2018
@pouchrobot pouchrobot added size/L and removed size/M labels Jun 21, 2018
@shaloulcy shaloulcy changed the title bugfix: delete the JoinOptionPriority for connect panic bugfix: vendor newest libnetwork for connect panic Jun 21, 2018
@shaloulcy shaloulcy changed the title bugfix: vendor newest libnetwork for connect panic bugfix: vendor latest libnetwork for connect panic Jun 21, 2018
@rudyfly
Copy link
Collaborator

rudyfly commented Jun 21, 2018

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Jun 21, 2018
@allencloud allencloud merged commit a9777c7 into AliyunContainerService:master Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/network areas/test kind/bug This is bug report for project kind/panic LGTM one maintainer or community participant agrees to merge the pull reuqest. priority/P0 size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] connect network panic
5 participants