libvirt: the None value for the 'os_type' property is passed to glance when doing a snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Andrea Rosa |
Bug Description
This change: https:/
The result of that is that we have a porperty called 'os_type': None associated with the snapshotted image.
That is a problem as this property is used when we create the backing file for the ephemeral disks.
From nova/virt/
# Lookup the filesystem type if required
os_type_
if not os_type_
os_
and then we create the ephemeral file name using this rule:
fname = "ephemeral_%s_%s" % (ephemeral_gb, os_type_
Now consider an instance with a flavor with an ephemeral disk of 50 G and without the os_type defined, the resulting backing file will be:
"ephemeral_
At this point if we create a snapshot from that instance and we boot from it we will have another backing file created and called:
"ephemeral_50_None"
That is bad for at least two reasons:
1 performance issue: we need to create a new backing file which is not actually necessary
2 resources leaking: those backing files consume disk capacity on the host
Changed in nova: | |
assignee: | nobody → Andrea Rosa (andrea-rosa-m) |
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: havana-backport-potential |
Changed in nova: | |
milestone: | none → icehouse-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/52138
Review: https:/