Displaying 20 results from an estimated 38 matches for "provisioned_size".
2018 Mar 25
6
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
...create a
> > disk?
> >
> > In block storage, qcow2 image is always on a thin provisioned disk, which
> > in oVirt is a regular logical volume, created at the requested
> > "initial_size":
> [...]
> > initial_size=image_size,
> > provisioned_size=image_info["virtual-size"],
>
> Can you describe exactly what these two sizes mean?
>
- provisioned_size is the virtual size of the image.
- initial_size is used only for thin provisioned disk on block storage.
This is
the size of the logical volume we created for this disk.
On...
2018 Mar 26
0
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
...virt will choose the image format and sparse for you.
>
> storage type allocation | image format sparse creating
> ---------------------------|-----------------------------------------------------------------
> file thin | raw true sparse file of
> provisioned_size bytes
> file preallocated | raw false preallocated file of
> provisioned_size bytes
> block thin | qcow2 true logical volume of
> initial_size bytes
> block preallocated | raw false logical volume of
> provisioned...
2018 Mar 26
0
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
...;
>> > In block storage, qcow2 image is always on a thin provisioned disk,
>> which
>> > in oVirt is a regular logical volume, created at the requested
>> > "initial_size":
>> [...]
>> > initial_size=image_size,
>> > provisioned_size=image_info["virtual-size"],
>>
>> Can you describe exactly what these two sizes mean?
>>
>
> - provisioned_size is the virtual size of the image.
> - initial_size is used only for thin provisioned disk on block storage.
> This is
> the size of the logical...
2018 Mar 24
4
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
...disk_format = types.DiskFormat.RAW
disks_service = connection.system_service().disks_service()
disk = disks_service.add(
disk=types.Disk(
name=os.path.basename(image_path),
description='Uploaded disk',
format=disk_format,
initial_size=image_size,
provisioned_size=image_info["virtual-size"],
sparse=disk_format == types.DiskFormat.COW,
storage_domains=[
types.StorageDomain(
name='mydata'
)
]
)
)
Internally we do allocated 10% more then the requested initial_size
to leave ro...
2018 Mar 25
0
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
...disks_service = connection.system_service().disks_service()
> disk = disks_service.add(
> disk=types.Disk(
> name=os.path.basename(image_path),
> description='Uploaded disk',
> format=disk_format,
> initial_size=image_size,
> provisioned_size=image_info["virtual-size"],
> sparse=disk_format == types.DiskFormat.COW,
> storage_domains=[
> types.StorageDomain(
> name='mydata'
> )
> ]
> )
> )
>
> Internally we do allocated 10%...
2018 Mar 26
0
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
On Sun, Mar 25, 2018 at 08:05:14PM +0000, Nir Soffer wrote:
> On Sun, Mar 25, 2018 at 2:41 PM Richard W.M. Jones <rjones@redhat.com>
> wrote:
> > > initial_size=image_size,
> > > provisioned_size=image_info["virtual-size"],
> >
> > Can you describe exactly what these two sizes mean?
>
> - provisioned_size is the virtual size of the image.
> - initial_size is used only for thin provisioned disk on block storage.
> This is
> the size of the logical volume...
2018 Mar 26
4
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
...>
> -----------------------------------|--------------------------------------------------------
> > file qcow2 true | thin sparse file of image
> > size bytes
> > file raw false | preallocated preallocated file of
> > provisioned_size bytes
> > file raw true | thin sparse file of
> > provisioned_size
> > bytes
> > file qcow2 false | - unsupported
> > block qcow2 true | thin logical volume of
> > initial_s...
2018 Mar 25
0
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
...he actual file size specified when you create a
> disk?
>
> In block storage, qcow2 image is always on a thin provisioned disk, which
> in oVirt is a regular logical volume, created at the requested
> "initial_size":
[...]
> initial_size=image_size,
> provisioned_size=image_info["virtual-size"],
Can you describe exactly what these two sizes mean?
Remember that virt-v2v works by streaming. At the point where we are
calling this API virt-v2v only knows the virtual size. We never know
the size of the final qcow2 file.
> sparse=disk_format...
2020 Jan 10
7
[v2v PATCH 0/6] Various Python pycodestyle fixes
Fixes the majority of the pycodestyle issues in the Python scripts, and
fix the existing test-v2v-python-syntax.sh to use pycodestyle to
actually perform style checks.
Pino Toscano (6):
PEP 8: adapt whitespaces in lines
PEP 8: move imports at the top
PEP 8: adapt empty lines
tests: find all the Python scripts for syntax checks
-o rhv-upload: remove unused Python imports
Revamp check
2019 Nov 26
0
[PATCH v2 3/3] rhv-upload: Support qcow2 disk format
...description = "Uploaded by virt-v2v",
format = disk_format,
+ # XXX For qcow2 disk on block storage, we should use the estimated
+ # size, based on qemu-img measure of the overlay.
initial_size = params['disk_size'],
provisioned_size = params['disk_size'],
# XXX Ignores params['output_sparse'].
@@ -489,11 +492,16 @@ def create_transfer(connection, disk, host):
system_service = connection.system_service()
transfers_service = system_service.image_transfers_service()
+ extra = {}
+ if...
2019 Nov 20
2
[PATCH] rhv-upload: Support qcow2 disks
...description = "Uploaded by virt-v2v",
format = disk_format,
+ # XXX For qcow2 disk on block storage, we should use the estimated
+ # size, based on qemu-img measure of the overlay.
initial_size = params['disk_size'],
provisioned_size = params['disk_size'],
# XXX Ignores params['output_sparse'].
@@ -497,11 +500,16 @@ def create_transfer(connection, disk, host):
system_service = connection.system_service()
transfers_service = system_service.image_transfers_service()
+ extra = {}
+ if...
2018 Sep 20
0
[PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...self._image = image
+
+ def __str__(self):
+ return self._image
+
+class Disk(object):
+ def __init__(
+ self,
+ id = None,
+ name = None,
+ description = None,
+ format = None,
+ initial_size = None,
+ provisioned_size = None,
+ sparse = False,
+ storage_domains = None
+ ):
+ pass
+
+ id = 123
+ status = DiskStatus.OK
+
+class ImageTransferPhase(Enum):
+ CANCELLED = 'cancelled'
+ FINALIZING_FAILURE = 'finalizing_failure'
+ FINALIZING_SUCCESS = 'fi...
2018 Sep 20
7
[PATCH v2 0/3] v2v: -o rhv-upload: Add a test.
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-September/msg00121.html
v2:
- Rewrote patch 2 from scratch so it incorporates Nir's suggestions.
- Add fake module to EXTRA_DIST.
- Retested.
Unfortunately I am no longer able to test the ordinary conversion path
because ovirtsdk4 is incompatible with Fedora 29 / Python 3.7:
2019 Nov 26
6
[PATCH v2 0/3] rhv-upload: Support import to qcow2 disk
Add support for qcow2 disk format, enabled by imageio NBD backend in RHV 4.3.
To use this feature manually, you can run virt-v2v with "-of qcow2".
Here is example run:
Source disk:
$ qemu-img info /var/tmp/fedora-30.img
image: /var/tmp/fedora-30.img
file format: raw
virtual size: 6 GiB (6442450944 bytes)
disk size: 1.15 GiB
virt-v2v:
$ ./run virt-v2v \
-v \
-i disk
2018 Feb 22
0
[PATCH 5/5] v2v: Add -o rhv-upload output mode.
...hon_create_one_disk disk_name disk_format
+ output_alloc output_storage disk_size =
+ sprintf "
+disks_service = system_service.disks_service()
+disk = disks_service.add(
+ disk = types.Disk(
+ name = %s,
+ format = %s,
+ sparse = %s,
+ provisioned_size = %Ld,
+ storage_domains = [types.StorageDomain(name = %s)],
+ )
+)
+disk_id = disk.id
+
+# Wait til the disk is up. The transfer cannot start if the
+# disk is locked.
+disk_service = disks_service.disk_service(disk_id)
+while True:
+ time.sleep(5)
+ disk = disk_service.get()
+...
2018 Sep 19
4
[PATCH 0/3] v2v: -o rhv-upload: Add a test.
This adds a test of -o rhv-upload.
Obviously for an upstream test we cannot require a working oVirt
server. This test works by faking the ovirtsdk4 Python module,
setting PYTHONPATH so that the fake module is picked up instead of the
real module (if installed).
However it's more complex than that because the nbdkit plugin also
expects to talk to a working imageio HTTPS server. Therefore
2018 Oct 09
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...t; + return self._image
> +
> +class Disk(object):
> + def __init__(
> + self,
> + id = None,
> + name = None,
> + description = None,
> + format = None,
> + initial_size = None,
> + provisioned_size = None,
> + sparse = False,
> + storage_domains = None
> + ):
> + pass
> +
> + id = 123
> + status = DiskStatus.OK
> +
> +class ImageTransferPhase(Enum):
> + CANCELLED = 'cancelled'
> + FINALIZING_FAILURE = 'fi...
2019 Nov 17
23
[PATCH 00/18] rvh-upload: Various fixes and cleanups
This series extract oVirt SDK and imageio code to make it eaiser to follow the
code and improve error handing in open() and close().
The first small patches can be consider as fixes for downstream.
Tested based on libguestfs v1.41.5, since I had trouble building virt-v2v and
libguestfs from master.
Nir Soffer (18):
rhv-upload: Remove unused exception class
rhv-upload: Check status more
2018 Feb 27
0
[PATCH v2 3/3] v2v: Add -o rhv-upload output mode.
...+let python_create_one_disk disk_name disk_format
+ output_alloc sd_id disk_size =
+ sprintf "
+disks_service = system_service.disks_service()
+disk = disks_service.add(
+ disk = types.Disk(
+ name = %s,
+ format = %s,
+ sparse = %s,
+ provisioned_size = %Ld,
+ storage_domains = [types.StorageDomain(id = %s)],
+ )
+)
+disk_id = disk.id
+
+# Wait til the disk is up. The transfer cannot start if the
+# disk is locked.
+disk_service = disks_service.disk_service(disk_id)
+timeout = time.time() + %d
+while True:
+ time.sleep(5)
+ disk...
2018 Feb 27
5
[PATCH v2 0/3] v2v: Add -o rhv-upload output mode.
This patch set is still for discussion only. See 3/3 for the current
list of problems.
However this will upload an image to an oVirt or RHV server, although
you must have absolutely the latest snapshot version of 4.2 for it to
work.
Rich.