nova delete lxc-instance umounts the wrong rootfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Pádraig Brady | ||
Essex |
Fix Released
|
High
|
Pádraig Brady | ||
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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-
instance2 ACTIVE nbd14 --> .../instance-
instance3 ACTIVE nbd13 --> .../instance-
nova delete instance1
After:
name status nbd --> rootfs_path veth_if --> IP cgroup
-------
instance1 SHUTOFF nbd15 --> .../instance-
instance2 ACTIVE nbd14 --> .../instance-
instance3 SHUTOFF X --> X veth2 --> 10.0.0.4 X
Specifications:
- Host OS: ubuntu precise beta2
- Guest OS: ubuntu precise beta2 cloud image (from http://
- OpenStack version: 2012.1 (essex)
- Virtualization: LXC (LinuX Container)
Related branches
- Chuck Short: Pending requested
-
Diff: 56 lines (+14/-4)3 files modifieddebian/changelog (+8/-0)
debian/control (+6/-3)
debian/nova-console.install (+0/-1)
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: lxc |
Changed in nova: | |
assignee: | nobody → Muharem Hrnjadovic (al-maisan) |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | Muharem Hrnjadovic (al-maisan) → nobody |
status: | In Progress → Confirmed |
Changed in nova: | |
assignee: | nobody → Pádraig Brady (p-draigbrady) |
Changed in nova: | |
milestone: | none → folsom-3 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova (Ubuntu): | |
status: | New → Fix Released |
Changed in nova (Ubuntu Precise): | |
status: | New → Confirmed |
Changed in nova: | |
milestone: | folsom-3 → 2012.2 |
This problem happens with:
a) qcow2 root disk images (nbd block devices) ==> As described above
disk: qcow2 format
instance1 .../instance- 00000001/ disk --> nbd15 --> .../instance- 00000001/ rootfs 00000002/ disk --> nbd14 --> .../instance- 00000002/ rootfs 00000003/ disk --> nbd13 --> .../instance- 00000003/ rootfs
instance2 .../instance-
instance3 .../instance-
but also with:
b) raw root disk images (loop block devices)
nova.conf: use_cow_ images= False
disk: raw format
instance1 .../instance- 00000001/ disk --> loop0 --> .../instance- 00000001/ rootfs 00000002/ disk --> loop1 --> .../instance- 00000002/ rootfs 00000003/ disk --> loop2 --> .../instance- 00000003/ rootfs
instance2 .../instance-
instance3 .../instance-