Merge "_can_fallocate should throw a warning instead of error"
This commit is contained in:
commit
ce72becd0f
@ -31,7 +31,7 @@ import six
|
|||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova.i18n import _
|
from nova.i18n import _
|
||||||
from nova.i18n import _LE, _LI
|
from nova.i18n import _LE, _LI, _LW
|
||||||
from nova import image
|
from nova import image
|
||||||
from nova import keymgr
|
from nova import keymgr
|
||||||
from nova import utils
|
from nova import utils
|
||||||
@ -270,7 +270,7 @@ class Image(object):
|
|||||||
can_fallocate = not err
|
can_fallocate = not err
|
||||||
self.__class__.can_fallocate = can_fallocate
|
self.__class__.can_fallocate = can_fallocate
|
||||||
if not can_fallocate:
|
if not can_fallocate:
|
||||||
LOG.error(_LE('Unable to preallocate image at path: '
|
LOG.warning(_LW('Unable to preallocate image at path: '
|
||||||
'%(path)s'), {'path': self.path})
|
'%(path)s'), {'path': self.path})
|
||||||
return can_fallocate
|
return can_fallocate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user