-
Notifications
You must be signed in to change notification settings - Fork 950
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
bugfix: vendor latest libnetwork for connect panic #1556
Conversation
Codecov Report
@@ 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
|
Do we need to add integration test to cover issue #1550 ? @shaloulcy |
b0347d8
to
ca4f8c8
Compare
@allencloud I have added integration test. PTAL |
daemon/mgr/network.go
Outdated
@@ -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)) |
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.
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) ?
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.
@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>
LGTM |
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
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