containers / virtcontainers

A Go package for building hardware virtualized container runtimes
Apache License 2.0
139 stars 43 forks source link

pause: Remove all things related to pause container #440

Closed sboeuf closed 7 years ago

sboeuf commented 7 years ago

The pause container was introduced long time ago because our agent was not able to maintain a pod running when the last container had exited. But now that our agent has this capability, we don't need to maintain this workaround. Moreover, this will simplify our code base.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.1%) to 65.889% when pulling c6513bdc8a5e08727dcd933af9fe4571e0f37d9b on sboeuf/remove_pause_container into e3d41a0925a90e5704ad9fe46618da2fbba2726f on master.

jodh-intel commented 7 years ago

\o/

lgtm

Approved with PullApprove Approved with PullApprove

jodh-intel commented 7 years ago

@sboeuf - could you handle the removal in the runtime too when you revendor?

jodh-intel commented 7 years ago

... aaaand I've just come across https://github.com/clearcontainers/runtime/pull/756 :smile:

devimc commented 7 years ago

magically cc-agent now is able to maintain a pod running? how? commit message is not very clear, would you mind explain a little more how was that possible?

sboeuf commented 7 years ago

@devimc well basically our agent was always able to run without this, that's a legacy thing we had introduced when our former hyperstart (the one from Hyper) was not able to maintain a running pod with no containers running.

devimc commented 7 years ago

@sboeuf make sense, thanks

sboeuf commented 7 years ago

@jodh-intel @sameo do you mind merging this PR even without the CI passing here. I mean this is not worst than before, when we're going to vendor this from runtime, we will see if something got wrong, and we won't break the runtime. But of course, I have submitted https://github.com/clearcontainers/runtime/pull/756 and the CI is passing, so I think this is covered and prove nothing is gonna be broken. I am asking to avoid blocking our PRs while we find a proper solution for the case where virtcontainers API or exported structures change.

sameo commented 7 years ago

LGTM

Approved with PullApprove Approved with PullApprove