[lxc-devel] lxc-destroy -f no longer stops the instance???

Stéphane Graber stgraber at ubuntu.com
Wed Feb 26 15:48:41 UTC 2014


On Wed, Feb 26, 2014 at 03:44:25PM +0000, John Peacock wrote:
> Did I miss something in the rush to 1.0.0?  I have a script to take a
> (running or not) bare VM and destroy it, then create a new one with the
> same name as a snapshot of a base image.  I just tried it for the first
> time since the 1.0.0 release and `lxc-destroy -f` no longer stops the
> instance before destroying it.  The docs still suggest it should.
> 
> Of course, this is cleaner and faster anyways:
> 
>   sudo lxc-stop -k -n rh64bare
>   sudo lxc-destroy -n rh64bare
> 
> but if the old functionality no longer works that way, the docs should
> reflect that fact.
> 
> Thanks
> 
> John

I appear unable to reproduce your problem:

stgraber at castiana:~$ lxc-start -n p2 -d

stgraber at castiana:~$ lxc-ls -f p2
NAME  STATE    IPV4       IPV6                                                                             AUTOSTART  
--------------------------------------------------------------------------------------------------------------------
p2    RUNNING  10.0.3.88  2607:f2c0:f00f:2751:216:3eff:fe44:ae5b, 2607:f2c0:f00f:2751:cd01:ff77:7777:4102  NO         

stgraber at castiana:~$ lxc-destroy -f -n p2

stgraber at castiana:~$ lxc-ls -f p2
NAME  STATE  IPV4  IPV6  AUTOSTART  
----------------------------------

stgraber at castiana:~$ lxc-destroy --version
1.0.0


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140226/100d96b2/attachment.pgp>


More information about the lxc-devel mailing list