Julien Fontanet
5ce6f1fe4d
chore(CHANGELOG.unreleased): explicit restore logs REST API path
...
Introduced by 35f6476d0
2023-03-27 15:53:26 +02:00
Julien Fontanet
9c36520c79
feat(xo-server/rest-api): expose backup jobs
2023-03-27 15:53:26 +02:00
Julien Fontanet
458496a09e
feat(xo-server/api): use JSON schema defaults for params
2023-03-19 12:15:06 +01:00
Julien Fontanet
f13a98b6b8
chore(xo-cli/README): update usage
2023-03-18 20:59:26 +01:00
Julien Fontanet
dde32724b1
feat(xo-cli): --json flag
...
Fixes #6736
2023-03-18 20:59:02 +01:00
Julien Fontanet
63b76fdb50
fix(xo-cli): only use color when output is a TTY
...
Fixes #6736
2023-03-18 15:19:38 +01:00
Julien Fontanet
1b9cd56e9f
feat(backups): implement speed limit at job level ( #6728 )
...
Related to #4119
The UI side is still missing.
2023-03-17 17:54:40 +01:00
Julien Fontanet
4a658787de
fix(xo-server): better normalization of VM networks
...
The normalization code was rewritten from scratch and now comes with tests.
- addresses for a specific device of a same protocol are deduplicated
- support any keys (instead of single digits)
2023-03-17 16:16:52 +01:00
Julien Fontanet
1f6e29084f
feat: release 5.80.2
2023-03-16 17:44:24 +01:00
Julien Fontanet
7c6cb2454b
feat(xo-web): 5.113.0
2023-03-16 17:31:46 +01:00
Julien Fontanet
96720d186c
feat(xo-server-auth-oidc): 0.2.0
2023-03-16 17:31:27 +01:00
Julien Fontanet
a45fb88c48
fix(backups/cleanVm): hide misleading incorrect size warning
...
These warnings are usually false alarms and completely begnin, therefore they
are hidden until the root cause is found and fixed.
2023-03-16 17:12:30 +01:00
Julien Fontanet
ca6cdbf9cf
fix(xo-server/disk.exportContent): better HTTP properties handling
2023-03-16 14:31:46 +01:00
Julien Fontanet
74cd35f527
feat(xapi/VDI_exportContent): detect incompatible raw and baseRef
2023-03-16 14:29:26 +01:00
Julien Fontanet
010866a0ef
fix(xo-server/vm.import): descriptionLabel can be empty
...
Fixes https://xcp-ng.org/forum/post/59968
Introduced by 65168c853
2023-03-16 14:10:38 +01:00
Julien Fontanet
5885df4ae9
fix(scripts/gen-deps-list.js): non-zero status code on invalid arg
...
Also, display the usage on stderr instead of stdout.
2023-03-16 11:21:53 +01:00
Julien Fontanet
89bc6da5f4
chore(xo-server/README): uniformize code blocks
...
Follow-up of 2a70ebf66
2023-03-16 11:19:54 +01:00
Julien Fontanet
b5578eadf7
fix(xo-server/sr.{create,set}): name can be empty
...
Fixes https://xcp-ng.org/forum/post/59937
Introduced by 65168c853
2023-03-15 13:57:24 +01:00
Julien Fontanet
d7da83359f
fix(xo-web): don't send empty MTU while creating network ( #6720 )
...
Fixes #6717
2023-03-14 12:14:16 +01:00
Julien Fontanet
a143cd3427
fix(proxy): fix param for log/dedupe
...
Introduced by 05197b93e
2023-03-14 11:51:19 +01:00
Julien Fontanet
3c4dcde1d4
feat(xo-server-auth-oidc): make well-known suffix optional
2023-03-14 10:02:26 +01:00
Julien Fontanet
5a2c315b20
feat(xo-server-auth-oidc): support email for username field ( #6722 )
...
Fixes https://xcp-ng.org/forum/post/59587
2023-03-13 15:26:03 +01:00
Julien Fontanet
299803f03c
chore(xo-server-auth-oidc): add description and keywords
2023-03-13 14:16:38 +01:00
Julien Fontanet
1eac62a26e
feat(xo-server): make plugins searchable by keywords
2023-03-13 14:13:30 +01:00
Julien Fontanet
f1b5416d0b
chore(xo-server-auth-github): remove duplicate package keyword
2023-03-13 14:07:06 +01:00
Julien Fontanet
65168c8532
fix(xo-server-auth-iodc): fix empty usernames with default config
...
See https://xcp-ng.org/forum/post/59587
2023-03-13 12:28:37 +01:00
Julien Fontanet
35f6476d0f
feat(xo-server/rest-api): expose backup logs ( #6711 )
2023-03-13 09:10:15 +01:00
Julien Fontanet
36fabe194f
fix(xo-server/registerUser2): don't create user with invalid (empty) name
...
Related to https://xcp-ng.org/forum/post/59587
2023-03-13 00:42:05 +01:00
Julien Fontanet
921c700fab
fix(xo-server/api): description params can be empty
...
Fixes #6721
Introduced by d6a3492e9
2023-03-13 00:13:41 +01:00
Julien Fontanet
656d13d79b
chore: update dev deps
2023-03-10 10:42:36 +01:00
Julien Fontanet
c18373bb0e
feat(xo-server/rest-api): fields can be set to * to see all properties
2023-03-09 17:20:35 +01:00
Julien Fontanet
d4e7563272
feat(xo-server/getBackupNgLogsSorted): filter can be a function
2023-03-09 17:19:41 +01:00
Julien Fontanet
86d6052c89
chore(xo-server/getBackupNgLogsSorted): use Object.values()
2023-03-09 17:19:10 +01:00
Julien Fontanet
c5ae0dc4ca
feat(xo-server/rest-api): allow trailing slashes for collections
2023-03-09 14:28:09 +01:00
Julien Fontanet
e979a2be9b
fix(xo-server/rest-api/sendObjects): fix duplicate slashes
2023-03-09 14:27:32 +01:00
Julien Fontanet
586b84f434
feat(lint-staged): better branch commit message policy
...
Related to 56b9d22d4
2023-03-09 12:43:42 +01:00
Julien Fontanet
56b9d22d49
feat(lint-staged): validate commit message
2023-03-09 11:13:59 +01:00
Julien Fontanet
69aa241dc9
feat(lint-staged): validate packages list in CHANGELOG.unreleased.md
2023-03-09 10:22:01 +01:00
Julien Fontanet
d1b1fa7ffd
feat(xo-server/_getHostServerTimeShift): debounce for one minute ( #6710 )
...
Currently, each call to the API method `host.isHostServerTimeConsistent` triggers a call to the XAPI method `host.get_servertime` and a comparison with the local machine clock.
Numberof calls to this API method scales with the number of connected clients and xo-web appears to do it quite often on the Home/Hosts page.
As the result of this method is unlikely to change in time, it makes sense to add a small cache.
2023-03-08 16:58:24 +01:00
Julien Fontanet
d6a3492e90
feat(xo-server/api): make string params must be non-empty by default
...
Related to c71104db4
2023-03-08 16:41:03 +01:00
Julien Fontanet
8a14e78d2d
feat: release 5.80.1
2023-03-07 14:38:11 +01:00
Julien Fontanet
1942e55f76
fix(scripts/bump-pkg): fix npm *Cannot set properties of null (setting 'parent')* error
2023-03-06 17:23:59 +01:00
Julien Fontanet
d83f41d0ff
feat(xo-web): 5.112.1
2023-03-06 17:18:36 +01:00
Julien Fontanet
0f09240fb2
feat(xo-server): 5.110.1
2023-03-06 17:18:36 +01:00
Julien Fontanet
3731b49ea8
feat(@xen-orchestra/vmware-explorer): 0.2.0
2023-03-06 17:18:36 +01:00
Julien Fontanet
209223f77e
feat(@xen-orchestra/proxy): 0.26.17
2023-03-06 17:18:36 +01:00
Julien Fontanet
7a5f5ee31d
feat(@xen-orchestra/backups-cli): 1.0.2
2023-03-06 17:18:36 +01:00
Julien Fontanet
a148cb6c9b
feat(@xen-orchestra/backups): 0.32.0
2023-03-06 17:18:33 +01:00
Julien Fontanet
e9ac049744
feat(@xen-orchestra/xapi): 2.0.0
2023-03-06 17:18:20 +01:00
Julien Fontanet
e06d4bd841
feat(xen-api): 1.2.7
2023-03-06 17:00:43 +01:00
Julien Fontanet
6cad4f5839
fix(fs/syncStackTraces): append sync stack instead of replacing original one
...
Same thing as 58e4f9b7b
2023-03-06 16:55:04 +01:00
Julien Fontanet
473d091fa8
fix(xapi/parseDateTime): handle date objects ( #6701 )
...
Fixes zammad#12622 zammad#13106 zammad#13136 zammad#13162
2023-03-06 15:30:54 +01:00
Julien Fontanet
aec5ad4099
fix(xo-cli): better fallback logic for JSON-RPC transport
...
Logic:
- before: fallback on all network, HTTP or JSON-RPC formatting errors
- now: fallback only when response content-type is not `application/json`.
2023-03-06 15:07:32 +01:00
Julien Fontanet
f14f98f7c1
feat(xen-api): remove JSON in XML-RPC transport
...
This transport is never required, old hosts support XML-RPC and newer JSON-RPC.
This transport always contained bugs and now appears to be broken in recent XCP-ng/XenServer versions.
2023-03-06 15:07:32 +01:00
Julien Fontanet
e3d9a7ddf2
fix(xen-api/_call): ensure args always defined
...
Otherwise it might cause JSON-RPC issue on some XAPI versions (missing `params` field) or problems when augmenting errors with `call.params` (*TypeError: Cannot read properties of undefined (reading '0')*).
2023-03-06 15:07:32 +01:00
Julien Fontanet
58e4f9b7b4
fix(xen-api/syncStackTraces): append sync stack instead of replacing original one
2023-03-06 15:07:32 +01:00
Julien Fontanet
617619eb31
fix(scripts/gen-deps-list): fix peer dependencies order
...
Introduced by 1f3255774
2023-03-06 11:05:23 +01:00
Julien Fontanet
00a135b00f
chore(xo-web): move empty server label handling to xo-server
...
Related to c71104db4
2023-03-03 16:40:30 +01:00
Julien Fontanet
c71104db4f
fix(xo-web): don't add servers with empty httpProxy
...
Fixes #6656
Introduced by 2412f8b1e
This commit also contains a change in `xo-server` to properly handle servers in database that have this problematic entries.
2023-03-03 16:39:13 +01:00
Julien Fontanet
eef7940fbc
chore(xo-server): use @xen-orchestra/xapi/parseDateTime
2023-03-03 11:50:31 +01:00
Julien Fontanet
da4b3db17a
feat(xo-server/patching): use HTTPS to fetch XenServer updates
2023-03-03 10:49:23 +01:00
Julien Fontanet
ea2c641604
fix(backups): fix remote timeout for metadata
...
Fixes https://xcp-ng.org/forum/post/59356
Introduced by 61b9a4cf2O
2023-03-01 17:23:52 +01:00
Julien Fontanet
6584eb0827
fix(CHANGELOG): 5.80 → 5.80.0
2023-02-28 15:08:45 +01:00
Julien Fontanet
2e6ea202cd
feat(xo-server-transport-icinga2): 0.1.2
2023-02-28 14:14:59 +01:00
Julien Fontanet
27f17551ad
feat(xo-server-perf-alert): 0.3.4
2023-02-28 14:14:33 +01:00
Julien Fontanet
48bfc4e3cd
feat(xo-server-netbox): 0.3.7
2023-02-28 14:14:09 +01:00
Julien Fontanet
61b9a4cf28
feat(backups/Backup): error after waiting 5m for the remote
...
Related to zammad#12815
2023-02-28 09:26:14 +01:00
Julien Fontanet
c95448bf25
chore(backups/Backup): mutualize get remote error task
2023-02-28 09:26:14 +01:00
Julien Fontanet
f1ca60c182
feat(backups): add debug to backup worker
2023-02-28 09:26:14 +01:00
Julien Fontanet
52e79f78e5
feat(xo-server): refresh env.DEBUG for spawned processes (e.g. backup worker)
2023-02-28 09:26:10 +01:00
Julien Fontanet
586d6876f1
fix: release xo-server plugins impacted by http-request-plus@1
...
Introduced by ab96c549a
2023-02-27 19:41:28 +01:00
Julien Fontanet
63ee6b7f0e
chore(prettify script): handle all file types
2023-02-27 10:42:12 +01:00
Julien Fontanet
24ac3ea37d
feat: release 5.79.3
2023-02-25 10:57:31 +01:00
Julien Fontanet
13cb33cc4a
feat(xo-server/rest-api): basic VM actions ( #6652 )
2023-02-24 17:55:22 +01:00
Julien Fontanet
949a4697fe
feat(xo-server-auth-oidc): OpenID Connect authentication plugin ( #6684 )
...
Fixes #6627
2023-02-24 17:45:41 +01:00
Julien Fontanet
24cac9dcd5
fix(xen-api/getResource): fix redirection handling
...
Introduced by ab96c549a
2023-02-24 11:53:58 +01:00
Julien Fontanet
c8b29da677
feat(xo-cli): better output for returned values
2023-02-23 17:22:27 +01:00
Julien Fontanet
4f63d14529
fix(xo-cli --list-commands): close connection at the end
2023-02-23 16:57:55 +01:00
Julien Fontanet
cef6248650
chore: directly import lodash functions
...
This pass only concerns single imports.
2023-02-23 13:42:03 +01:00
Julien Fontanet
774e443a79
chore: remove unmaintained babel-plugin-lodash
2023-02-23 12:05:56 +01:00
Julien Fontanet
d959e72a9c
fix(xo-cli): handle EPIPE on stdout and stderr
...
Fixes #6680
2023-02-22 16:54:21 +01:00
Julien Fontanet
ee83788b43
chore: update dev deps
2023-02-21 18:32:02 +01:00
Julien Fontanet
62dd5f8ed7
feat(xo-cli): can register with existing token
2023-02-21 16:45:54 +01:00
Julien Fontanet
2de9984945
feat: release 7.79.2
2023-02-20 16:15:39 +01:00
Julien Fontanet
890b46b697
chore(read-chunk): add JSDoc
2023-02-20 14:03:31 +01:00
Julien Fontanet
5419957e06
chore(xen-api): log and ignore by default premature close errors
...
See #6677
2023-02-20 11:45:55 +01:00
Julien Fontanet
39d4667916
fix(xo-server/disk.import): handle stream end
...
Introduced by 61d5a964e
Fixes #6675
2023-02-18 11:10:59 +01:00
Julien Fontanet
083db67df9
feat: release 5.79.1
2023-02-17 14:00:54 +01:00
Julien Fontanet
8dceb6032b
feat(xo-server): 5.109.2
2023-02-17 11:35:23 +01:00
Julien Fontanet
c300dad316
feat(@xen-orchestra/proxy): 0.26.12
2023-02-17 11:35:04 +01:00
Julien Fontanet
45b07f46f1
feat(xen-api): 1.2.4
2023-02-17 11:33:14 +01:00
Julien Fontanet
4023127c87
feat(xen-api/putResource): can ignore connection premature close
...
This is opt-in via the `ignorePrematureClose` option.
2023-02-17 10:51:28 +01:00
Julien Fontanet
ab96c549ae
chore: use http-request-plus@1
2023-02-17 10:51:28 +01:00
Julien Fontanet
a73a24c1df
chore(xo-cli): don't use exec-promise
...
May fix #6667
`exec-promise` called `process.exit()` at the end which may interfere with the output.
2023-02-11 21:51:16 +01:00
Julien Fontanet
31f850c19c
fix(xo-server-transport-email): log async errors
...
Introduced by 711b722
2023-02-10 13:49:26 +01:00
Julien Fontanet
d2a1c02b92
fix(backups,vhd-lib): don't dl whole VHD when using NBD
...
Related to zammad#12510
2023-02-09 17:22:10 +01:00
Julien Fontanet
914decd4f9
chore(backups/_forkStreamUnpipe): use native stream.finished
2023-02-09 11:30:03 +01:00
Julien Fontanet
873c38f9e1
chore(backups/_forkStreamUnpipe): rename variables
...
- `stream` → `source`
- `proxy` → `fork`
2023-02-09 11:29:13 +01:00
Julien Fontanet
a3e37eca62
fix(xo-server): disable broken requestTimeout
...
Fixes https://xcp-ng.org/forum/post/58146
Caused by nodejs/node#46574
It caused requests to timeout after 0-30 seconds, which broke all uploads.
2023-02-09 10:25:45 +01:00
Julien Fontanet
817911a41e
fix(xen-api): fix task watchers when initially not watching events (2)
...
Introduced by 9f4fce9da
2023-02-08 17:11:27 +01:00