@xen-orchestra/backups 0.52.2 → 0.52.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -335,15 +335,22 @@ export const AbstractXapi = class AbstractXapiVmBackupRunner extends Abstract {
|
|
|
335
335
|
const reason = 'VM migration is blocked during backup'
|
|
336
336
|
await vm.update_blocked_operations({ pool_migrate: reason, migrate_send: reason })
|
|
337
337
|
|
|
338
|
-
$defer(() =>
|
|
338
|
+
$defer(async () => {
|
|
339
339
|
// delete the entries if they did not exist previously or if they were
|
|
340
340
|
// equal to reason (which happen if a previous backup was interrupted
|
|
341
341
|
// before resetting them)
|
|
342
|
-
vm.update_blocked_operations({
|
|
342
|
+
await vm.update_blocked_operations({
|
|
343
343
|
migrate_send: migrate_send === undefined || migrate_send === reason ? null : migrate_send,
|
|
344
344
|
pool_migrate: pool_migrate === undefined || pool_migrate === reason ? null : pool_migrate,
|
|
345
345
|
})
|
|
346
|
-
|
|
346
|
+
|
|
347
|
+
// 2024-08-19 - Work-around a XAPI bug where allowed_operations are not properly computed when blocked_operations is updated
|
|
348
|
+
//
|
|
349
|
+
// this is a problem because some clients (e.g. XenCenter) use this field to allow operations.
|
|
350
|
+
//
|
|
351
|
+
// internal source: https://team.vates.fr/vates/pl/mjmxnce9qfdx587r3qpe4z91ho
|
|
352
|
+
await vm.$call('update_allowed_operations')
|
|
353
|
+
})
|
|
347
354
|
}
|
|
348
355
|
|
|
349
356
|
await this._fetchJobSnapshots()
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/vatesfr/xen-orchestra.git"
|
|
10
10
|
},
|
|
11
|
-
"version": "0.52.
|
|
11
|
+
"version": "0.52.3",
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=14.18"
|
|
14
14
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"tmp": "^0.2.1"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@xen-orchestra/xapi": "^7.
|
|
61
|
+
"@xen-orchestra/xapi": "^7.3.0"
|
|
62
62
|
},
|
|
63
63
|
"license": "AGPL-3.0-or-later",
|
|
64
64
|
"author": {
|