When I launch more than one LXC instance, and I try to delete one (the first one for example), the wrong rootfs is umounted and disconnected from its nbd device (the last one for example).
E.g.
Before:
name status nbd --> rootfs_path veth_if --> IP cgroup
----------------------------------------------------------------------------------------------------------------------------
instance1 ACTIVE nbd15 --> .../instance-00000001/rootfs veth0 --> 10.0.0.2 V
instance2 ACTIVE nbd14 --> .../instance-00000002/rootfs veth1 --> 10.0.0.3 V
instance3 ACTIVE nbd13 --> .../instance-00000003/rootfs veth2 --> 10.0.0.4 V
nova delete instance1
After:
name status nbd --> rootfs_path veth_if --> IP cgroup
----------------------------------------------------------------------------------------------------------------------------
instance1 SHUTOFF nbd15 --> .../instance-00000001/rootfs X --> X X
instance2 ACTIVE nbd14 --> .../instance-00000002/rootfs veth1 --> 10.0.0.3 V
instance3 ACTIVE X --> X veth2 --> 10.0.0.4 V
When I launch more than one LXC instance, and I try to delete one (the first one for example), the wrong rootfs is umounted and disconnected from its nbd device (the last one for example).
E.g.
Before:
name status nbd --> rootfs_path veth_if --> IP cgroup ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----- 00000001/ rootfs veth0 --> 10.0.0.2 V 00000002/ rootfs veth1 --> 10.0.0.3 V 00000003/ rootfs veth2 --> 10.0.0.4 V
-------
instance1 ACTIVE nbd15 --> .../instance-
instance2 ACTIVE nbd14 --> .../instance-
instance3 ACTIVE nbd13 --> .../instance-
nova delete instance1
After:
name status nbd --> rootfs_path veth_if --> IP cgroup ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----- 00000001/ rootfs X --> X X 00000002/ rootfs veth1 --> 10.0.0.3 V
-------
instance1 SHUTOFF nbd15 --> .../instance-
instance2 ACTIVE nbd14 --> .../instance-
instance3 ACTIVE X --> X veth2 --> 10.0.0.4 V
Specifications:
- Host: KVM VM cloud-images. ubuntu. com/precise/ current/ precise- server- cloudimg- amd64.tar. gz) cloud-images. ubuntu. com/precise/ current/ precise- server- cloudimg- amd64.tar. gz)
- Host OS: ubuntu precise beta2 cloud image (from http://
- Guest OS: ubuntu precise beta2 cloud image (from http://
- OpenStack version: folsom-1 (but probably exact same behavior with essex-rc1) from github master branch with devstack
- Virtualization: LXC (LinuX Container)