Skip to contentSkip to conversation

migration: Deprecate redundant query-migrate result @blocked

PATCH In review Markus Armbruster 4 participants 4 messages Apr 20, 2021

lore
Share & tools
lore
#0 lore raw

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
index 9bf0bc4d25..0b17cce46b 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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

---
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 :|
#2 lore raw
Quoted 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.

---
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(-)

Yes,

Peter: Do you want to pick that up directly ?

Dave

Quoted 8 lines

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 :|
Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK
#3 lore raw
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.

---
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

Yes,

Peter: Do you want to pick that up directly ?

Yep; applied to master for 6.0.

thanks
-- PMM