-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Remove engine #12771
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
Remove engine #12771
Conversation
|
🎀 |
|
I think docs should be modified too because no more test-integration |
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.
maybe Shutdown
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 like Close much more
|
Yeah, iptables clean is fun :) |
|
@runcom Just noticed that you still have supervisor. Maybe will be simpler to fix bug after moving all to |
|
About cleanup: you probably should create |
|
@runcom Ok, bug in calling |
|
@LK4D4 there are still issues.. I'm porting tests to integration-cli in the meantime |
9360fb3 to
9ea81f2
Compare
|
@runcom Yeah, because Trap is sucks. Cleanup of graph and stuff on daemon initialization fail should be inside But for now you can use channel |
|
@LK4D4 cool, but then how do you Trap api.Close + daemon.Shutdown? because old behaviour was trap api.Close + d.Shutdown from engine.Shutdown, we now have only a single call to signal.Trap(api.Close), could be that Trap could accepts a slice of funcs to execute also? |
|
You can create closure with any functions you want. |
|
/me shame (but tests green now) |
890ba7e to
42aad7a
Compare
daemon/daemon.go
Outdated
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.
Only closing graph if there was no error? Don't we want to close no matter what?
Nevermind, this isn't the piece of code I thought it was.
1661c14 to
1820616
Compare
|
LGTM |
docker/daemon.go
Outdated
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.
So we're just logging that the daemon needs to be force stopped?
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.
It means that probably not all containers died in 15 seconds and we just brutally kill daemon.
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.
But where are we killing it?
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 signal.Trap
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 know signal.Trap has it's own bail stuff (3 sigs from the user)... but before engine was exiting after ~10s timeout period, now this timeout could probably be increased, but still seems like we should kill it after the timeout.
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.
@cpuguy83 Who should we kill? :) if mainDaemon function exits, then process just stops, nothing can stand this.
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.
So as is the daemon will just hang until someone sends 2 more kill sigs to it.
|
Looks really good, just one question, but otherwise LGTM. |
3c6198c to
9f21dab
Compare
|
@runcom Is it ready? |
|
@runcom Oh, requires rebase, sorry :) |
958f68c to
c0c2c7b
Compare
|
@LK4D4 almost, there are many tests inside integration/ that have to be ported to integration-cli/, trying to do my best and as fast as I can 😄 |
c0c2c7b to
4b8cff6
Compare
|
is this ready to go? @LK4D4 ? |
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
4b8cff6 to
f7e417e
Compare
|
Fails looks like registry down. |
|
@LK4D4 yup, need a rebuild |
|
LGTM |
|
🎉 |
close #12255
close #12151
close #12713
close #10389
Related to #12905
Signed-off-by: Antonio Murdaca me@runcom.ninja