1. There was a global object stored for all instances,
thus the last mounted instance was always unmounted.
2. Even if there was only a single LXC instance in use,
the global object would be lost on restart of Nova.
Therefore we reset the internal state for the mount object,
by passing in the mount point to destroy_container(),
and querying the device in use for that mount point.
Reviewed: https:/ /review. openstack. org/10962 github. com/openstack/ nova/commit/ 272b98d718a68f5 f714543ed2948d4 9ffe052ca5
Committed: http://
Submitter: Jenkins
Branch: stable/essex
commit 272b98d718a68f5 f714543ed2948d4 9ffe052ca5
Author: Pádraig Brady <email address hidden>
Date: Tue Aug 7 15:17:08 2012 +0100
fix unmounting of LXC containers
There were two issues here.
1. There was a global object stored for all instances,
thus the last mounted instance was always unmounted.
2. Even if there was only a single LXC instance in use,
the global object would be lost on restart of Nova.
Therefore we reset the internal state for the mount object, container( ),
by passing in the mount point to destroy_
and querying the device in use for that mount point.
Fixes bug: 971621 5e8b82f492d6291 8419db5cd3b dac3abb69b1678b 60807cfce7
Change-Id: I5442442f00d93f
Cherry-picked: a5184d5dbf67630