Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 916615 - "preallocate_images" config directive should be added to nova.conf
"preallocate_images" config directive should be added to nova.conf
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova (Show other bugs)
2.1
Unspecified Linux
unspecified Severity unspecified
: snapshot5
: 2.1
Assigned To: Nikola Dipanov
Kashyap Chamarthy
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-28 08:35 EST by Kashyap Chamarthy
Modified: 2016-04-22 01:01 EDT (History)
3 users (show)

See Also:
Fixed In Version: openstack-nova-2012.2.3-5.el6ost
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-04-04 16:21:47 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0709 normal SHIPPED_LIVE Moderate: openstack-nova security and bug fix update 2013-04-04 20:19:00 EDT

  None (edit)
Description Kashyap Chamarthy 2013-02-28 08:35:59 EST
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/
Comment 3 Nikola Dipanov 2013-03-08 13:35:51 EST
Created attachment 707169 [details]
Dist-git patch
Comment 7 Kashyap Chamarthy 2013-03-18 16:08:26 EDT
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)
Comment 9 errata-xmlrpc 2013-04-04 16:21:47 EDT
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

Note You need to log in before you can comment on or make changes to this bug.