API shutdown(timeout=X) call always tries to call stop(), spewing error messages to the console when the container is already stopped
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Low
|
Serge Hallyn |
Bug Description
Title should say it all, example is available at: http://
18:45 <hallyn> d'oh. i think i line got dropped there
18:46 <hallyn> the if (timeout > 0) should be if (!retv && timeout > 0)
18:46 <hallyn> we're calling c->stop() on a stopped container otherwise
The test case is:
root@amd1:
Python 3.2.3 (default, Sep 10 2012, 12:07:24)
[GCC 4.7.1 20120908 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxc
__main__:1: Warning: The python-lxc API isn't yet stable and may change at any point in the future.
>>> c=lxc.Container
>>> c.start()
True
>>> c.shutdown(
lxc_container: failed to receive answer for the command
lxc_container: failed to send command
True
>>>
description: | updated |
Discussed on IRC, so triaging myself, assigning to Serge and marking as Low as it's mostly annoying.