Skip to content

Implement the Runtime v2 Shim async task model for runhcs#2939

Merged
estesp merged 1 commit intocontainerd:masterfrom
jterry75:bug_publishstart
Jan 25, 2019
Merged

Implement the Runtime v2 Shim async task model for runhcs#2939
estesp merged 1 commit intocontainerd:masterfrom
jterry75:bug_publishstart

Conversation

@jterry75
Copy link
Copy Markdown
Contributor

Changes the requirement of a Runtime v2 shim in order to avoid race conditions
between shim and shim client sending async events. Places a requirement of what
events and what order a shim must comply to.

Signed-off-by: Justin Terry (VM) [email protected]

Changes the requirement of a Runtime v2 shim in order to avoid race conditions
between shim and shim client sending async events. Places a requirement of what
events and what order a shim must comply to.

Signed-off-by: Justin Terry (VM) <[email protected]>
@jterry75
Copy link
Copy Markdown
Contributor Author

@jhowardmsft / @dmcgowan - FYI
@crosbymichael - As we spoke you need to implement this for runc v2 shim.

@crosbymichael
Copy link
Copy Markdown
Member

Changes look good. Overall, it looks like we are just moving event creation to the specific implementations and outside of the general shim service. Is this a correct way of viewing these changes?

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2939 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2939   +/-   ##
=======================================
  Coverage   44.02%   44.02%           
=======================================
  Files         102      102           
  Lines       10870    10870           
=======================================
  Hits         4785     4785           
  Misses       5351     5351           
  Partials      734      734
Flag Coverage Δ
#linux 47.65% <ø> (ø) ⬆️
#windows 41.24% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3acf6f1...6468619. Read the comment docs.

@lifupan
Copy link
Copy Markdown
Contributor

lifupan commented Jan 22, 2019

@jhowardmsft / @dmcgowan - FYI
@crosbymichael - As we spoke you need to implement this for runc v2 shim.

Hi, @jterry75 @crosbymichael so kata shimv2 also needs the corresponding change?

@crosbymichael
Copy link
Copy Markdown
Member

@lifubang yes, so if you have any feedback please let us know

@jterry75
Copy link
Copy Markdown
Contributor Author

@crosbymichael - Sorry was out. Yes that is the correct way of viewing the changes. Having the shim service do it expose the race condition between the shim and the shim service event models. Moving each event to the shim removes this race.

@lifubang - Yes that is correct if you would like any orchestrator above containerd to get the appropriate events in the appropriate order. Thanks!

@lifupan
Copy link
Copy Markdown
Contributor

lifupan commented Jan 23, 2019

@lifubang - Yes that is correct if you would like any orchestrator above containerd to get the appropriate events in the appropriate order. Thanks!

@jterry75 @crosbymichael Got it.
BTW, you two guys @ the wrong person. :)

@jterry75
Copy link
Copy Markdown
Contributor Author

LOL. I read @crosbymichael's response and did the same. Sorry about that!

@jterry75
Copy link
Copy Markdown
Contributor Author

Are we good with this?

@crosbymichael
Copy link
Copy Markdown
Member

Overall yes. I'm going to implement this tomorrow for the linux runtime and then I think its good to merge if I don't hit any issues

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

This is good to go, I'll submit my follow PR for the runc v2 runtime with these changes after this is merged.

Thanks @jterry75

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit f63d289 into containerd:master Jan 25, 2019
@jterry75 jterry75 deleted the bug_publishstart branch January 25, 2019 17:40
@jterry75
Copy link
Copy Markdown
Contributor Author

Thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants