VHD snapshot from Hyper-V driver is bigger than original instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
GuoHui Liu | ||
Grizzly |
Fix Released
|
Undecided
|
GuoHui Liu |
Bug Description
This is discussed a bit in bug 1177820. This is on stable/grizzly where the compute node is running the hyper-v driver.
The user has this RHEL 6.4 x86_64 instance:
IBM-SCE> nova show 83604044-
+------
| Property | Value |
+------
| status | SHUTOFF |
| updated | 2013-05-
| OS-EXT-
| OS-EXT-
| key_name | None |
| image | RHEL64-
| VLAN_160 network | 10.160.0.11 |
| hostId | 169746d480604c1
| OS-EXT-STS:vm_state | stopped |
| OS-EXT-
| OS-EXT-
| flavor | m1.small (2) |
| id | 83604044-
| security_groups | [{u'name': u'default'}] |
| user_id | 8e4c4785db6245e
| name | RHELBR-1 |
| created | 2013-05-
| tenant_id | 6f858c1594b8461
| OS-DCF:diskConfig | MANUAL |
| metadata | {} |
| accessIPv4 | |
| accessIPv6 | |
| OS-EXT-
| OS-EXT-
| config_drive | true |
+------
With this flavor:
IBM-SCE> nova flavor-show m1.small
+------
| Property | Value |
+------
| name | m1.small |
| ram | 2048 |
| OS-FLV-
| vcpus | 1 |
| extra_specs | {} |
| swap | |
| os-flavor-
| rxtx_factor | 1.0 |
| OS-FLV-
| disk | 20 |
| id | 2 |
+------
They create a snapshot image of that instance and try to boot an instance from the snapshot but it fails with an ImageTooLarge error. It turns out that the snapshot image is slightly bigger than the original instance. This is the snapshot image details:
Id: 71410397-
Public: No
Protected: No
Name: RHELBR-B1_backup
Status: active
Size: 21474836992
Disk format: vhd
Container format: bare
Minimum Ram Required (MB): 0
Minimum Disk Required (GB): 0
Owner: 6f858c1594b8461
When converting that size to GB, it comes to 20.000000477 GB. I'm not sure if they should be using a raw or qcow2 disk format, but it still seems like a problem that the snapshot is reported as bigger than the original instance.
tags: | added: hyperv |
tags: |
added: hyper-v removed: hyperv |
tags: | added: grizzly-backport-potential |
Changed in nova: | |
assignee: | Alessandro Pilotti (alexpilotti) → GuoHui LIu (guohliu) |
Changed in nova: | |
assignee: | GuoHui LIu (guohliu) → nobody |
Changed in nova: | |
assignee: | nobody → GuoHui LIu (guohliu) |
Changed in nova: | |
milestone: | none → havana-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-rc1 → 2013.2 |
tags: | removed: grizzly-backport-potential in-stable-grizzly |
Please: post command outputs and logs in a separate pastebin and not in the bug itself (except short messages of course).
Understanding the issue is very hard otherwise!
Thanks