Re: [PATCH 00/13] LUKS: encryption slot management using amend interface
On Tue, 2020-01-14 at 13:17 -0800, no-re...@patchew.org wrote: > Patchew URL: > https://patchew.org/QEMU/20200114193350.10830-1-mlevi...@redhat.com/ > > > > Hi, > > This series seems to have some coding style problems. See output below for > more information: > > Subject: [PATCH 00/13] LUKS: encryption slot management using amend interface > Type: series > Message-id: 20200114193350.10830-1-mlevi...@redhat.com > > === TEST SCRIPT BEGIN === > #!/bin/bash > git rev-parse base > /dev/null || exit 0 > git config --local diff.renamelimit 0 > git config --local diff.renames True > git config --local diff.algorithm histogram > ./scripts/checkpatch.pl --mailback base.. > === TEST SCRIPT END === > > Switched to a new branch 'test' > c97e00f iotests: add tests for blockdev-amend > 005f7d8 block/qcow2: implement blockdev-amend > fcf block/crypto: implement blockdev-amend > 97610b5 block: add generic infrastructure for x-blockdev-amend qmp command > b93e775 qemu-iotests: qemu-img tests for luks key management > 9730684 iotests: filter few more luks specific create options > f98c145 qcow2: extend qemu-img amend interface with crypto options > dd5bc1c block/crypto: implement the encryption key management > ad24636 block/crypto: rename two functions > 88f372b block: amend: separate amend and create options for qemu-img > e9720f3 block: amend: add 'force' option > d96c666 qcrypto-luks: implement encryption key management > c41fba3 qcrypto: add generic infrastructure for crypto options amendment > > === OUTPUT BEGIN === > 1/13 Checking commit c41fba3b83a1 (qcrypto: add generic infrastructure for > crypto options amendment) > 2/13 Checking commit d96c6663e39d (qcrypto-luks: implement encryption key > management) > 3/13 Checking commit e9720f380038 (block: amend: add 'force' option) > 4/13 Checking commit 88f372b238fc (block: amend: separate amend and create > options for qemu-img) > ERROR: Macros with multiple statements should be enclosed in a do - while loop > #30: FILE: block/qcow2.c:5448: > +#define QCOW_COMMON_OPTIONS \ > +{ \ > +.name = BLOCK_OPT_SIZE, \ > +.type = QEMU_OPT_SIZE, \ > +.help = "Virtual disk size" \ > +}, \ > +{ \ > +.name = BLOCK_OPT_COMPAT_LEVEL, \ > +.type = QEMU_OPT_STRING,\ > +.help = "Compatibility level (v2 [0.10] or v3 [1.1])" \ > +}, \ > +{ \ > +.name = BLOCK_OPT_BACKING_FILE, \ > +.type = QEMU_OPT_STRING,\ > +.help = "File name of a base image" \ > +}, \ > +{ \ > +.name = BLOCK_OPT_BACKING_FMT, \ > +.type = QEMU_OPT_STRING,\ > +.help = "Image format of the base image"\ > +}, \ > +{ \ > +.name = BLOCK_OPT_DATA_FILE,\ > +.type = QEMU_OPT_STRING,\ > +.help = "File name of an external data file"\ > +}, \ > +{ \ > +.name = BLOCK_OPT_DATA_FILE_RAW,\ > +.type = QEMU_OPT_BOOL, \ > +.help = "The external data file must stay valid " \ > +"as a raw image"\ > +}, \ > +{ \ > +.name = BLOCK_OPT_ENCRYPT, \ > +.type = QEMU_OPT_BOOL, \ > +.help = "Encrypt the image with format 'aes'. (Deprecated " \ > +"in favor of " BLOCK_OPT_ENCRYPT_FORMAT "=aes)",\ > +}, \ > +{ \ > +.name = BLOCK_OPT_ENCRYPT_FORMAT, \ > +.type = QEMU_OPT_STRING,
Re: [PATCH 00/13] LUKS: encryption slot management using amend interface
On Tue, 2020-01-14 at 13:16 -0800, no-re...@patchew.org wrote: > Patchew URL: > https://patchew.org/QEMU/20200114193350.10830-1-mlevi...@redhat.com/ > > > > Hi, > > This series failed the docker-quick@centos7 build test. Please find the > testing commands and > their output below. If you have Docker installed, you can probably reproduce > it > locally. > > === TEST SCRIPT BEGIN === > #!/bin/bash > make docker-image-centos7 V=1 NETWORK=1 > time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1 > === TEST SCRIPT END === > > Not run: 301 303 > Failures: 049 300 > Failed 2 of 110 iotests > make: *** [check-tests/check-block.sh] Error 1 > Traceback (most recent call last): > File "./tests/docker/docker.py", line 662, in > sys.exit(main()) > --- > raise CalledProcessError(retcode, cmd) > subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', > '--label', 'com.qemu.instance.uuid=1fad358ccc2746a4b0095e3abd7d4c78', '-u', > '1003', '--security-opt', 'seccomp=unconfined', '- > -rm', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', > 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', > 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew2/.cache/qemu-docker- > ccache:/var/tmp/ccache:z', '-v', > '/var/tmp/patchew-tester-tmp-lks33yi2/src/docker-src.2020-01-14-16.05.10.20352:/var/tmp/qemu:z,ro', > 'qemu:centos7', '/var/tmp/qemu/run', 'test-quick']' returned non- > zero exit status 2. > filter=--filter=label=com.qemu.instance.uuid=1fad358ccc2746a4b0095e3abd7d4c78 > make[1]: *** [docker-run] Error 1 > make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-lks33yi2/src' > make: *** [docker-run-test-quick@centos7] Error 2 > > real11m29.420s > user0m8.596s > > > The full log is available at > http://patchew.org/logs/20200114193350.10830-1-mlevi...@redhat.com/testing.docker-quick@centos7/?type=message. > --- > Email generated automatically by Patchew [https://patchew.org/]. > Please send your feedback to patchew-de...@redhat.com Hi, this is my fault. I made tiny change in the error message, and didn't update the output of 300 test. I'll fix that in next version of the patches. Best regards, Maxim Levitsky
Re: [PATCH 00/13] LUKS: encryption slot management using amend interface
Patchew URL: https://patchew.org/QEMU/20200114193350.10830-1-mlevi...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH 00/13] LUKS: encryption slot management using amend interface Type: series Message-id: 20200114193350.10830-1-mlevi...@redhat.com === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT END === Switched to a new branch 'test' c97e00f iotests: add tests for blockdev-amend 005f7d8 block/qcow2: implement blockdev-amend fcf block/crypto: implement blockdev-amend 97610b5 block: add generic infrastructure for x-blockdev-amend qmp command b93e775 qemu-iotests: qemu-img tests for luks key management 9730684 iotests: filter few more luks specific create options f98c145 qcow2: extend qemu-img amend interface with crypto options dd5bc1c block/crypto: implement the encryption key management ad24636 block/crypto: rename two functions 88f372b block: amend: separate amend and create options for qemu-img e9720f3 block: amend: add 'force' option d96c666 qcrypto-luks: implement encryption key management c41fba3 qcrypto: add generic infrastructure for crypto options amendment === OUTPUT BEGIN === 1/13 Checking commit c41fba3b83a1 (qcrypto: add generic infrastructure for crypto options amendment) 2/13 Checking commit d96c6663e39d (qcrypto-luks: implement encryption key management) 3/13 Checking commit e9720f380038 (block: amend: add 'force' option) 4/13 Checking commit 88f372b238fc (block: amend: separate amend and create options for qemu-img) ERROR: Macros with multiple statements should be enclosed in a do - while loop #30: FILE: block/qcow2.c:5448: +#define QCOW_COMMON_OPTIONS \ +{ \ +.name = BLOCK_OPT_SIZE, \ +.type = QEMU_OPT_SIZE, \ +.help = "Virtual disk size" \ +}, \ +{ \ +.name = BLOCK_OPT_COMPAT_LEVEL, \ +.type = QEMU_OPT_STRING,\ +.help = "Compatibility level (v2 [0.10] or v3 [1.1])" \ +}, \ +{ \ +.name = BLOCK_OPT_BACKING_FILE, \ +.type = QEMU_OPT_STRING,\ +.help = "File name of a base image" \ +}, \ +{ \ +.name = BLOCK_OPT_BACKING_FMT, \ +.type = QEMU_OPT_STRING,\ +.help = "Image format of the base image"\ +}, \ +{ \ +.name = BLOCK_OPT_DATA_FILE,\ +.type = QEMU_OPT_STRING,\ +.help = "File name of an external data file"\ +}, \ +{ \ +.name = BLOCK_OPT_DATA_FILE_RAW,\ +.type = QEMU_OPT_BOOL, \ +.help = "The external data file must stay valid " \ +"as a raw image"\ +}, \ +{ \ +.name = BLOCK_OPT_ENCRYPT, \ +.type = QEMU_OPT_BOOL, \ +.help = "Encrypt the image with format 'aes'. (Deprecated " \ +"in favor of " BLOCK_OPT_ENCRYPT_FORMAT "=aes)",\ +}, \ +{ \ +.name = BLOCK_OPT_ENCRYPT_FORMAT, \ +.type = QEMU_OPT_STRING,\ +.help = "Encrypt the image, format choices: 'aes', 'luks'", \ +}, \ +BLOCK_CRYPTO_OPT_DEF_KEY_SECRET("encrypt.", \ +
Re: [PATCH 00/13] LUKS: encryption slot management using amend interface
Patchew URL: https://patchew.org/QEMU/20200114193350.10830-1-mlevi...@redhat.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin/bash make docker-image-centos7 V=1 NETWORK=1 time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1 === TEST SCRIPT END === Not run: 301 303 Failures: 049 300 Failed 2 of 110 iotests make: *** [check-tests/check-block.sh] Error 1 Traceback (most recent call last): File "./tests/docker/docker.py", line 662, in sys.exit(main()) --- raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=1fad358ccc2746a4b0095e3abd7d4c78', '-u', '1003', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew2/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-lks33yi2/src/docker-src.2020-01-14-16.05.10.20352:/var/tmp/qemu:z,ro', 'qemu:centos7', '/var/tmp/qemu/run', 'test-quick']' returned non-zero exit status 2. filter=--filter=label=com.qemu.instance.uuid=1fad358ccc2746a4b0095e3abd7d4c78 make[1]: *** [docker-run] Error 1 make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-lks33yi2/src' make: *** [docker-run-test-quick@centos7] Error 2 real11m29.420s user0m8.596s The full log is available at http://patchew.org/logs/20200114193350.10830-1-mlevi...@redhat.com/testing.docker-quick@centos7/?type=message. --- Email generated automatically by Patchew [https://patchew.org/]. Please send your feedback to patchew-de...@redhat.com