migration: Deprecate redundant query-migrate result @blocked
PATCH 1/1 migration: Deprecate redundant query-migrate result @blocked
Result @blocked is true when and only when result @blocked-reasons is present. It's always non-empty when present. @blocked is redundant. It was introduced in commit 3af8554bd0 "migration: Add blocker information", and has not been released. This gives us a chance to fix the interface with minimal fuss.
Unfortunately, we're already too close to the release to risk dropping it. Deprecate it instead.
---
This is alternative to "[PATCH v2] migration: Drop redundant query-migrate result @blocked".
qapi/migration.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
qapi/migration.json +7 -2
@@ -224,9 +224,14 @@ # only returned if VFIO device is present, migration is supported by all # VFIO devices and status is 'active' or 'completed' (since 5.2) # +# @blocked-reasons: A list of reasons an outgoing migration is blocked. +# Present and non-empty when migration is blocked. +# (since 6.0) +# # @blocked: True if outgoing migration is blocked (since 6.0) # -# @blocked-reasons: A list of reasons an outgoing migration is blocked (since 6.0) +# Features: +# @deprecated: Member @blocked is deprecated. Use @blocked-reasons instead. # # Since: 0.14 ##
@@ -241,7 +246,7 @@ '*setup-time': 'int', '*cpu-throttle-percentage': 'int', '*error-desc': 'str', - 'blocked': 'bool', + 'blocked': { 'type': 'bool', 'features': [ 'deprecated' ] }, '*blocked-reasons': ['str'], '*postcopy-blocktime' : 'uint32', '*postcopy-vcpu-blocktime': ['uint32'],
Signature · 1 line
2.26.3
Quoted 9 lines · Markus Armbruster
Result @blocked is true when and only when result @blocked-reasons is present. It's always non-empty when present. @blocked is redundant. It was introduced in commit
3af8554bd0"migration: Add blocker information", and has not been released. This gives us a chance to fix the interface with minimal fuss.Unfortunately, we're already too close to the release to risk dropping it. Deprecate it instead.
Quoted 7 lines
Signed-off-by Markus Armbruster <[email protected]>---
This is alternative to "[PATCH v2] migration: Drop redundant query-migrate result @blocked".qapi/migration.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
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 :|
Dr. David Alan Gilbert
Reviewed-byQuoted 15 lines · * Daniel P. Berrangé ([email protected]) wrote:
Quoted 14 lines · Markus Armbruster
Result @blocked is true when and only when result @blocked-reasons is present. It's always non-empty when present. @blocked is redundant. It was introduced in commit
3af8554bd0"migration: Add blocker information", and has not been released. This gives us a chance to fix the interface with minimal fuss.Unfortunately, we're already too close to the release to risk dropping it. Deprecate it instead.
Signed-off-by Markus Armbruster <[email protected]>---
This is alternative to "[PATCH v2] migration: Drop redundant query-migrate result @blocked".
Quoted 4 lines
Quoted 2 lines
qapi/migration.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Reviewed-by Daniel P. Berrangé <[email protected]>
Yes,
Peter: Do you want to pick that up directly ?
Dave
Quoted 8 lines
Regards,
DanielSignature · 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 :|
Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 20 lines · Dr. David Alan Gilbert
Quoted 18 lines · * Daniel P. Berrangé ([email protected]) wrote:
Quoted 16 lines · Markus Armbruster
Result @blocked is true when and only when result @blocked-reasons is present. It's always non-empty when present. @blocked is redundant. It was introduced in commit
3af8554bd0"migration: Add blocker information", and has not been released. This gives us a chance to fix the interface with minimal fuss.Unfortunately, we're already too close to the release to risk dropping it. Deprecate it instead.
Signed-off-by Markus Armbruster <[email protected]>---
This is alternative to "[PATCH v2] migration: Drop redundant query-migrate result @blocked".qapi/migration.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Quoted 8 lines
Quoted 1 line
Reviewed-by Daniel P. Berrangé <[email protected]>Yes,
Reviewed-by Dr. David Alan Gilbert <[email protected]>Peter: Do you want to pick that up directly ?
Yep; applied to master for 6.0.
thanks
-- PMM