Julien Fontanet
3a52944f21
fix(docs): use correct bin with forever
2021-05-20 18:49:36 +02:00
Julien Fontanet
cc9d741275
fix(xo-server): fix plugins import
...
Fixes #5782 part 2
Introduced by 254558e9d
2021-05-20 12:07:00 +02:00
Julien Fontanet
f0096cf0e2
chore(xo-server): remove useless imports
...
Introduced by 254558e9d
2021-05-20 10:21:26 +02:00
Julien Fontanet
1d673bf6ff
chore(xo-server): remove useless entry point
...
Introduced by 254558e9d
Due to ESM, it's no longer easy to alter `DEBUG` before all instances of `debug` are loaded, which makes it useless.
2021-05-20 10:16:23 +02:00
Julien Fontanet
d986f00b6a
chore(xo-server): remove rimraf dev dep
2021-05-19 17:43:12 +02:00
Julien Fontanet
01c3ca4f37
chore(proxy): remove unused dev dep rimraf
...
Introduced by df9689854
2021-05-19 17:36:26 +02:00
Julien Fontanet
497bd7dad5
fix(xo-server): fix executables
...
Fixes #5782
Remove `bin` dir in favor of explicit listing, this allows to use ESM with executables without extensions.
2021-05-19 17:33:30 +02:00
Julien Fontanet
1d6a0ae8f1
chore(lint): apply overrides to .cjs and .mjs files
2021-05-19 17:29:09 +02:00
Julien Fontanet
c5e6b5ec7a
chore(xo-server/recover-account): remove unused import
...
Introduced by 254558e9d
2021-05-19 17:28:41 +02:00
Julien Fontanet
ca26b4b30d
chore(xo-server): remove unused run-vhd-test
2021-05-19 17:17:42 +02:00
Julien Fontanet
254558e9de
chore(xo-server): convert to ESM
2021-05-19 15:53:21 +02:00
Julien Fontanet
da0cd0b99c
chore: update to limit-concurrency-decorator@0.5.0
2021-05-19 15:08:53 +02:00
Julien Fontanet
2e49c685cc
chore(emit-async): remove build step
...
It also helps with compatibility with Native ESM for default exports.
2021-05-19 15:00:59 +02:00
Julien Fontanet
a64af4da7c
chore(defined): remove build step
...
It also helps with compatibility with Native ESM for default exports.
2021-05-19 12:07:18 +02:00
Julien Fontanet
68bb2fa7f0
feat(xo-collection): named instead of default exports
...
Behave better with Babel and native ESM.
2021-05-19 10:58:22 +02:00
Julien Fontanet
8bc2710380
chore(xo-collection/view.example): fix lint error
2021-05-19 10:51:57 +02:00
Julien Fontanet
1691e7ad83
chore(xo-collection): event-to-promise → promise-toolbox/fromEvent
2021-05-19 10:51:08 +02:00
Julien Fontanet
6c2cb31923
fix(proxy/api): fix JsonRpcWebSocketClient import
...
Introduced by 84b3162bc
2021-05-18 22:11:13 +02:00
Julien Fontanet
0c6d920682
chore(log): remove build step
...
It also helps with compatibility with native ESM for default exports.
2021-05-18 21:24:42 +02:00
Julien Fontanet
84b3162bcd
fix(proxy/api): fix JsonRpcWebSocketClient import
...
Introduced by df9689854
2021-05-17 16:45:27 +02:00
Julien Fontanet
c7f1469e1f
fix(proxy/backup.run): handle multiple self licenses
...
See xoa-support#3730
Previous code would fail if the first license returned was already expired.
2021-05-16 16:51:32 +02:00
Julien Fontanet
d1dfd93e15
feat(xen-api): 0.32.0
2021-05-12 17:57:06 +02:00
Julien Fontanet
4ef55b8d1f
feat(xen-api): reverseHostIpAddresses option
...
See xoa-support#3727
When enabled, will attempt to get a FQDN from the host address returned by XAPI when using `getResource()` or `putResource()`.
2021-05-12 12:18:05 +02:00
Julien Fontanet
cf45cb56ad
feat(npmignore): ignore /coverage/
2021-05-11 09:04:35 +02:00
Julien Fontanet
df96898543
chore(proxy): convert to ESM
2021-05-10 23:23:37 +02:00
Julien Fontanet
a58bf66dea
feat(scripts/travis-tests): handle .[cm]js files
2021-05-10 23:21:10 +02:00
Julien Fontanet
0f1fc0cc79
chore(proxy): remove rimraf dev dep
2021-05-10 18:17:40 +02:00
Julien Fontanet
dc41f60f52
feat(scripts/lint-staged): handle .[cm]js files
2021-05-10 14:50:19 +02:00
Julien Fontanet
3d21afb640
feat(package.json/scripts/prettify): handle cjs files
2021-05-10 14:48:32 +02:00
Julien Fontanet
79c3667fd4
fix(xo-server/api): never log pool.listMissingPatches or hosts.stats
2021-05-10 11:35:17 +02:00
Julien Fontanet
ab1549f60e
feat(@xen-orchestra/backups-cli): 0.6.0
2021-05-08 10:44:49 +02:00
Julien Fontanet
5d32fa36ff
feat(backups/_VmBackup#_callWriters): clearer error message
...
See xoa-support#3709
2021-05-08 10:43:39 +02:00
Julien Fontanet
f56a5a3de1
fix(xo-server/xapiObjectToXo/link): don't fail on array with missing objects
...
Fixes xoa-support#3691
2021-05-07 09:33:12 +02:00
Julien Fontanet
d0c34fd760
fix(CHANGELOG): update latest badge
...
Introduced by 9e7afd67b
2021-05-06 18:52:06 +02:00
Julien Fontanet
9e7afd67bc
feat: release 5.58.1
2021-05-06 16:17:41 +02:00
Julien Fontanet
964810858b
fix(fs/fs.spec): remove .only modifiers
...
Introduced by 48af5c7ed
2021-05-06 16:17:05 +02:00
Julien Fontanet
7a51361099
fix(CHANGELOG): typo
...
Introduced in e6f8fd923
2021-05-06 16:16:58 +02:00
Julien Fontanet
ec2e71a22f
feat(CHANGELOG.unreleased): add better handling of remotes' errors
...
Introduced in 5b188f35b
2021-05-06 16:09:45 +02:00
Julien Fontanet
5b188f35b5
fix(backups/_VmBackup): better handling of writers' failures
...
- always wait for writers to finish their action
- log all writers' failures
- only interrupt process if all writers have failed
2021-05-05 14:32:39 +02:00
Julien Fontanet
5683571577
fix(xo-server): revert to schema-inspector@1
...
Fixes https://xcp-ng.org/forum/topic/4556/can-t-edit-xo-metatata-backup-config
See schema-inspector/schema-inspector#119
2021-05-05 10:10:03 +02:00
Julien Fontanet
b590e29608
feat(@vates/parse-duration): 0.1.1
2021-05-05 09:51:44 +02:00
Julien Fontanet
569d575a96
fix(parse-duration): ISC license
...
Unrelated to XO code.
2021-05-05 09:49:50 +02:00
Julien Fontanet
dd8bf3776e
fix(parse-duration): show original value in error message
2021-05-05 09:48:30 +02:00
Julien Fontanet
d4ea9c8892
fix(backups/_VmBackup#_selectBaseVm): typo
...
Fixes #5766
Introduced in 1d1bf504d
2021-05-04 16:39:32 +02:00
Julien Fontanet
793c6b4a5a
chore(backups/_VmBackup#_copyDelta): remove useless check
...
All delta writers now have a `prepare()` method since e0d6b501c
2021-05-04 11:56:12 +02:00
Julien Fontanet
917c9dabc7
chore(backups/_VmBackup#copy{Delta,Full}): don't log writer errors
...
These errors are already logged in tasks.
2021-05-04 11:47:54 +02:00
Julien Fontanet
1d1bf504de
chore(backups/VmBackup): make _writers a set
...
It will be easier to remove some writers in case of error.
2021-05-04 11:43:58 +02:00
Julien Fontanet
d0c07e1e97
chore: update promise-toolbox to 0.19.2
2021-05-03 15:41:53 +02:00
Julien Fontanet
dfff520259
fix(proxy/api): backup.{importVm,restoreMetadata}Backup
...
Fixes xoa-support#3688
Issue with `Disposable.use()` when returning an iterator like `runWithLogs()`.
Fixes by `promise-toolbox@0.19 .2`.
2021-05-03 15:27:40 +02:00
Julien Fontanet
bb928bbd73
fix(backups/RemoteAdapter#cleanVm): don't fail if no vdis dir
...
Detected in #5756
Necessary to handle VMs with only full backups.
2021-05-02 11:22:01 +02:00
Julien Fontanet
f86ec98e05
fix(fs/list): ignoreMissing option
...
Introduced by 48af5c7ed
I messed up while renaming the option.
2021-05-02 11:22:01 +02:00
Julien Fontanet
cfaf336597
feat(@xen-orchestra/proxy): 0.13.0
2021-04-30 23:11:25 +02:00
Julien Fontanet
b52345236d
chore(fs): remove unused deps
2021-04-30 23:10:19 +02:00
Julien Fontanet
87ebaf62c1
fix(openflow): fix incorrect dev dep
2021-04-30 23:10:11 +02:00
Julien Fontanet
c7721d6100
feat(xo-server): 5.79.2
2021-04-30 22:53:05 +02:00
Julien Fontanet
40a722a7ff
feat(@xen-orchestra/fs): 0.16.1
2021-04-30 22:52:25 +02:00
Julien Fontanet
d41fbb9216
fix(fs/_outputStream): validator should receive tmp path
2021-04-30 22:51:21 +02:00
Julien Fontanet
8bee0925d0
chore(fs/outputStream): remove incorrect await
2021-04-30 22:45:53 +02:00
Julien Fontanet
b8edca53cb
feat: release 5.58.0
2021-04-30 22:28:17 +02:00
Julien Fontanet
34a13dd293
feat(xo-server): 5.79.1
2021-04-30 22:23:51 +02:00
Julien Fontanet
f72e582a80
feat(@xen-orchestra/backups): 0.10.1
2021-04-30 22:23:22 +02:00
Julien Fontanet
6da2865781
feat(@xen-orchestra/fs): 0.16.0
2021-04-30 22:22:19 +02:00
Julien Fontanet
a0ea12cf6c
feat(CHANGELOG.unreleased): add S3 fix
2021-04-30 22:18:45 +02:00
Julien Fontanet
317bfde574
fix(fs/S3#_mkdir): throw ENOTDIR if file exists
2021-04-30 22:16:51 +02:00
Julien Fontanet
5f53ebdf12
chore(fs/S3#_rmdir): use _isNotEmptyDir
2021-04-30 22:16:51 +02:00
Julien Fontanet
cb835b7b6a
fix(fs/S3#_unlink): throw EISDIR if dir
...
This fix `rmtree()`.
2021-04-30 22:16:51 +02:00
Julien Fontanet
bf76787e49
fix(fs/S3#_createReadStream): throw ENOENT if file doesn't exist
2021-04-30 22:16:51 +02:00
Julien Fontanet
15a4f7e273
fix(fs/S3): basic rmdir implementation
2021-04-30 22:16:51 +02:00
Julien Fontanet
dc3e5ffa4b
chore(backups/RemoteAdapter#outputStream): use fs/outputStream
...
`createOutputStream` is deprecated and does not work with S3 remote.
2021-04-30 22:16:51 +02:00
Julien Fontanet
b84c7cc2bb
feat(fs/outputStream): validator support
2021-04-30 22:16:51 +02:00
Julien Fontanet
049717260d
chore(fs/outputStream): JsDoc
2021-04-30 19:50:00 +02:00
Julien Fontanet
a50a96de82
feat(fs/outputStream): remove support for promise input
2021-04-30 19:42:10 +02:00
Julien Fontanet
8ff8c0d176
chore(fs/outputStream): remove input.task handling
...
This should be handled at a higher level, not in this lib.
2021-04-30 19:38:31 +02:00
Julien Fontanet
a29b63c7d1
chore(fs/outputStream): move checksum handling to public wrapper
2021-04-30 19:31:56 +02:00
Julien Fontanet
a8400c77fb
feat(fs/Abstract#outputStream): use stream.pipeline()
...
BREAKING CHANGE: requires Node >=14
- properly detect both input and output errors
- properly destroy streams in case of errors
2021-04-30 18:42:45 +02:00
Julien Fontanet
e1c40bd218
fix(fs/S3#mkdir): noop implementation
2021-04-30 18:26:50 +02:00
Julien Fontanet
757224683f
chore(xo-server-audit): remove unused dep
2021-04-30 12:30:49 +02:00
Julien Fontanet
95d982f3f3
chore(xo-server-transport-icinga2): remove unused dep
2021-04-30 12:30:39 +02:00
Julien Fontanet
7bfdfe5e41
chore(xapi): remove unused dep
2021-04-30 12:10:14 +02:00
Julien Fontanet
8888b1a89a
fix(proxy): add missing dep
2021-04-30 12:10:04 +02:00
Julien Fontanet
c6ba48be10
chore(proxy): remove unused deps
2021-04-30 12:09:51 +02:00
Julien Fontanet
f132c4b5d1
chore(log): remove unused dev dep
2021-04-30 12:08:03 +02:00
Julien Fontanet
87f5a8f6f2
chore(backups-cli): remove unused dep
2021-04-30 12:06:51 +02:00
Julien Fontanet
de500af30d
fix(backups): add missing dep
2021-04-30 12:06:40 +02:00
Julien Fontanet
8b5607ac89
chore(audit-core): remove unused dep
2021-04-30 12:04:42 +02:00
Julien Fontanet
22727f68c1
fix(audit-core): fix incorrect dev dep
2021-04-30 12:04:30 +02:00
Julien Fontanet
ba64f8e5b5
fix(disposable): add missing dep
2021-04-30 12:02:39 +02:00
Julien Fontanet
b3bde5857e
chore(xo-vmdk-to-vhd): remove unused dev dep
2021-04-30 12:01:29 +02:00
Julien Fontanet
6e36a21d18
chore(xo-server-web-hooks): remove unused deps
2021-04-30 12:01:07 +02:00
Julien Fontanet
968ebeb5a3
chore(xo-import-servers-csv): remove unused deps
2021-04-30 11:59:45 +02:00
Julien Fontanet
47e11652fb
chore(vhd-lib): remove unused dev dep
2021-04-30 11:53:26 +02:00
Julien Fontanet
84019ed4e7
chore(vhd-cli): remove unused dep
2021-04-30 11:53:14 +02:00
Julien Fontanet
37befd89e7
chore(xo-server): remove unused deps
2021-04-30 11:48:28 +02:00
Julien Fontanet
53aeb085ac
fix(backups/MixinBackupWriter): ensure dir exist before locking
2021-04-28 17:52:46 +02:00
Julien Fontanet
18b74d9797
fix(backups/RemoteAdapter#cleanVm): correctly rename/remove VHDs after merge
2021-04-28 15:06:22 +02:00
Julien Fontanet
2e643fce28
fix(backups/MixinBackupWriter): clean VM dir after backup
...
Otherwise, it might trigger a chain reaction which will force all VDIs to be fully exported:
1. a single VDI chain is corrupted
2. it gets removed
3. the linked backups are removed
4. all other VDIs are now unused and are removed as well
5. all VDIs must now be fully exported
2021-04-28 13:20:56 +02:00
Julien Fontanet
5edd271975
fix(backups/RemoteAdapter#cleanVms): restore action logs
...
Introduced by 20f4c952fe
They are necessary because `cleanVms` can run in diagnostic or cleaning mode and the difference must be visible in logs.
2021-04-28 13:07:29 +02:00
Julien Fontanet
70fff77a28
fix(backups/_MixinBackupWriter): warn issues detected in cleanVm
...
`debug` is not good enough because not shown by default.
2021-04-28 10:43:48 +02:00
Julien Fontanet
01ac23162f
fix(xapi/watchObject): dont break potential promise chain
2021-04-26 16:12:30 +02:00
Julien Fontanet
4e3628c6fb
fix(xapi/watchObject): correctly register generic watcher
2021-04-26 16:12:00 +02:00