@xen-orchestra/backups 0.64.0 → 0.64.1
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.
|
@@ -18,7 +18,6 @@ const asyncEach = async (iterable, fn, thisArg = iterable) => {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const Abstract = class AbstractVmBackupRunner {
|
|
21
|
-
_hasTransferredData
|
|
22
21
|
// calls fn for each function, warns of any errors, and throws only if there are no writers left
|
|
23
22
|
async _callWriters(fn, step, parallel = true) {
|
|
24
23
|
const writers = this._writers
|
|
@@ -72,14 +71,6 @@ export const Abstract = class AbstractVmBackupRunner {
|
|
|
72
71
|
if (this._healthCheckSr === undefined) {
|
|
73
72
|
return
|
|
74
73
|
}
|
|
75
|
-
if (this._hasTransferredData === undefined) {
|
|
76
|
-
throw new Error('Missing tag to check there are some transferred data ')
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
if (!this._hasTransferredData) {
|
|
80
|
-
Task.info(`No healthCheck needed because no data was transferred.`)
|
|
81
|
-
return
|
|
82
|
-
}
|
|
83
74
|
|
|
84
75
|
// check if current VM has tags
|
|
85
76
|
const tags = this._tags
|
|
@@ -13,6 +13,8 @@ import { Task } from '../../Task.mjs'
|
|
|
13
13
|
|
|
14
14
|
export const AbstractRemote = class AbstractRemoteVmBackupRunner extends Abstract {
|
|
15
15
|
_filterPredicate
|
|
16
|
+
_hasTransferredData
|
|
17
|
+
|
|
16
18
|
constructor({
|
|
17
19
|
config,
|
|
18
20
|
job,
|
|
@@ -141,7 +143,16 @@ export const AbstractRemote = class AbstractRemoteVmBackupRunner extends Abstrac
|
|
|
141
143
|
})
|
|
142
144
|
}, 'writer.beforeBackup()')
|
|
143
145
|
await this._run()
|
|
144
|
-
|
|
146
|
+
|
|
147
|
+
if (this._hasTransferredData === undefined) {
|
|
148
|
+
throw new Error('Missing tag to check there are some transferred data')
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (this._hasTransferredData) {
|
|
152
|
+
await this._healthCheck()
|
|
153
|
+
} else {
|
|
154
|
+
Task.info(`No healthCheck needed because no data was transferred.`)
|
|
155
|
+
}
|
|
145
156
|
})
|
|
146
157
|
}
|
|
147
158
|
}
|
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.64.
|
|
11
|
+
"version": "0.64.1",
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=14.18"
|
|
14
14
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@vates/disposable": "^0.1.6",
|
|
27
27
|
"@vates/fuse-vhd": "^2.1.2",
|
|
28
28
|
"@vates/generator-toolbox": "^1.0.4",
|
|
29
|
-
"@vates/nbd-client": "^3.2.
|
|
29
|
+
"@vates/nbd-client": "^3.2.1",
|
|
30
30
|
"@vates/parse-duration": "^0.1.1",
|
|
31
31
|
"@xen-orchestra/async-map": "^0.1.2",
|
|
32
32
|
"@xen-orchestra/disk-transform": "^1.1.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"tar": "^6.1.15",
|
|
52
52
|
"uuid": "^9.0.0",
|
|
53
53
|
"value-matcher": "^0.2.0",
|
|
54
|
-
"vhd-lib": "^4.14.
|
|
54
|
+
"vhd-lib": "^4.14.1",
|
|
55
55
|
"xen-api": "^4.7.4",
|
|
56
56
|
"yazl": "^2.5.1"
|
|
57
57
|
},
|