Repartition and resize disk when marked as managed.

Implements part of the instance-disk-management blueprint.

Change-Id: I16d0f816cdf82ee1e19a323cb9976477924e4c5c
This commit is contained in:
Rick Harris 2011-10-17 16:01:46 +00:00
parent 49eff2ef0d
commit 7c83b754dc

@ -152,6 +152,8 @@ def execute(*cmd, **kwargs):
delay_on_retry = kwargs.pop('delay_on_retry', True)
attempts = kwargs.pop('attempts', 1)
run_as_root = kwargs.pop('run_as_root', False)
shell = kwargs.pop('shell', False)
if len(kwargs):
raise exception.Error(_('Got unknown keyword args '
'to utils.execute: %r') % kwargs)
@ -169,7 +171,8 @@ def execute(*cmd, **kwargs):
stdin=_PIPE,
stdout=_PIPE,
stderr=_PIPE,
close_fds=True)
close_fds=True,
shell=shell)
result = None
if process_input is not None:
result = obj.communicate(process_input)