Commit Graph

17631 Commits

Author SHA1 Message Date
MathieuRA
280c05ac48 feat(rest-api/SSE): SSE support now XO objects changes 2026-09-10 16:41:55 +02:00
MathieuRA
d13fad62bd fix(rest-api): use previousObj instead of object for message SSE events 2026-09-10 16:41:55 +02:00
MathieuRA
e0fb16a421 feat(xo-server): server status become a persistant property 2026-09-10 16:41:55 +02:00
Florent BEAUCHAMP
db8fe8d472 feat(rest-api): export vdi and vdi snapshot content as qcow2 + vdi export fixes (#10350) 2026-09-10 14:38:47 +02:00
Grandalf
2aa3bd602e feat/backups/journal log (#10256)
* fix fbeauchamp comments

* feat(backups): add a journal

* fix cache writing on immutable remotes

* add typing

* feat(backups): shard the journal per UTC day, one entry per time

`readBackupJournal()` listed the whole `xo-backup-log/` and filtered the names
client-side, so the cost of a read grew with the whole history of the repository.

Store the entries as `/xo-backup-log/<YYYYMMDD>/<HHMMSS.mmmZ>-<rand>-<event>-<vmUuid>-<file>`
and list only the days which can hold entries newer than `since`: a read now costs one
listing of the journal root plus one listing per day it is missing — normally a single
day, at most two, since a reader rebuilds from scratch when its watermark crosses a UTC
day. Purging old entries also becomes a directory removal instead of a per-object sweep.

The day is not repeated in the entry name, so `since` bounds the time of its own day
only; every later day is taken whole.

* fix pipeline

---------

Co-authored-by: All-Ki <killian.allegrain@vates.tech>
2026-09-10 14:26:41 +02:00
Florent BEAUCHAMP
b32fd39c19 fix(qcow2): improve qcow2 stream index computation (used for backup/replication and export) (#10333)
* feat(qcow2): improve generation speed

the idea is to build a bit index of the clusters to store them efficiently instead
of going through all the possible blocks 3 times at different phases of the generation.
The memory consumption is 2MB/TB of disk

this index generation can still be quite long , so we use setImmediate from
time to time to le the rest of the nodejs event loop run

also make this index phase abortable
2026-09-10 13:49:32 +02:00
Thomas Moraine
0115680129 doc(restapi.md): document maximum token validity (#10347) 2026-09-09 15:22:57 +02:00
Dan Pollak
e50f033361 fix(xo-server): correct spelling of "across" in migration logic and messages (#10372) 2026-09-09 14:21:10 +02:00
OlivierFL
5cf93b3c3c feat(web-core/tab-item): update UiTabItem component to v7 (#10338) 2026-09-09 12:39:43 +02:00
Mathieu
505ac6caf5 fix(xo-server): keep localhost proxy targets on wildcard binds (#10335)
* fix(xo-server): keep localhost proxy targets on wildcard binds

Since 82f047ef9 (#9572), [http.proxies] targets pointing at localhost are
rewritten to the hostname of the HTTPS listen config. With the default XOA
config (hostname = '0.0.0.0') this produced targets such as
http://0.0.0.0:9004/metrics and, worse, routed these internal requests
through the proxy-aware HTTP agent: with an httpProxy configured,
/openmetrics scrapes left the appliance for the corporate proxy and were
denied there.

Only rewrite when the bind address is a specific one (the #9500 case, where
localhost is not reachable) and pick the agent from the original target
locality, so requests to the machine itself never go through the HTTP proxy.

Seen in support ticket 7763112.

* chore(CHANGELOG.unreleased): entry for #10335

* chore(CHANGELOG.unreleased): clarify localhost targets always bypass the HTTP proxy
2026-09-09 12:00:54 +02:00
OlivierFL
e428304aea feat(xo6/web-core): implement tests on frontend (#10012) 2026-09-09 11:48:41 +02:00
Pierre Brunet
11eed70342 fix(xen-api): update undici to prevent timeout error (#10282) 2026-09-09 11:16:07 +02:00
Sandrine Barrucand
699d78b1ca fix(web-stack): use correct color for no-data stars (#10327) 2026-09-09 10:43:09 +02:00
Pierre Donias
43f81f87e3 feat(xo-web/vm/tab-backups): open edit form in same tab (#10342)
Opening the form in a new tab reloaded the whole app, so every object
was fetched again from scratch. Until that fetch finished, the form
could not be properly auto-filled. Navigating in the same tab reuses
the already loaded objects, so the form is populated right away.
2026-09-08 16:38:00 +02:00
Dan Pollak
77d07cf4ac Docs: Fix typo (#10362) 2026-09-08 15:43:02 +02:00
ayoub-el-kajji-v
dc107da91a fix(xo-server): change current_operations display for xo host and poo… (#10283) 2026-09-08 14:54:24 +02:00
Thomas Moraine
c9391b075e docs(xo): fix wrong page order and restore missing external links (#10370)
docs(xo): fix wrong page order and restore missing links

After ve changed how the sidebar
was generated (from manual declarations to automatic generation)
Some pages went out of order and didn't
have the proper sidebar title.
This commit fixes that.
Also, the external links in the sidebar disappeared.
We can't add them in an auto-generated sidebar, so we circumvent
that by creating dedicated pages for external resources
and re-adding the links there.

Signed-off-by: Thomas Moraine <thomas.moraine@vates.tech>
2026-09-08 14:33:29 +02:00
Mathieu
91d0f0fbcb feat(xo-server): make the RPU/RPR migrate back phase reliable and optional (#10295)
Fixes #10260.
Introduced by #7242.
Takes over #10274.
2026-09-08 12:00:33 +02:00
Thomas Moraine
f99d7ab761 doc(xo): sidebar refactor (#10354)
We now generate the sidebar automatically (based on the documentation folder structure and _category.json files), instead of declaring the doc structure manually in sidebars.ts.
Simpler management

This makes the sidebar easier to understand and maintain. It is now managed the exact same way as the sidebars for the Vates VMS and XCP-ng documentations.
Clickable breadcrumbs

The autogenerated sidebar also creates category index pages, which makes breadcrumb categories clickable, as they already are in the Vates VMS and XCP-ng documentations.
Preview
Capture d'écran 2026-09-08 094848
Unlisted pages

Pages that should remain accessible but be hidden from the sidebar are now hidden using the unlisted: true metadata, instead of simply being omitted from sidebars.ts.
Internal links and redirection

Finally, the PR updates internal links and redirects to reflect the new folder structure and URLs.
2026-09-08 11:40:01 +02:00
Florent BEAUCHAMP
e58587aa1d fix(xo-server): auto reconnection infinite loop when pool is already connectd (#10355)
* don't rearm after a fatal error before connection setting changed ( does not affect the normal route on non fatal error like newtork issue)
* serialize error correctly in database to ensure the "avoid a database write per auto-reconnect" corectly trigger
a lot of more cleanup to ensure that the connection is really dropped even if the host changed its id
* fix a mishnalding in the grace period before marking a pool disconnected . this will keep the ui in sync AND not redownload all the xapi object for a transient issue
* fix an error transmitted as raw, so the user was only seeing {}
2026-09-08 11:25:51 +02:00
Grandalf
067aba2bfc feat(backups): add a cache guard and migrate required to backup-archive (#10243)
[XO-2789]
* Extracts the backup migration logic into backup-archive and adds a cache guard for future performance improvements
* don't generate or read cache file on immutable backup repository
* clean cache file on immutable backup repository
2026-09-08 11:11:47 +02:00
Sandrine Barrucand
bbeb67092e fix(web-stack): use correct color for 404 (#10325) 2026-09-08 10:15:14 +02:00
Alina D
a974448339 feat(xo6): add the VM name to actions that open a modal (#10310) 2026-09-08 10:11:09 +02:00
amouillard-vates
069bb79d4a feat(xo6): sr dedicated page hosts tab (#10140)
* Update CHANGELOG.unreleased.md

* Hosts tab

* Hosts side panel

* Update CHANGELOG.unreleased.md

* Route + fix import

* The dev routes

* Simplify SrHeader

* Refactoring

* Fix type

* locale

* Simplify pbd connection status

* Refactor srs get

* New import rules

* Fixes

* Singular locale

* Refactor + sr status

* Push generated routes

* Switch order

* PR Fixes

* Comment fixes

* Changelog packages

* Cleanup changelog

* Keep unreleased
2026-09-08 10:04:07 +02:00
Sandrine Barrucand
ead446fcdb fix(web-stack): use correct color for console offline SVG sparks (#10309) 2026-09-07 17:40:44 +02:00
Sandrine Barrucand
03865bc5fe feat(xo6/host): reconfigure the management interface to another PIF (#10110) 2026-09-04 14:20:23 +02:00
Elise-F
35e8c513d8 feat(lite): add action reboot on host (#10250)
* feat(host): add action reboot on host

* update changelog file

* fix missing ts extension and clean code

* add header state

* feedback one
2026-09-04 14:20:02 +02:00
Florent BEAUCHAMP
00943b92e7 docs(xo-server): rest api guidelines (#10071)
improve the xo guidelines
2026-09-04 13:36:45 +02:00
Bastien Nollet
4416d55d7a feat: release 6.8.2 (#10360) 2026-09-04 12:00:25 +02:00
Bastien Nollet
9f72a1f900 feat: technical release (#10358)
* feat(@xen-orchestra/proxy): 0.31.10

* feat(xo-server): 5.208.3

* chore(CHANGELOG): update next
2026-09-04 11:20:47 +02:00
Florent BEAUCHAMP
003cc6f9cc fix(proxy): fetch failed (#10346)
* fix(backups): fetch failed

disable compresion between xoa on proxy on xoa side

* fix(xo-proxy): disable compression on the proxy

it was disable with hrp, replaced by #10038 since it was never
sending accept-encoding header

compression can be put back later on a route by route basis after
careful checks ( for example : file restore, backup listing )
2026-09-03 12:56:36 +02:00
Bastien Nollet
bca8f02b8a feat: release 6.8.1 (#10341) 2026-09-02 11:18:21 +02:00
Bastien Nollet
7a18762da4 feat: technical release (#10334)
* feat(@xen-orchestra/xapi): 8.10.5

* feat(@xen-orchestra/backups): 0.74.2

* feat(@xen-orchestra/proxy): 0.31.9

* feat(xo-server): 5.208.2

* chore(CHANGELOG): update next
2026-09-01 16:26:11 +02:00
Florent BEAUCHAMP
1004edb51f fix(backups): failing replication of qcow2 disks (#10319)
* fix(backups):  task label NBT->NBD

* fix: still force a list block only call for NBD + stream scenario , that was failing to transfer disk on fallback
2026-09-01 15:28:47 +02:00
Marie Garde
a67dd73304 feat(xo6/traffic rule): edit a traffic rule (#10056) 2026-09-01 11:22:03 +02:00
Mathieu
a2ce3bbc48 fix(@xen-orchestra/qa-test): downgrade engine to 22 to avoid build issue (#10323)
* fix(@xen-orchestra/qa-test): downgrade engine to 22 to avoid build issue

* fix >=
2026-09-01 09:14:56 +02:00
Bastien Nollet
3034955277 feat(lite): 0.25.0 (#10329) xo-lite-v0.25.0 2026-08-31 18:37:24 +02:00
Bastien Nollet
faf6745471 feat: release 6.8 (#10328) 2026-08-31 17:59:40 +02:00
Bastien Nollet
7e022940c3 feat: technical release (#10326)
* feat(@vates/types): 2.0.1

* feat(@xen-orchestra/web): 0.60.1

* feat(xo-server): 5.208.1

* chore(CHANGELOG): update next
2026-08-31 15:55:42 +02:00
Bastien Nollet
b33894c067 feat : technical release (#10322)
* feat(@xen-orchestra/web): 0.60.0

* feat(xo-server): 5.208.0

* feat(xo-server-openmetrics): 1.9.2

* feat(xo-web): 5.203.0

* chore(CHANGELOG): update next
2026-08-31 15:15:41 +02:00
Mathieu
2fba0ff4df fix(openmetrics): keep the Prometheus secret across xo-server restarts (#10290)
* fix(openmetrics): keep the Prometheus secret across xo-server restarts

The `secret` property of `configurationSchema` used a random `default`. That
expression is re-evaluated every time the module is loaded, and xo-server never
persists the values ajv fills in from schema defaults, so each restart handed
the metrics endpoint a brand new bearer token and Prometheus started getting
401s.

Drop the default and generate the secret in `load()` instead, saving it through
`xo.configurePlugin()` so it survives a restart.

Introduced by #9323
See https://xcp-ng.org/forum/topic/12415

* chore(changelog): add openmetrics secret entry

* fix(xo-server-openmetrics): generate a 256-bit Prometheus secret

Buffer.from(getRandomValues(new Uint32Array(8))) coerces each 32-bit
element to a single byte, so the generated secret held 64 bits of
entropy instead of 256. Use randomBytes(32) instead.

Introduced by fe29bd0d4
2026-08-31 13:45:02 +02:00
Pierre Donias
62cc3e3f5d feat(xo-web/new VM): allow admin to create VM in resource set (#10259) 2026-08-31 10:55:00 +02:00
Elise-F
d2d2d57c81 feat(lite): add action create internal network (#10235)
* feat(lite): add create network and network bonded actions

* remove vlan required and info message

* feedback number one

* feat(lite): add create network and network bonded actions

* feat(lite): add action create internal network

* update changelog file

* fix rebase

* feedback number one

* remove as const in cancelRoute

* feedback number two
2026-08-31 10:51:27 +02:00
Mathieu
c7bf0c59ef fix(@xen-orchestra/qa-test): fix node version (#10320) 2026-08-31 10:48:19 +02:00
Marie Garde
62013d4e79 feat(xo6): add detach host button (#10179)
* feat(xo6): rebase detach

* add redirect when detach ok

* fix post rebase

* remove dev route

* returns from MR

* add check master host

* use linked translation

* rebase ok
2026-08-31 09:03:33 +02:00
Bastien Nollet
6a4415ea1d feat: technical release (#10318)
* feat(@vates/nbd-client): 3.5.1

* feat(@vates/types): 2.0.0

* feat(@xen-orchestra/acl): 1.6.1

* feat(@xen-orchestra/backup-archive): 1.1.2

* feat(@xen-orchestra/xapi): 8.10.4

* feat(@xen-orchestra/backups): 0.74.1

* feat(@xen-orchestra/web-core): 0.60.0

* feat(@xen-orchestra/mcp): 1.4.2

* feat(@xen-orchestra/proxy): 0.31.8

* feat(@xen-orchestra/rest-api): 0.39.0

* feat(@xen-orchestra/web): 0.59.0

* feat(xo-server): 5.207.4

* feat(xo-server-ipmi-sensors): 2.1.1

* feat(xo-server-openmetrics): 1.9.1

* feat(xo-server-sdn-controller): 1.5.0

* chore(CHANGELOG): update next
2026-08-28 14:56:02 +02:00
Florent BEAUCHAMP
14e4c7d62c fix(backups): timeout NBD transfer omnibus fixes (#10306)
* fix(backups): timeout was not used correctly for NBD transfers
* fix(nbd-client): evict a dead client in multi instead
actual code was retrying 5 times, each time with a 60s timeout
multi also have its own retry on conneciton
since the client used is determnistic for a block, any stalled client
will be hammerred for a lot of time before giving up

this PR evict a nbd client that is failing to read a block (with its
retry logic)

* fix(nbd-client/multi): better spread read accross client
the actual code derivate the clientId from the block index
we have no information on the block distribution, only hopes that
it's random enough
this PR introduce a mechanism to use a round robin to select
the next client

* fix: correct fall back to full with /without nbd on qcow2
2026-08-28 10:57:17 +02:00
Marie Garde
d541af2c41 feat(xo6): add restart toolstack host button (#10178)
* feat(xo6): rebase from master

* add check restart toolstack on buttons

* add tooltip message

* Fix for PR

* remove loader

* add chengelog

* remove route map

* return form PR
2026-08-28 10:37:38 +02:00
Sandrine Barrucand
cdc4ddb652 feat(xo6/backups): add header title (#10303) 2026-08-27 11:49:53 +02:00
Joris K
2ebf18a636 feat(xo-lite): add vm tree actions and loader (#10304) 2026-08-27 10:56:34 +02:00