Creating the snapshot of the VM, making it's console log empty

Bug #1095215 reported by Vijaya Erukala
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Undecided
Unassigned

Bug Description

I have created a VM,it came to ACTIVE and console log generated fine.
after that i have taken the snapshot of it,later when I checked the console log it is of 0 size.

$nova boot --image d80f7d2f-1d11-4364-8c1c-6a0791a6e15b --flavor 1 test

$ nova list
+--------------------------------------+--------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+--------+--------+------------------+
| 9d7c39be-3a48-4fdc-96a0-848b269d1819 | test | ACTIVE | private=10.0.0.2 |

+--------------------------------------+--------+--------+------------------+

$ ls -l /opt/stack/data/nova/instances/instance-00000001/console.log
-rw-rw---- 1 libvirt-qemu kvm 16437 Jan 2 15:55 /opt/stack/data/nova/instances/instance-00000001/console.log

$ nova image-create 9d7c39be-3a48-4fdc-96a0-848b269d1819 snapoftest

$ ls -l /opt/stack/data/nova/instances/instance-00000001/console.log
-rw-rw---- 1 libvirt-qemu kvm 0 Jan 2 15:56 /opt/stack/data/nova/instances/instance-00000001/console.log

Revision history for this message
Vijaya Erukala (vijaya-erukala) wrote :

 This is because snapshot operation does the managedsave on the domain and try to creates it,if it is running

description: updated
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

fyi, a simple suspend/resume empties the console.log as well https://bugs.launchpad.net/nova/+bug/1083692

Revision history for this message
Chuck Short (zulcss) wrote :

For what its worth I was able to get this to work in a newer version of libvirt.

Changed in nova:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.