Maor Lipchuk has posted comments on this change.
Change subject: vm: Add qcow2_compat on create
......................................................................
Patch Set 19:
(4 comments)
https://gerrit.ovirt.org/#/c/64377/18/vdsm/virt/vm.py
File vdsm/virt/vm.py:
Line 2698
Line 2699
Line 2700
Line 2701
Line 2702
Please fix the format here to use one parameter per line, and then
add the
Done
https://gerrit.ovirt.org/#/c/64377/19/vdsm/virt/vm.py
File vdsm/virt/vm.py:
Line 21:
Line 22: # stdlib imports
Line 23: from collections import namedtuple
Line 24: from contextlib import contextmanager
Line 25: from storage.sdc import sdCache
We already importing sdc, see
LiveMergeCleanupThread.teardown_top_volume.
Done
Line 26: from xml.dom.minidom import parseString as _domParseStr
Line 27: import itertools
Line 28: import logging
Line 29: import os
Line 2699: transientHandle, transientPath = tempfile.mkstemp(
Line 2700: dir=config.get('vars',
'transient_disks_repository'),
Line 2701: prefix="%s-%s." % (diskParams['domainID'],
diskParams['volumeID']))
Line 2702:
Line 2703: sdDom =
sdCache.produce(sdUUID=diskParams['domainID']).manifest
Produce manifest, this is a safer and easier to test object.
Done
Line 2704: try:
Line 2705: qemuimg.create(transientPath,
Line 2706: format=qemuimg.FORMAT.QCOW2,
Line 2707: backing=diskParams['path'],
Line 2702:
Line 2703: sdDom =
sdCache.produce(sdUUID=diskParams['domainID']).manifest
Line 2704: try:
Line 2705: qemuimg.create(transientPath,
Line 2706: format=qemuimg.FORMAT.QCOW2,
Put qcow2Compat here (this is the third time I'm commenting about
this in t
First time I see that in this patch, I think you are referring to a
different patch of copy.
Any how, will fix that in the next upload
Line 2707: backing=diskParams['path'],
Line 2708: backingFormat=driveFormat,
Line 2709: qcow2Compat=sdDom.qcow2_compat())
Line 2710: os.fchmod(transientHandle, 0o660)
--
To view, visit
https://gerrit.ovirt.org/64377
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I331eee6a12853c2fa65e62f42c51504f88723538
Gerrit-PatchSet: 19
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipchuk(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Maor Lipchuk <mlipchuk(a)redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>
Gerrit-HasComments: Yes