Removing unused base images removes backing files of active instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I've been experiencing dangerous issue that my backing files located on shared storage in _base folder are being removed by nova-compute. It's being happen on Juno, Kilo and Liberty releases. The shared storage mount /var/lib/
I want to ask for considering some new cleaning system, because current cleaning worker is designed for indepenent compute nodes without shared storage and it looks like it was not well adapted for configurations with shared storage. Maybe developers should consider some central mechanism and fetching data about used and unused _base files from database, not relying what is running on not on compute node locally.
I can't reproduce this problem anymore because I had to disable cleaning unused base images and deploy own, secure worker.
description: | updated |
tags: | added: compute image-cache libvirt nfs |
There's not a lot to go on here, unfortunately. The problem of image cache manager deleting things that are still in use is well known, and in fact we have workarounds elsewhere in the code for it. Out of interest I'd be curious to know how this impacts users, because it also means that the workaround code is broken and/or incomplete.
The underlying problem is obviously image cache manager itself. Without anything more specific to go on I can throw up a patch which fixes a couple of races I was vaguely aware of but hadn't gotten round to addressing. I can't guarantee it will fix your problem, but it might.