Migration deprecated parts
v7 cover Migration deprecated parts
Based on: Message-ID: <[email protected]>
[PULL 00/11] Migration 20231018 patches
And here we are, at v7:
- drop black line at the end of deprecated.rst
- change qemu-iotest output due to warnings for deprecation.
The only real change is the output of the qemu-iotest. That is the reason why I maintained the reviewed-by. But will be happy if anyone of the block people ack the changes.
Thanks, Juan.
On this v6:
- Fixed Markus comments
- 1st patch is reviewed
- dropped the RFC ones.
Later, Juan.
On this v5:
- Rebased on top of last migration pull requesnt:
- address markus comments. Basically we recommend always blockdev-mirror + NBD. In deprecated.rst we also put the posiblity of using block-incremental and block, but we state that they are also deprecated.
I know, I know, I deprecated them in the following patch.
- Dropped the removal of block-migration and block-incremental I am only interested in showing why I want to remove the -b/-i options.
Please review.
Later, Juan.
On this v4:
- addressed all markus comments.
- rebased on latest.
- improve formatting of migration.json
- print block migration status when needed.
- patches 7-10 are not mean to merge, they just show why we want to deprecate block migration and remove its support.
- Patch 7 just drop support for -i/-b and qmp equivalents.
- Patch 8 shows all the helpers and convolutions we need to have to support that -i and -d.
- patch 9 drops block-incremental migration support.
- patch 9 drops block migration support.
Please review.
Thanks, Juan.
On this v3:
- Rebase on top of upstream.
- Changed v8.1 to 8.2 (I left the reviewed by anyways)
- missing the block deprecation code, please.
Please, review.
Later, Juan.
On this v2:
- dropped -incoming <uri> deprecation
Paolo came with a better solution using keyvalues.
- skipped field is already ready for next pull request, so dropped.
- dropped the RFC bits, nermal PATCH.
- Assessed all the review comments.
- Added indentation of migration.json.
- Used the documentation pointer to substitute block migration.
Please review.
[v1]
Hi this series describe the migration parts that have to be deprecated.
- It is an rfc because I doubt that I did the deprecation process right. Hello Markus O:-)
- skipped field: It is older than me, I have never know what it stands for. As far as I know it has always been zero.
- inc/blk migrate command options. They are only used by block migration (that I deprecate on the following patch). And they are really bad. grep must_remove_block_options.
- block migration. block jobs, whatever they are called this week are way more flexible. Current code works, but we broke it here and there, and really nobody has stand up to maintain it. It is quite contained and can be left there. Is anyone really using it?
- old compression method. It don't work. See last try from Lukas to make a test that works reliabely. I failed with the same task years ago. It is really slow, and if compression is good for you, multifd
+ zlib is going to perform/compress way more.
I don't know what to do with this code, really.
* Remove it for this release? It don't work, and haven't work reliabely in quite a few time.
* Deprecate it and remove in another couple of releases, i.e. normal deprecation.
* Ideas?
- -incoming <uri>
if you need to set parameters (multifd cames to mind, and preempt has the same problem), you really needs to use defer. So what should we do here?
This part is not urget, because management apps have a working option that are already using "defer", and the code simplifacation if we remove it is not so big. So we can leave it until 9.0 or whatever we think fit.
What do you think?
Later, Juan.
Juan Quintela (4):
migration: migrate 'inc' command option is deprecated.
migration: migrate 'blk' command option is deprecated.
migration: Deprecate block migration
migration: Deprecate old compression method
docs/about/deprecated.rst | 35 +++++++++++++ qapi/migration.json | 93 ++++++++++++++++++++++++++-------- migration/block.c | 3 ++ migration/migration-hmp-cmds.c | 10 ++++ migration/migration.c | 10 ++++ migration/options.c | 22 +++++++- tests/qemu-iotests/183.out | 2 + 7 files changed, 152 insertions(+), 23 deletions(-)
Signature · 1 line
2.41.0
PATCH v7 1/4 migration: migrate 'inc' command option is deprecated.
Use blockdev-mirror with NBD instead.
--- docs/about/deprecated.rst | 8 ++++++++ qapi/migration.json | 8 +++++++- migration/migration-hmp-cmds.c | 5 +++++ migration/migration.c | 5 +++++ 4 files changed, 25 insertions(+), 1 deletion(-)
docs/about/deprecated.rst +8 -0
@@ -461,3 +461,11 @@ Migration ``skipped`` field in Migration stats has been deprecated. It hasn't been used for more than 10 years. +``inc`` migrate command option (since 8.2) +'''''''''''''''''''''''''''''''''''''''''' + +Use blockdev-mirror with NBD instead. + +As an intermediate step the ``inc`` functionality can be achieved by +setting the ``block-incremental`` migration parameter to ``true``. +But this parameter is also deprecated.
qapi/migration.json +7 -1
@@ -1524,6 +1524,11 @@ # # @resume: resume one paused migration, default "off". (since 3.0) # +# Features: +# +# @deprecated: Member @inc is deprecated. Use blockdev-mirror with +# NBD instead. +# # Returns: nothing on success # # Since: 0.14
@@ -1545,7 +1550,8 @@ # <- { "return": {} } ## { 'command': 'migrate', - 'data': {'uri': 'str', '*blk': 'bool', '*inc': 'bool', + 'data': {'uri': 'str', '*blk': 'bool', + '*inc': { 'type': 'bool', 'features': [ 'deprecated' ] }, '*detach': 'bool', '*resume': 'bool' } } ##
migration/migration-hmp-cmds.c +5 -0
@@ -745,6 +745,11 @@ void hmp_migrate(Monitor *mon, const QDict *qdict)const char *uri =qdict_get_str (qdict,"uri" );Error *err =NULL ; +if (inc) { +warn_report ("option '-i' is deprecated;" +" use blockdev-mirror with NBD instead" ); + } +qmp_migrate (uri, !!blk, blk, !!inc, inc, false, false, true, resume, &err);if (hmp_handle_error (mon, err)) {
migration/migration.c +5 -0
@@ -1604,6 +1604,11 @@ static bool migrate_prepare(MigrationState *s, bool blk, bool blk_inc, {Error *local_err =NULL ; +if (blk_inc) { +warn_report ("parameter 'inc' is deprecated;" +" use blockdev-mirror with NBD instead" ); + } +if (resume) {if (s->state !=MIGRATION_STATUS_POSTCOPY_PAUSED ) { error_setg(errp, "Cannot resume if there is no "
Signature · 1 line
2.41.0
PATCH v7 2/4 migration: migrate 'blk' command option is deprecated.
In reply to Juan QuintelaUse blocked-mirror with NBD instead.
--- docs/about/deprecated.rst | 9 +++++++++ qapi/migration.json | 7 ++++--- migration/migration-hmp-cmds.c | 5 +++++ migration/migration.c | 5 +++++ tests/qemu-iotests/183.out | 1 + 5 files changed, 24 insertions(+), 3 deletions(-)
docs/about/deprecated.rst +9 -0
@@ -469,3 +469,12 @@ Use blockdev-mirror with NBD instead. As an intermediate step the ``inc`` functionality can be achieved by setting the ``block-incremental`` migration parameter to ``true``. But this parameter is also deprecated. + +``blk`` migrate command option (since 8.2) +'''''''''''''''''''''''''''''''''''''''''' + +Use blockdev-mirror with NBD instead. + +As an intermediate step the ``blk`` functionality can be achieved by +setting the ``block`` migration capability to ``true``. But this +capability is also deprecated.
qapi/migration.json +4 -3
@@ -1526,8 +1526,8 @@ # # Features: # -# @deprecated: Member @inc is deprecated. Use blockdev-mirror with -# NBD instead. +# @deprecated: Members @inc and @blk are deprecated. Use +# blockdev-mirror with NBD instead. # # Returns: nothing on success #
@@ -1550,7 +1550,8 @@ # <- { "return": {} } ## { 'command': 'migrate', - 'data': {'uri': 'str', '*blk': 'bool', + 'data': {'uri': 'str', + '*blk': { 'type': 'bool', 'features': [ 'deprecated' ] }, '*inc': { 'type': 'bool', 'features': [ 'deprecated' ] }, '*detach': 'bool', '*resume': 'bool' } }
migration/migration-hmp-cmds.c +5 -0
@@ -750,6 +750,11 @@ void hmp_migrate(Monitor *mon, const QDict *qdict) " use blockdev-mirror with NBD instead"); } +if (blk) { +warn_report ("option '-b' is deprecated;" +" use blockdev-mirror with NBD instead" ); + } +qmp_migrate (uri, !!blk, blk, !!inc, inc, false, false, true, resume, &err);if (hmp_handle_error (mon, err)) {
migration/migration.c +5 -0
@@ -1609,6 +1609,11 @@ static bool migrate_prepare(MigrationState *s, bool blk, bool blk_inc, " use blockdev-mirror with NBD instead"); } +if (blk) { +warn_report ("parameter 'blk' is deprecated;" +" use blockdev-mirror with NBD instead" ); + } +if (resume) {if (s->state !=MIGRATION_STATUS_POSTCOPY_PAUSED ) { error_setg(errp, "Cannot resume if there is no "
tests/qemu-iotests/183.out +1 -0
@@ -28,6 +28,7 @@ read 65536/65536 bytes at offset 0 { 'execute': 'migrate', 'arguments': { 'uri': 'unix:SOCK_DIR/migrate', 'blk': true } } +warning: parameter 'blk' is deprecated; use blockdev-mirror with NBD instead {"return": {}} { 'execute': 'query-status' } {"return": {"status": "postmigrate", "singlestep": false, "running": false}}
Signature · 1 line
2.41.0
PATCH v7 3/4 migration: Deprecate block migration
In reply to Juan QuintelaIt is obsolete. It is better to use driver-mirror with NBD instead.
--- docs/about/deprecated.rst | 10 ++++++++++ qapi/migration.json | 29 ++++++++++++++++++++++++----- migration/block.c | 3 +++ migration/options.c | 9 ++++++++- tests/qemu-iotests/183.out | 1 + 5 files changed, 46 insertions(+), 6 deletions(-)
docs/about/deprecated.rst +10 -0
@@ -478,3 +478,13 @@ Use blockdev-mirror with NBD instead. As an intermediate step the ``blk`` functionality can be achieved by setting the ``block`` migration capability to ``true``. But this capability is also deprecated. + +block migration (since 8.2) +''''''''''''''''''''''''''' + +Block migration is too inflexible. It needs to migrate all block +devices or none. + +Please see "QMP invocation for live storage migration with +``blockdev-mirror`` + NBD" in docs/interop/live-block-operations.rst +for a detailed explanation.
qapi/migration.json +24 -5
@@ -269,11 +269,15 @@ # average memory load of the virtual CPU indirectly. Note that # zero means guest doesn't dirty memory. (Since 8.1) # +# Features: +# +# @deprecated: Member @disk is deprecated because block migration is. +# # Since: 0.14 ## { 'struct': 'MigrationInfo', 'data': {'*status': 'MigrationStatus', '*ram': 'MigrationStats', - '*disk': 'MigrationStats', + '*disk': { 'type': 'MigrationStats', 'features': [ 'deprecated' ] }, '*vfio': 'VfioStats', '*xbzrle-cache': 'XBZRLECacheStats', '*total-time': 'int',
@@ -525,6 +529,9 @@ # # Features: # +# @deprecated: Member @block is deprecated. Use blockdev-mirror with +# NBD instead. +# # @unstable: Members @x-colo and @x-ignore-shared are experimental. # # Since: 1.2
@@ -534,7 +541,8 @@ 'compress', 'events', 'postcopy-ram', { 'name': 'x-colo', 'features': [ 'unstable' ] }, 'release-ram', - 'block', 'return-path', 'pause-before-switchover', 'multifd', + { 'name': 'block', 'features': [ 'deprecated' ] }, + 'return-path', 'pause-before-switchover', 'multifd', 'dirty-bitmaps', 'postcopy-blocktime', 'late-block-activate', { 'name': 'x-ignore-shared', 'features': [ 'unstable' ] }, 'validate-uuid', 'background-snapshot',
@@ -835,6 +843,9 @@ # # Features: # +# @deprecated: Member @block-incremental is deprecated. Use +# blockdev-mirror with NBD instead. +# # @unstable: Members @x-checkpoint-delay and @x-vcpu-dirty-limit-period # are experimental. #
@@ -850,7 +861,7 @@ 'tls-creds', 'tls-hostname', 'tls-authz', 'max-bandwidth', 'avail-switchover-bandwidth', 'downtime-limit', { 'name': 'x-checkpoint-delay', 'features': [ 'unstable' ] }, - 'block-incremental', + { 'name': 'block-incremental', 'features': [ 'deprecated' ] }, 'multifd-channels', 'xbzrle-cache-size', 'max-postcopy-bandwidth', 'max-cpu-throttle', 'multifd-compression',
@@ -1011,6 +1022,9 @@ # # Features: # +# @deprecated: Member @block-incremental is deprecated. Use +# blockdev-mirror with NBD instead. +# # @unstable: Members @x-checkpoint-delay and @x-vcpu-dirty-limit-period # are experimental. #
@@ -1040,7 +1054,8 @@ '*downtime-limit': 'uint64', '*x-checkpoint-delay': { 'type': 'uint32', 'features': [ 'unstable' ] }, - '*block-incremental': 'bool', + '*block-incremental': { 'type': 'bool', + 'features': [ 'deprecated' ] }, '*multifd-channels': 'uint8', '*xbzrle-cache-size': 'size', '*max-postcopy-bandwidth': 'size',
@@ -1225,6 +1240,9 @@ # # Features: # +# @deprecated: Member @block-incremental is deprecated. Use +# blockdev-mirror with NBD instead. +# # @unstable: Members @x-checkpoint-delay and @x-vcpu-dirty-limit-period # are experimental. #
@@ -1251,7 +1269,8 @@ '*downtime-limit': 'uint64', '*x-checkpoint-delay': { 'type': 'uint32', 'features': [ 'unstable' ] }, - '*block-incremental': 'bool', + '*block-incremental': { 'type': 'bool', + 'features': [ 'deprecated' ] }, '*multifd-channels': 'uint8', '*xbzrle-cache-size': 'size', '*max-postcopy-bandwidth': 'size',
migration/block.c +3 -0
@@ -731,6 +731,9 @@ static int block_save_setup(QEMUFile *f, void *opaque)trace_migration_block_save ("setup" , block_mig_state.submitted, block_mig_state.transferred); +warn_report ("block migration is deprecated;" +" use blockdev-mirror with NBD instead" ); + ret =init_blk_migration (f);if (ret <0 ) {return ret;
migration/options.c +8 -1
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "exec/target_page.h" #include "qapi/clone-visitor.h" #include "qapi/error.h"
@@ -473,10 +474,14 @@ bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp)if (new_caps[MIGRATION_CAPABILITY_BLOCK ]) {error_setg (errp,"QEMU compiled without old-style (blk/-b, inc/-i) " "block migration" ); -error_append_hint (errp,"Use drive_mirror+NBD instead.\n" ); +error_append_hint (errp,"Use blockdev-mirror with NBD instead.\n" );return false; }#endif +if (new_caps[MIGRATION_CAPABILITY_BLOCK ]) { +warn_report ("block migration is deprecated;" +" use blockdev-mirror with NBD instead" ); + }#ifndef CONFIG_REPLICATION if (new_caps[MIGRATION_CAPABILITY_X_COLO ]) {
@@ -1386,6 +1391,8 @@ static void migrate_params_apply(MigrateSetParameters *params, Error **errp) }if (params->has_block_incremental) { +warn_report ("block migration is deprecated;" +" use blockdev-mirror with NBD instead" ); s->parameters.block_incremental = params->block_incremental; }if (params->has_multifd_channels) {
tests/qemu-iotests/183.out +1 -0
@@ -29,6 +29,7 @@ read 65536/65536 bytes at offset 0 { 'execute': 'migrate', 'arguments': { 'uri': 'unix:SOCK_DIR/migrate', 'blk': true } } warning: parameter 'blk' is deprecated; use blockdev-mirror with NBD instead +warning: block migration is deprecated; use blockdev-mirror with NBD instead {"return": {}} { 'execute': 'query-status' } {"return": {"status": "postmigrate", "singlestep": false, "running": false}}
Signature · 1 line
2.41.0
PATCH v7 4/4 migration: Deprecate old compression method
In reply to Juan Quintela--- docs/about/deprecated.rst | 8 +++++ qapi/migration.json | 63 ++++++++++++++++++++++++++------------- migration/options.c | 13 ++++++++ 3 files changed, 64 insertions(+), 20 deletions(-)
docs/about/deprecated.rst +8 -0
@@ -488,3 +488,11 @@ devices or none. Please see "QMP invocation for live storage migration with ``blockdev-mirror`` + NBD" in docs/interop/live-block-operations.rst for a detailed explanation. + +old compression method (since 8.2) +'''''''''''''''''''''''''''''''''' + +Compression method fails too much. Too many races. We are going to +remove it if nobody fixes it. For starters, migration-test +compression tests are disabled becase they fail randomly. If you need +compression, use multifd compression methods.
qapi/migration.json +43 -20
136 lines not on this page · raw message
migration/options.c +13 -0
@@ -483,6 +483,11 @@ bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp) " use blockdev-mirror with NBD instead"); } +if (new_caps[MIGRATION_CAPABILITY_COMPRESS ]) { +warn_report ("old compression method is deprecated;" +" use multifd compression methods instead" ); + } +#ifndef CONFIG_REPLICATION if (new_caps[MIGRATION_CAPABILITY_X_COLO ]) { error_setg(errp, "QEMU compiled without replication module"
@@ -1321,18 +1326,26 @@ static void migrate_params_apply(MigrateSetParameters *params, Error **errp)/* TODO use QAPI_CLONE() instead of duplicating it inline */ if (params->has_compress_level) { +warn_report ("old compression is deprecated;" +" use multifd compression methods instead" ); s->parameters.compress_level = params->compress_level; }if (params->has_compress_threads) { +warn_report ("old compression is deprecated;" +" use multifd compression methods instead" ); s->parameters.compress_threads = params->compress_threads; }if (params->has_compress_wait_thread) { +warn_report ("old compression is deprecated;" +" use multifd compression methods instead" ); s->parameters.compress_wait_thread = params->compress_wait_thread; }if (params->has_decompress_threads) { +warn_report ("old compression is deprecated;" +" use multifd compression methods instead" ); s->parameters.decompress_threads = params->decompress_threads; }
Signature · 1 line
2.41.0
Quoted 10 lines · Juan Quintela
Based on: Message-ID: <[email protected]>
[PULL 00/11] Migration 20231018 patchesAnd here we are, at v7:
- drop black line at the end ofdeprecated.rst
- change qemu-iotest output due to warnings for deprecation.The only real change is the output of the qemu-iotest. That is the reason why I maintained the reviewed-by. But will be happy if anyone of the block people ack the changes.
I forgot to include the link to the CI of the previous failure.
https://gitlab.com/juan.quintela/qemu/-/jobs/5314070229
tput mismatch (see /builds/juan.quintela/qemu/build/tests/qemu-iotests/scratch/raw-file-183/183.out.bad)
builds/juan.quintela/qemu/build/tests/qemu-iotests/scratch/raw-file-183/183.out.bad renamed from builds/juan.quintela/qemu/tests/qemu-iotests/183.out +2 -0
@@ -28,6 +28,8 @@ { 'execute': 'migrate', 'arguments': { 'uri': 'unix:SOCK_DIR/migrate', 'blk': true } } +warning: parameter 'blk is deprecated; use blockdev-mirror with NBD instead +warning: block migration is deprecated; use blockdev-mirror with NBD instead {"return": {}} { 'execute': 'query-status' } {"return": {"status": "postmigrate", "singlestep": false, "running": false}}
Quoted 130 lines
Thanks, Juan.
On this v6:
- Fixed Markus comments
- 1st patch is reviewed
- dropped the RFC ones.Later, Juan.
On this v5:
- Rebased on top of last migration pull requesnt:- address markus comments. Basically we recommend always blockdev-mirror + NBD. In
deprecated.rstwe also put the posiblity of using block-incremental and block, but we state that they are also deprecated.
I know, I know, I deprecated them in the following patch.- Dropped the removal of block-migration and block-incremental I am only interested in showing why I want to remove the -b/-i options.
Please review.
Later, Juan.
On this v4:
- addressed all markus comments.
- rebased on latest.
- improve formatting of migration.json
- print block migration status when needed.
- patches 7-10 are not mean to merge, they just show why we want to deprecate block migration and remove its support.
- Patch 7 just drop support for -i/-b and qmp equivalents.
- Patch 8 shows all the helpers and convolutions we need to have to support that -i and -d.
- patch 9 drops block-incremental migration support.
- patch 9 drops block migration support.Please review.
Thanks, Juan.
On this v3:
- Rebase on top of upstream.
- Changed v8.1 to 8.2 (I left the reviewed by anyways)
- missing the block deprecation code, please.Please, review.
Later, Juan.
On this v2:
- dropped -incoming <uri> deprecation
Paolo came with a better solution using keyvalues.- skipped field is already ready for next pull request, so dropped.
- dropped the RFC bits, nermal PATCH.
- Assessed all the review comments.
- Added indentation of migration.json.
- Used the documentation pointer to substitute block migration.
Please review.
[v1]
Hi this series describe the migration parts that have to be deprecated.- It is an rfc because I doubt that I did the deprecation process right. Hello Markus O:-)
- skipped field: It is older than me, I have never know what it stands for. As far as I know it has always been zero.
- inc/blk migrate command options. They are only used by block migration (that I deprecate on the following patch). And they are really bad. grep
must_remove_block_options.- block migration. block jobs, whatever they are called this week are way more flexible. Current code works, but we broke it here and there, and really nobody has stand up to maintain it. It is quite contained and can be left there. Is anyone really using it?
- old compression method. It don't work. See last try from Lukas to make a test that works reliabely. I failed with the same task years ago. It is really slow, and if compression is good for you, multifd
+ zlib is going to perform/compress way more.I don't know what to do with this code, really.
* Remove it for this release? It don't work, and haven't work reliabely in quite a few time.
* Deprecate it and remove in another couple of releases, i.e. normal deprecation.
* Ideas?
- -incoming <uri>
if you need to set parameters (multifd cames to mind, and preempt has the same problem), you really needs to use defer. So what should we do here?
This part is not urget, because management apps have a working option that are already using "defer", and the code simplifacation if we remove it is not so big. So we can leave it until 9.0 or whatever we think fit.
What do you think?
Later, Juan.
Juan Quintela (4):
migration: migrate 'inc' command option is deprecated.
migration: migrate 'blk' command option is deprecated.
migration: Deprecate block migration
migration: Deprecate old compression methoddocs/about/deprecated.rst | 35 +++++++++++++ qapi/migration.json | 93 ++++++++++++++++++++++++++-------- migration/block.c | 3 ++ migration/migration-hmp-cmds.c | 10 ++++ migration/migration.c | 10 ++++ migration/options.c | 22 +++++++- tests/qemu-iotests/183.out | 2 + 7 files changed, 152 insertions(+), 23 deletions(-)
Quoted 20 lines · Juan Quintela
Quoted 10 lines · Juan Quintela
Based on: Message-ID: <[email protected]>
[PULL 00/11] Migration 20231018 patchesAnd here we are, at v7:
- drop black line at the end ofdeprecated.rst
- change qemu-iotest output due to warnings for deprecation.The only real change is the output of the qemu-iotest. That is the reason why I maintained the reviewed-by. But will be happy if anyone of the block people ack the changes.
I forgot to include the link to the CI of the previous failure.
https://gitlab.com/juan.quintela/qemu/-/jobs/5314070229
tput mismatch (see /builds/juan.quintela/qemu/build/tests/qemu-iotests/scratch/raw-file-183/183.out.bad)
builds/juan.quintela/qemu/build/tests/qemu-iotests/scratch/raw-file-183/183.out.bad line 35
Quoted 8 lines
builds/juan.quintela/qemu/build/tests/qemu-iotests/scratch/raw-file-183/183.out.bad renamed from builds/juan.quintela/qemu/tests/qemu-iotests/183.out +2
-0@@ -28,6 +28,8 @@ { 'execute': 'migrate', 'arguments': { 'uri': 'unix:SOCK_DIR/migrate', 'blk': true } } +warning: parameter 'blk is deprecated; use blockdev-mirror with NBD instead +warning: block migration is deprecated; use blockdev-mirror with NBD instead {"return": {}} { 'execute': 'query-status' } {"return": {"status": "postmigrate", "singlestep": false, "running": false}}
IIUC, the JSON bits are being written on stdout, and the warnings are being written on stderr. The interleaving of the data is potentially going to be non-deterministic in the .out file. Generally you'd want a filter in the iotests that culls the
warning: lines to avoid this mixing of stdout/err streams.
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 27 lines · Daniel P. Berrangé
Quoted 26 lines · Juan Quintela
Quoted 10 lines · Juan Quintela
Based on: Message-ID: <[email protected]>
[PULL 00/11] Migration 20231018 patchesAnd here we are, at v7:
- drop black line at the end ofdeprecated.rst
- change qemu-iotest output due to warnings for deprecation.The only real change is the output of the qemu-iotest. That is the reason why I maintained the reviewed-by. But will be happy if anyone of the block people ack the changes.
I forgot to include the link to the CI of the previous failure.
https://gitlab.com/juan.quintela/qemu/-/jobs/5314070229
tput mismatch (see /builds/juan.quintela/qemu/build/tests/qemu-iotests/scratch/raw-file-183/183.out.bad)
builds/juan.quintela/qemu/build/tests/qemu-iotests/scratch/raw-file-183/183.out.bad renamed from builds/juan.quintela/qemu/tests/qemu-iotests/183.out +2
-0@@ -28,6 +28,8 @@ { 'execute': 'migrate', 'arguments': { 'uri': 'unix:SOCK_DIR/migrate', 'blk': true } } +warning: parameter 'blk is deprecated; use blockdev-mirror with NBD instead +warning: block migration is deprecated; use blockdev-mirror with NBD instead {"return": {}} { 'execute': 'query-status' }
Quoted 8 lines
builds/juan.quintela/qemu/build/tests/qemu-iotests/scratch/raw-file-183/183.out.bad line 35
Quoted 2 lines
builds/juan.quintela/qemu/build/tests/qemu-iotests/scratch/raw-file-183/183.out.bad renamed from builds/juan.quintela/qemu/tests/qemu-iotests/183.out +0
-0{"return": {"status": "postmigrate", "singlestep": false, "running": false}}IIUC, the JSON bits are being written on stdout, and the warnings are being written on stderr. The interleaving of the data is potentially going to be non-deterministic in the .out file. Generally you'd want a filter in the iotests that culls the
warning: lines to avoid this mixing of stdout/err streams.
Thanks.
So here I am, going to v8 to create filters.
Later, Juan.