Red Hat Bugzilla – Bug 916615
"preallocate_images" config directive should be added to nova.conf
Last modified: 2016-04-22 01:01:56 EDT
Description of problem: The new "preallocate_images" config directive should be added to nova.conf; currently, it isn't. Search for the string preallocate in nova.conf (after updating to correct pkgs) #-----------------------# [tuser1@interceptor export(keystone_admin)]$ sudo grep -i preallocate /etc/nova/* [tuser1@interceptor export(keystone_admin)]$ #-----------------------# Version Info, and ensure the fix is in : #-----------------------# [tuser1@interceptor export(keystone_admin)]$ rpm -q openstack-nova openstack-nova-2012.2.3-3.el6ost.noarch [tuser1@interceptor export(keystone_admin)]$ #-----------------------# [tuser1@interceptor export(keystone_admin)]$ rpm -q openstack-nova --changelog | grep 891347 - Support preallocated VM images #891347 [tuser1@interceptor export(keystone_admin)]$ #-----------------------# [tuser1@interceptor export(keystone_admin)]$ grep -i preallocate -A4 /usr/lib/python2.6/site-packages/nova/virt/driver.py cfg.StrOpt('preallocate_images', default='none', help='VM image preallocation mode: ' '"none" => no storage provisioning is done up front, ' '"space" => storage is fully allocated at instance start'), [tuser1@interceptor export(keystone_admin)]$ #-----------------------# References: ----------- 1/ Related bz -- https://bugzilla.redhat.com/show_bug.cgi?id=891347 2/ Upstream -- https://review.openstack.org/#/c/22054/
Created attachment 707169 [details] Dist-git patch
VERIFIED. VERIFIED. 1] Version info: #-------------# $ cat /etc/redhat-release ; arch Red Hat Enterprise Linux Server release 6.4 (Santiago) x86_64 #-------------# 2] Ensure the fix is in: #-------------# $ rpm -q openstack-nova --changelog | grep -i 916176 - Add a namespace prefix to glance hardware properties #916176 #-------------# 3] grep for the string 'preallocate_images in conf file #-------------# $ grep -i preallocate_images nova.conf.rpmnew -B4 # VM image preallocation mode: "none" => no storage # provisioning is done up front, "space" => storage is fully # allocated at instance start (string value) #preallocate_images=space #-------------# (NOTE: you see .rpmnew because, I updated an existing nova instance, so any new changes to config files will be saved in .rpmnew files)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0709.html