forked from kubevirt/containerized-data-importer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-1.57] Backport 3385 VDDK: pass snapshot ID through to nbdkit. (
kubevirt#3501) * nbdkit datapath debug (kubevirt#3361) * pkg/image/nbdkit: Enable controlpath debugging Disabling datapath debugging reduces noise, but controlpath debugging is actually useful, not very noisy, and usually you would want it to be enabled. The difference is explained here: https://libguestfs.org/nbdkit.1.html#SERVER-DEBUG-FLAGS Virt-v2v disables datapath debugging but keeps controlpath debugging enabled. Signed-off-by: Richard W.M. Jones <[email protected]> * pkg/image/nbdkit: Enable recommended nbdkit VDDK debugging options VDDK datapath debugging logs every VDDK read and write which is noisy and unnecessary. Enabling VDDK stats gives useful information about how long each VDDK call took, for virtually no overhead. This information is printed to stderr when nbdkit closes the connection. This matches the upstream recommendations here, and also the flags used by virt-v2v: https://libguestfs.org/nbdkit-vddk-plugin.1.html#Troubleshooting-performance-problems Signed-off-by: Richard W.M. Jones <[email protected]> --------- Signed-off-by: Richard W.M. Jones <[email protected]> * nbdkit: Use password=+filename to send passwords securely (kubevirt#3363) Passing passwords on the command line is not very secure since a user on the same machine can see them using 'ps' etc. nbdkit lets you pass them via several secure mechanisms - for this I used the password=+filename method. Signed-off-by: Richard W.M. Jones <[email protected]> * VDDK: pass snapshot ID through to nbdkit. (kubevirt#3385) * VDDK: pass snapshot ID through to nbdkit. Opening VMware snapshots can sometimes fail with "Error 13 (You do not have access rights to this file)" if the snapshot MOref is not provided. This specifically seems to affect Windows VMs with VMware guest tools installed. Signed-off-by: Matthew Arnold <[email protected]> * SonarCloud: Move VDDK plugin arguments to struct. Adding 'snapshot' exceeded the seven-parameter limit. Signed-off-by: Matthew Arnold <[email protected]> * Change vddk-test expected snapshot argument count. Signed-off-by: Matthew Arnold <[email protected]> * Remove "san" from VDDK transports list. Some versions of the VDDK crash when determining system support for its "san" transport mode, if there are no SCSI disks present. This transport mode is active by default, and is not used by CDI, so avoid the crash by setting the list of allowable transports to not include "san". Signed-off-by: Matthew Arnold <[email protected]> --------- Signed-off-by: Matthew Arnold <[email protected]> --------- Signed-off-by: Richard W.M. Jones <[email protected]> Signed-off-by: Matthew Arnold <[email protected]> Co-authored-by: rwmjones <[email protected]>
- Loading branch information
Showing
5 changed files
with
117 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters