Data Loss in VM if the vm is created from snapshot

Bug #894333 reported by Satya Sanjibani Routray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

1. Create a VM from natty image
2. ssh to the vm
3. upgrade to oneiric
4. install python-novaclient 2.6.8 and setuptools from downloaded tar.gz files
5. exit from vm
6 create a snapshot of the VM (wait till active)
7. Create another snapshot after the previous one is active
8. Create a VM from the new snapshot
9. ssh to the VM
10. Look for the files in the VM and the version of ubuntu

Observation:
The VM is natty although it was taken from the vm which is oneiric(upgraded from natty)
All the files are missing from the VM (nova installation, tar.gz files which are downloaded to the original VM before taking snapshot)

Nova List
-------------------------------------------
routray@ubuntu:~/Desktop/st2satya$ nova list
+------+------+--------+------------------------------+
| ID | Name | Status | Networks |
+------+------+--------+------------------------------+
| 5610 | vm1 | ACTIVE | null=<ip>|
| 5613 | vm2 | ACTIVE | null=<ip> |
| 5616 | vm3 | ACTIVE | null=<ip> |
+------+------+--------+------------------------------+

Nova image-list
---------------------------------------------
| 194 | snapvm0 | ACTIVE |
| 195 | snapvm01 | ACTIVE |
| 196 | snapvm011 | ACTIVE |
+-----+-----------------------------------------------------------------------+--------+

Version of VM1 (ID- 5610)
------------------------------------------
root@vm1:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric

Version of VM3 (ID 5616) it was created from snapshot taken from VM1 (ID 5610) after upgrading it from natty to oneiric
------------------------------------
root@vm3:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty

routray@ubuntu:~/Desktop/st2satya$ nova show 5616
+--------------+----------------------------------------------------------+
| Property | Value |
+--------------+----------------------------------------------------------+
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2011-11-24T06:40:17Z |
| flavor | standard.xsmall |
| hostId | ec23007f862907ff1650e85e7fc662180425e45653f56612caa7769a |
| id | 5616 |
| image | snapvm011 |
| key_name | satyast2 |
| metadata | {} |
| name | vm3 |
| null network | <ip> |
| progress | 100 |
| status | ACTIVE |
| tenant_id | satyaproj2 |
| updated | 2011-11-24T06:41:04Z |
| user_id | satyasys2 |
| uuid | 11ee717e-51d0-40d3-b1bb-51fa4f1e790e |
+--------------+------------------------------------------------------

routray@ubuntu:~/Desktop/st2satya$ nova show 5610
+--------------+----------------------------------------------------------+
| Property | Value |
+--------------+----------------------------------------------------------+
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2011-11-24T05:40:17Z |
| flavor | standard.xsmall |
| hostId | 7eefbc68fc6e7253bf165414ca52335a1ad3f30f491dc31f8c3804a4 |
| id | 5610 |
| image | Ubuntu Natty 11.04 Server 64-bit |
| key_name | satyast2 |
| metadata | {} |
| name | vm1 |
| null network | <ip> |
| progress | 100 |
| status | ACTIVE |
| tenant_id | satyaproj2 |
| updated | 2011-11-24T09:08:06Z |
| user_id | satyasys2 |
| uuid | 743382e7-4899-4da2-be28-c24006581037 |
+--------------+------------------------------------------------------

Revision history for this message
Brian Waldon (bcwaldon) wrote :

What hypervisor are you running on?

summary: - Data Loss in VM if the vm is created from snapshot(seen this happening
- often)
+ Data Loss in VM if the vm is created from snapshot
Changed in nova:
status: New → Incomplete
Revision history for this message
Satya Sanjibani Routray (satya-routray-9) wrote :

Its KVM

Changed in nova:
status: Incomplete → New
Revision history for this message
Thierry Carrez (ttx) wrote :

Also what version of Nova is this ?

Changed in nova:
status: New → Incomplete
Revision history for this message
Vish Ishaya (vishvananda) wrote :

This should be reverified with current trunk.

Revision history for this message
Satya Sanjibani Routray (satya-routray-9) wrote :

Current Trunk seems to have fix of it

Revision history for this message
Thierry Carrez (ttx) wrote :

Marking alreadyfixed in Essex

Changed in nova:
status: Incomplete → Invalid
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.