nova/nova
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
..
CA
api Merge "Remove unnecessary __init__" 2016-06-27 17:04:31 +00:00
cells Improve the help text for cells options (7) 2016-06-09 08:39:46 +03:00
cert Set RPC version aliases for Mitaka 2016-03-16 09:54:49 -07:00
cloudpipe Port test_pipelib and test_policy to Python 3 2016-06-23 10:38:10 +02:00
cmd Remove python code validation specific to legacy_v2 2016-06-14 10:42:16 +09:00
common Added Keystone and RequestID headers to CORS middleware 2016-03-02 04:53:11 -08:00
compute Evaluate 'task_state' in resource (de)allocation 2016-06-28 14:32:35 +01:00
conductor Merge "Make instance as second arg in compute api calls" 2016-06-27 11:49:56 +00:00
conf Merge "XenAPI: Add option for running nova independently from hypervisor" 2016-06-28 15:27:40 +00:00
console Remove unnecessary __init__ 2016-06-27 15:23:00 +08:00
consoleauth Avoid unconditional warnings in nova-consoleauth 2016-04-26 23:52:49 +02:00
db Merge "Add console auth tokens db api methods" 2016-06-27 18:18:43 +00:00
hacking Remove python code validation specific to legacy_v2 2016-06-14 10:42:16 +09:00
image Merge "Trivial-Fix: Fix typos" 2016-06-20 18:18:05 +00:00
ipv6 Port test_ipv6 to py3 and simplify to_global() 2016-06-27 14:37:47 +02:00
keymgr Replace key manager with Castellan 2016-04-27 14:37:06 -04:00
locale Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
network Remove unnecessary __init__ 2016-06-27 15:23:00 +08:00
notifications Merge "Handle multiple samples per versioned notification" 2016-06-23 11:53:20 +00:00
objects Merge "Add CellMappingList object" 2016-06-27 18:17:46 +00:00
pci Merge "pci: Remove unused 'all_devs' method" 2016-06-10 19:40:47 +00:00
policies remove personality extension 2016-06-24 14:44:53 -04:00
scheduler Remove unused LOG 2016-06-27 16:40:13 +08:00
servicegroup Config options: Centralize servicegroup options 2016-05-04 15:57:29 +00:00
tests libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
virt libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
vnc config options: Centralise 'vnc' options 2016-02-03 13:36:20 +00:00
volume Merge "Remove unnecessary __init__" 2016-06-27 17:04:31 +00:00
wsgi
__init__.py
availability_zones.py Merge "Config options: centralize options in availability_zones" 2016-02-20 04:49:15 +00:00
baserpc.py config options: Centralize upgrade_levels section 2016-04-04 18:35:27 +00:00
block_device.py Add tag column to vifs and bdm 2016-04-01 08:46:54 -07:00
cache_utils.py Config options: centralize cache options 2016-05-13 12:27:52 +07:00
config.py Config options: move set default opt of db section to centralized place 2016-05-18 12:58:00 +07:00
context.py policy: Replaces 'authorize' in nova-api (part 2) 2016-06-27 13:18:03 +00:00
crypto.py Drop paramiko < 2 compat code 2016-05-10 12:01:22 -05:00
debugger.py Config options: Centralize debugger options 2016-03-29 16:18:51 +00:00
exception.py Merge "XenAPI: Add option for running nova independently from hypervisor" 2016-06-28 15:27:40 +00:00
exception_wrapper.py Transform wrap_exception notification to versioned format 2016-06-21 09:39:47 +02:00
filters.py
hooks.py Deprecate nova.hooks 2016-03-01 11:52:52 +00:00
i18n.py
loadables.py
manager.py Config options: Centralize netconf options 2016-04-24 18:15:05 +00:00
opts.py config options: centralize exception options 2016-05-18 14:21:05 +02:00
policy.py Policy-in-code servers rules 2016-06-15 16:55:45 -04:00
quota.py config options: centralize quota options 2016-04-07 00:07:21 +00:00
rpc.py Transform wrap_exception notification to versioned format 2016-06-21 09:39:47 +02:00
safe_utils.py
service.py Enable mutable config in Nova 2016-06-07 18:01:27 +00:00
signature_utils.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test.py Remove flavor seeding from the base migration 2016-04-05 08:01:33 -07:00
utils.py Add console auth tokens db api methods 2016-06-23 11:24:38 +01:00
version.py
weights.py
wsgi.py config options: Remove 'wsgi_' prefix from opts 2016-03-25 13:19:19 +00:00