snapshot doesn't flush dirty data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
libvirt driver
Login a deployed VM and write some files, for example:
```
[lynn@host-
...
-rw-rw-r--. 1 lynn lynn 677 Jun 29 06:30 sum
-rw-rw-r--. 1 lynn lynn 38 Jun 29 06:30 sum3.md5
[lynn@host-
```
then *right* after the file created, trigger the snapshot action of the VM
after that, deploy a new VM through the created image
found some files missing (e.g sum3.md5 file)
```
[lynn@host-
...
-rw-rw-r--. 1 lynn lynn 648 Jun 29 06:30 sum
[lynn@host-
```
I checked the code and seems no flush operation in live or cold snapshot (cold seems suspend the VM only)
https:/
is it by design or best practice ?
I encountered this problem too for both live and cold snapshot.
But if I shutdown the VM with 'virsh shutdown' or stop in the UI, the data can by synced to disk.
So I don't know why openstack doesn't use this in cold snapshot.