nova/nova/virt/libvirt/volume
Mikhail Feoktistov d4aa455d53 libvirt: virtuozzo instance resize support
Adapt "nova resize" code to support Virtuozzo ploop disks.
As far as ploop disks are in fact directories we add '-r' argument
to all utilities that deal with instance' disks such as cp, rsync and scp.
Thus we copy disks universally whether they are folders or files.

Also using "prl_disk_tool" instead of "qemu-img" is better for ploop images
because it resizes guest filesystem as well.

We can't resize disks from guest OS in containers,
because they are not allowed to write directly to block device.
ploop tool can resize partition table and internal filesystem,
but only for container's disks. Such disks must have only one partition
with ext filesystem.

prl_disk_tool can resize disks with internal filesystems
and doesn't require any special layout so it can resize disks
for virtual machines.  So it's better to use this tool instead of ploop.

Also we make compute.filters more strict
We call "ploop" only with "restore-descriptor" argument
And we set disk size in megabytes for prl_disk_tool

Co-Authored-By: Dmitry Guryanov <dguryanov@parallels.com>
Depends-On: I04c4379459c2fc1fd4801ec2aad53d0f6053b6d6
Change-Id: I38dbf73beb01fe1939ddca63fbfedbec1dc3c826
Implements: blueprint virtuozzo-instance-resize-support
2016-06-28 22:13:49 +03:00
..
__init__.py libvirt: move volume/remotefs/quobyte modules under volume subdir 2015-07-28 17:46:05 -07:00
aoe.py Config options: centralize aoe vol libvirt options (8) 2016-05-06 08:29:22 +00:00
disco.py Remove unused LOG 2016-06-27 16:40:13 +08:00
fibrechannel.py Config options: centralize iscsi libvirt options (10) 2016-05-06 08:30:07 +00:00
fs.py Introduce LibvirtBaseFileSystemVolumeDriver 2015-08-06 07:01:58 -07:00
glusterfs.py Config options: centralize glusterfs libvirt options (9) 2016-05-06 08:29:51 +00:00
gpfs.py libvirt: convert GPFS volume driver to LibvirtBaseFileSystemVolumeDriver 2015-08-10 09:34:39 +00:00
hgst.py Config options: centralize iscsi libvirt options (10) 2016-05-06 08:30:07 +00:00
iscsi.py Config options: centralize iscsi libvirt options (10) 2016-05-06 08:30:07 +00:00
iser.py Config options: centralize iser libvirt options (11) 2016-05-06 08:30:17 +00:00
net.py Config options: centralize volume net libvirt options (12) 2016-05-06 08:30:29 +00:00
nfs.py Config options: centralize volume nfs libvirt options (13) 2016-05-06 08:30:41 +00:00
quobyte.py Config options: centralize quobyte libvirt options (14) 2016-05-06 08:30:53 +00:00
remotefs.py libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
scaleio.py Config options: centralize iscsi libvirt options (10) 2016-05-06 08:30:07 +00:00
scality.py Config options: centralize scality libvirt options (15) 2016-05-10 15:56:39 +00:00
smbfs.py Config options: centralize smbfs libvirt options (16) 2016-05-12 09:26:17 +00:00
volume.py Config options: centralize volume libvirt options (7) 2016-05-06 08:29:13 +00:00
vzstorage.py libvirt: add nova volume driver for vzstorage 2016-06-27 17:43:16 +00:00