[nova] When are "_del" directories deleted?

Sean Mooney smooney at redhat.com
Mon Mar 22 11:56:11 UTC 2021


On Mon, 2021-03-22 at 09:39 +0000, Eugen Block wrote:
> Hi *,
> 
> I stumbled across a different issue when I noticed there's a  
> <UUID>_del directory in /var/lib/nova/instances/. It's a shared  
> directory to enable live-migration. I noticed these "_del" directories  
> before but I didn't really investigate, everything seems to work as  
> expected. But I would like to understand what exactly happens with  
> such a directory, for example currently there's just one instance  
> having also a _del directory. The timestamp is from 2 years ago when  
> the instance was resized the first time. Looking in the nova code [1]  
> I found the reference to the resize function, I just don't quite  
> understand what would happen with that instance if it was shutdown.
> 
> Would nova delete it to "clean up"?
> Can I remove that directory safely to prevent nova from doing anything  
> destructive to that instance?
> 
> I'd appreciate any insights about this. Just to be safe I created an  
> RBD snapshot of the disk to prevent a deletion.
have you enabled https://docs.openstack.org/nova/latest/configuration/config.html#workarounds.ensure_libvirt_rbd_instance_dir_cleanup
> 
> Best regards,
> Eugen
> 
> [1]  
> https://opendev.org/openstack/nova/src/commit/146b27f22327f8d60c1017c22ccf18d0e16f1eb7/nova/virt/libvirt/driver.py#L7725
> 
> 
> 





More information about the openstack-discuss mailing list