-
Notifications
You must be signed in to change notification settings - Fork 260
Remove hot attach for create endpoint. Join will hot attach instead #243
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
Conversation
|
@sharmasushant Let me know if this works. I had checked with @madhanrm and we believe this should be the flow. |
|
@plooploops Will check... thanks for the PR. |
|
@plooploops Make sure you don't break CNI. CNI needs hotadd as part of endpoint creation (Single call). Its just CNM that needs creation separately & hot add separately. |
|
Let me see if I preserve that then, thanks for the tip @madhanrm |
|
I had a chance to verify the CNI side, as far as we know, with @jsturtevant @cnadolny @techbunny. Test with acs-engine + windows containers using Microsoft/iis:latest, and able to ping from head node + additional VM in VNET, and we get 200 by the private IP for the container. Also verified on CNM side with @techbunny. Looks like we can get the static IP as it's assigned to NIC for VM. We're also able to reach the container separately from another VM in VNET using the private ip (10.0.0.33 for example). |
|
/lgtm |
ashvindeodhar
left a comment
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.
In this PR, it’s assumed that if the containerID is empty it must be coming from CNM and as a result we should skip hotAttach and rely on getting join later on. We may miss on real issues where the containerID is empty in case of CNI ( should never happen but with this PR we won’t even log the real error )
Instead I think we could add a flag in epInfo indicating if the hotAttach is required. CNM code making the call to createEndpoint will set this flag to false. CNI would set this to true. There would be no ambiguity as to who is making the call when it comes to newEndpointImpl
|
Closing this pull request as #332 is merged after discussing with Andy Gee. |
What this PR does / why we need it:

Hot attach should happen in the join, not in create endpoint.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes ##235
Special notes for your reviewer:
Release note: