<font size=2 face="sans-serif">In case of vm evacuate with Grizzly code
you will have those disks leftovers due to this bug: </font><a href="https://bugs.launchpad.net/nova/+bug/1156269"><font size=2 face="sans-serif">https://bugs.launchpad.net/nova/+bug/1156269</font></a>
<br><font size=2 face="sans-serif">It's solved for Havana.</font>
<br>
<br><font size=2 face="sans-serif">Pavel</font>
<br>
<br><tt><font size=2>Vishvananda Ishaya <vishvananda@gmail.com> wrote
on 08/10/2013 01:34:26 AM:<br>
<br>
> From: Vishvananda Ishaya <vishvananda@gmail.com></font></tt>
<br><tt><font size=2>> To: OpenStack Development Mailing List <openstack-dev@lists.openstack.org>,
</font></tt>
<br><tt><font size=2>> Date: 08/10/2013 01:36 AM</font></tt>
<br><tt><font size=2>> Subject: Re: [openstack-dev] [nova] BUG? nova-compute
should delete <br>
> unused instance files on boot</font></tt>
<br><tt><font size=2>> <br>
> There is a configuration option stating what to do with instances
<br>
> that are still in the hypervisor but have been deleted from the <br>
> database. I think you want:<br>
> <br>
> running_deleted_instance_action=reap<br>
> <br>
> You probably also want<br>
> <br>
> resume_guests_state_on_host_boot=true<br>
> <br>
> to bring back the instances that were running before the node was
<br>
> powered off. We should definitely consider changing the default of
<br>
> these two values since I think the default values are probably not
<br>
> what most people would want.<br>
> <br>
> Vish<br>
> On Oct 7, 2013, at 1:24 PM, Chris Friesen <chris.friesen@windriver.com>
wrote:<br>
> <br>
> > On 10/07/2013 12:44 PM, Russell Bryant wrote:<br>
> >> On 10/07/2013 02:28 PM, Chris Friesen wrote:<br>
> >>> <br>
> >>> I've been doing a lot of instance creation/deletion/evacuate
and I've<br>
> >>> noticed that if I<br>
> >>> <br>
> >>> 1)create an instance<br>
> >>> 2) power off the compute node it was running on<br>
> >>> 3) delete the instance<br>
> >>> 4) boot up the compute node<br>
> >>> <br>
> >>> then the instance rootfs stays around in /var/lib/nova/instances/.<br>
> >>> Eventually this could add up to significant amounts of
space.<br>
> >>> <br>
> >>> <br>
> >>> Is this expected behaviour? (This is on grizzly,
so maybe havana is<br>
> >>> different.) If not, should I file a bug for it?<br>
> >>> <br>
> >>> I think it would make sense for the compute node to come
up, query all<br>
> >>> the instances in /var/lib/nova/instances/, and delete
the ones for<br>
> >>> instances that aren't in the database.<br>
> >> <br>
> >> How long are you waiting after starting up the compute node?
I would<br>
> >> expect it to get cleaned up by a periodic task, so you might
have to<br>
> >> wait roughly 10 minutes (by default).<br>
> > <br>
> > This is nearly 50 minutes after booting up the compute node:<br>
> > <br>
> > cfriesen@compute2:/var/lib/nova/instances$ ls -1<br>
> > 39e459b1-3878-41db-aaaf-7c7d0dfa2b19<br>
> > 41a60975-d6b8-468e-90bc-d7de58c2124d<br>
> > 46aec2ae-b6de-4503-a238-af736f81f1a4<br>
> > 50ec3d89-1c9d-4c28-adaf-26c924dfa3ed<br>
> > _base<br>
> > c6ec71a3-658c-4c7c-aa42-cc26296ce7fb<br>
> > c72845e9-0d34-459f-b602-bb2ee409728b<br>
> > compute_nodes<br>
> > locks<br>
> > <br>
> > Of these, only two show up in "nova list".<br>
> > <br>
> > Chris<br>
> > <br>
> > <br>
> > _______________________________________________<br>
> > OpenStack-dev mailing list<br>
> > OpenStack-dev@lists.openstack.org<br>
> > </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br>
> <br>
> <br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br>
> <br>
</font></tt>