[openstack-dev] [nova] BUG? nova-compute should delete unused instance files on boot

Russell Bryant rbryant at redhat.com
Mon Oct 7 18:44:05 UTC 2013


On 10/07/2013 02:28 PM, Chris Friesen wrote:
> 
> I've been doing a lot of instance creation/deletion/evacuate and I've
> noticed that if I
> 
> 1)create an instance
> 2) power off the compute node it was running on
> 3) delete the instance
> 4) boot up the compute node
> 
> then the instance rootfs stays around in /var/lib/nova/instances/.
> Eventually this could add up to significant amounts of space.
> 
> 
> Is this expected behaviour?  (This is on grizzly, so maybe havana is
> different.)  If not, should I file a bug for it?
> 
> I think it would make sense for the compute node to come up, query all
> the instances in /var/lib/nova/instances/, and delete the ones for
> instances that aren't in the database.

How long are you waiting after starting up the compute node?  I would
expect it to get cleaned up by a periodic task, so you might have to
wait roughly 10 minutes (by default).

-- 
Russell Bryant



More information about the OpenStack-dev mailing list