Files
nomad/client/driver
Michael McCracken 0e9bae7bb4 lxc: cleanup partially configured containers after errors in Start
If there are any errors in container setup after c.Create() in
Start(), the container will be left around, with no way to clean it up
because the handle will not be created or returned from Start.

Added a wrapper that checks for errors and performs appropriate
cleanup. Returning a cleanup function from a wrapped function instead
of just doing the cleanup before returning the error helps to ensure
that future changes that might add or change error exits can't forget
to consider a cleanup function.

Adds a check to the invalid config test case to check that a container
created with an invalid config doesn't get left behind.

Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-18 16:03:03 -08:00
..
2017-09-26 15:26:33 -07:00
2018-01-08 15:56:07 -05:00
2017-09-26 15:26:33 -07:00
2018-01-08 15:56:07 -05:00
2017-09-26 15:26:33 -07:00
2017-12-11 17:23:14 -08:00
2017-10-23 15:50:27 -07:00
2017-09-26 15:26:33 -07:00
2017-12-07 13:46:25 -05:00
2017-09-26 15:26:33 -07:00
2017-09-26 15:26:33 -07:00
2017-07-22 20:38:03 -07:00
2017-12-06 14:36:44 -05:00
2018-01-12 09:44:53 -05:00
2017-01-12 15:47:58 -08:00
2017-10-23 18:15:52 -07:00
2017-10-19 16:49:57 -07:00
2017-12-06 14:36:44 -05:00
2017-09-27 14:21:45 -07:00
2017-09-26 15:26:33 -07:00
2017-09-26 15:26:33 -07:00
2018-01-08 15:56:07 -05:00