Skip to content

Merge master into pool licensing feature branch #6276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
4e0ecd6
Merge master into feature/perf (#6078)
edwintorok Oct 25, 2024
8c3438d
Update feature/perf from master (#6111)
edwintorok Nov 12, 2024
b6952d6
Update feature branch (#6120)
edwintorok Nov 18, 2024
6011545
CP-49158: [prep] Add Task completion latency benchmark
edwintorok Apr 21, 2024
95dbc42
CP-51690: [prep] Xapi_periodic_scheduler: Factor out Delay.wait call
edwintorok Apr 21, 2024
68af6ce
CP-51690: [bugfix] Xapi_periodic_scheduler: avoid 10s sleep on empty …
edwintorok Apr 21, 2024
a2f3441
CP-51693: feat(use-xmlrpc): [perf] use JSONRPC instead of XMLRPC for …
edwintorok Apr 21, 2024
71a4a84
CP-51701: [perf] Xapi_event: do not convert to lowercase if already l…
edwintorok Apr 21, 2024
774316f
CP-51701: [perf] Xapi_event: drop duplicate lowercase_ascii
edwintorok Apr 21, 2024
4b86134
CP-51701: [perf] Xapi_events: replace List.any+map with List.exists
edwintorok Apr 21, 2024
a8f9bc6
CP-51693: introduce feature flag to use JSONRPC for internal pool com…
psafont Nov 19, 2024
5115fa1
CP-49064:`Tgroup` library
GabrielBuica Sep 25, 2024
ce7de90
CP-51493: Add `set_cgroup`
GabrielBuica Sep 25, 2024
0714ce2
CP-51488: Set `tgroup` based on request header.
GabrielBuica Sep 25, 2024
3d822a7
CP-49064: Init cgroups at xapi startup
GabrielBuica Oct 2, 2024
e90b32c
CP-50537: Always reset `_extra_headers` when making a connection.
GabrielBuica Oct 28, 2024
4f5dbb5
CP-50537: Propagate originator as a http request header
GabrielBuica Oct 23, 2024
13cff9f
CP-51489: Classify threads based on http requests.
GabrielBuica Oct 22, 2024
efaf3f0
CP-50537: Add a guard in `xapi_globs`, `Xapi_globs.tgroups_enabled`.
GabrielBuica Nov 4, 2024
f713c79
CP-51692: feat(use-event-next): introduce use-event-next configuratio…
edwintorok Apr 21, 2024
3a36ed9
CP-52625: workaround Rpc.Int32 parsing bug
edwintorok Apr 21, 2024
e40c1ae
CP-51692: feat(use-event-next): cli_util: use Event.from instead of E…
edwintorok Apr 21, 2024
527e124
CP-50537: TGroup library to manage the priority and classify xapi exe…
edwintorok Nov 19, 2024
ace50ae
CP-51692: feat(use-event-next): xe event-wait: use Event.from instead…
edwintorok Apr 21, 2024
7b5dbcb
CP-51690: fix timeouts shorter than 10s in the periodic scheduler (#6…
robhoes Nov 19, 2024
4068f9d
CA-401651: stunnel_cache: run the cache expiry code periodically
edwintorok Nov 7, 2024
f9a523d
CA-401652: stunnel_cache: set stunnel size limit based on host role
edwintorok Nov 7, 2024
02cec08
CA-388210: rename vm' to vm
edwintorok Nov 21, 2024
ed55521
CA-388210: drop unused domain parameter
edwintorok Aug 7, 2024
bee9e05
CA-388210: factor out computing the domain parameter
edwintorok Aug 7, 2024
77b8ae9
CA-388210: SMAPIv3 concurrency safety: send the (unique) datapath arg…
edwintorok Aug 7, 2024
2686c6f
CA-388210: SMAPIv3 debugging: log PID
edwintorok Aug 7, 2024
b93ce07
CP-52707: Improve Event.from/next API documentation
edwintorok Nov 21, 2024
7c20ec7
CP-52707: Improve Event.from/next API documentation (#6130)
robhoes Nov 21, 2024
d2d21f1
CA-388210: use unique datapaths for concurrent VDI copies (#5920)
edwintorok Nov 25, 2024
5f1a59c
CP-51692: use Event.from instead of Event.next (#6125)
edwintorok Nov 25, 2024
f1c3cee
CA-388210: SMAPIv3 concurrency: turn on concurrent operations by default
edwintorok Aug 7, 2024
3e36355
CA-388210: delete comment about deadlock bug, they are fixed
edwintorok Dec 3, 2024
c69162b
CA-388210: SMAPIv3 concurrency: turn on concurrent operations by defa…
edwintorok Dec 3, 2024
44fb57a
CA-401650: reduce open connections between pool members and the coord…
robhoes Dec 3, 2024
d2804d6
CA-388564: move qemu-dm to vm.slice
edwintorok Dec 3, 2024
59da2e0
CA-388564: move qemu-dm to vm.slice (#6150)
edwintorok Dec 4, 2024
51e9cf6
Merge master into feature/perf
edwintorok Dec 10, 2024
ce5abab
Update feature/perf from master (#6167)
edwintorok Dec 10, 2024
1ac3f07
Update feature/perf from master
edwintorok Dec 11, 2024
0b34302
Update feature/perf again (#6173)
edwintorok Dec 12, 2024
6b02474
CP-52821: Xapi_periodic_scheduler: introduce add_to_queue_span
edwintorok Nov 28, 2024
68cb0b8
CP-52821: Xapi_event: use Clock.Timer instead of gettimeofday
edwintorok Nov 28, 2024
6b6c6c5
CP-52821: xapi_periodic_scheduler: use Mtime.span instead of Mtime.t
edwintorok Dec 5, 2024
83f4517
CP-52821: use Mtime in Xapi_periodic_scheduler (#6161)
edwintorok Dec 12, 2024
0b7202d
CP-51209: add hooks lock_acquired/released for bpftrace
mg12 Oct 18, 2024
886b852
CP-51209: db_notification: enable/disable and begin/end hooks for bpf…
mg12 Nov 12, 2024
0e909ec
CP-49158: [prep] batching: add a helper for recursive, batched calls …
edwintorok Apr 18, 2024
efaa606
CP-49158: [prep] Event.from: replace recursion with Batching.with_rec…
edwintorok Apr 18, 2024
3e1d8a2
CP-51692: Event.next: use same batching as Event.from
edwintorok Apr 18, 2024
2b4e0db
CP-49158: [prep] Event.{from,next}: make delays configurable and prep…
edwintorok Apr 20, 2024
9435eea
CP-49158: Event.next is deprecated: increase delays
edwintorok Apr 20, 2024
0beb5c1
CP-49158: Use exponential backoff for delay between recursive calls
edwintorok Apr 20, 2024
257af94
CP-49158: Throttle: add Thread.yield
edwintorok Apr 18, 2024
8a427b9
CP-52526: rate limit event updates (#6126)
edwintorok Dec 12, 2024
767b3dd
CP-49141: add OCaml timeslice setter
edwintorok Aug 20, 2024
7e42f49
CP-52709: add timeslice configuration to all services
edwintorok Aug 20, 2024
3ad905e
CP-52709: add simple measurement code
edwintorok Aug 20, 2024
38e1ad8
CP-52709: recommended measurement
edwintorok Aug 20, 2024
93f85be
CP-52709: Enable timeslice setting during unit tests by default
edwintorok Aug 22, 2024
a454548
CP-52320: Improve xapi thread classification
GabrielBuica Dec 4, 2024
76c8556
CP-52320 & CP-52795: Add unit tests for tgroup library
GabrielBuica Dec 4, 2024
63391ba
CP-52320 & CP-52743: Classify xapi threads.
GabrielBuica Dec 4, 2024
6589d9a
Xapi thread classification - part 2 (#6154)
mg12 Jan 8, 2025
8b8af63
Merge remote-tracking branch 'upstream/master' into feature/perf
edwintorok Jan 13, 2025
b418d69
Update feature/perf from master (#6218)
edwintorok Jan 13, 2025
9c5c8dd
CP-52709: use timeslices shorter than 50ms (#6177)
edwintorok Jan 13, 2025
b1bc5be
CA-403634: Corrected error text (this error can be issued for other t…
kc284 Jan 13, 2025
976b592
Removed errors that are not issued by the API.
kc284 Jan 13, 2025
77147a3
CP-51692: Do not enable Event.next ratelimiting if Event.next is stil…
edwintorok Jan 7, 2025
b892c6e
CP-51692: Do not enable Event.next ratelimiting if Event.next is stil…
edwintorok Jan 14, 2025
a320764
fe_test: add test for syslog feature
freddy77 Jul 27, 2024
731ede7
CA-404591 - rrd: Do not lose precision when converting floats to strings
Jan 17, 2025
1e5114c
CA-404591 - rrd: Do not lose precision when converting floats to stri…
edwintorok Jan 17, 2025
6ccaf7b
Update feature/perf with latest blocker fixes (#6237)
edwintorok Jan 20, 2025
f801eef
MVD CP-52334 multi-version driver API/CLI
Dec 4, 2024
5759634
MVD CP-52334 multi-version driver API/CLI - incremental update
Dec 4, 2024
f38cb66
MVD CP-52334 multi-version driver API/CLI - incremental update
Dec 4, 2024
f34ddfe
MVD CP-52334 multi-version driver API/CLI - small fixes
Dec 4, 2024
2bca391
MVD CP-52334 multi-version driver API/CLI - update schema hash
Dec 4, 2024
dc076cb
MVD CP-52334 multi-version driver API/CLI - remove dead code
Dec 4, 2024
c6c7753
MVD CP-52334 multi-version driver API/CLI - fix typo
Dec 4, 2024
05c1fdf
MVD CP-52334 multi-version driver API/CLI - regen datamodel_lifecycle
Dec 4, 2024
b576ba0
Update ocaml/xapi-cli-server/records.ml
lindig Jan 16, 2025
31adafc
Update ocaml/xapi-cli-server/records.ml
lindig Jan 16, 2025
56f7b74
Update ocaml/xapi-cli-server/records.ml
lindig Jan 16, 2025
eef7fe2
MVD CP-52334 multi-version driver API/CLI - fix documentation
Dec 4, 2024
ab4d4fa
MVD CP-52334 multi-version driver API/CLI - improve records
Dec 4, 2024
cf34f2e
MVD CP-52334 multi-version driver API/CLI - update datamodel_lifecycl…
Dec 4, 2024
e365bea
CA-403634: Corrected error text. Removed errors that are not issued b…
kc284 Jan 21, 2025
5db81b3
Multi-Version Drivers (#6163)
lindig Jan 21, 2025
fc84b33
Remove unused function
robhoes Jan 21, 2025
0936fca
Add more logging to the vhd-tool
Vincent-lau Oct 28, 2024
af3e3ea
chore: Some housekeeping on comments and minor refactoring
Vincent-lau Oct 28, 2024
a8ba0b9
Refactor feature processing logic in `Smint`
Vincent-lau Nov 4, 2024
4e45833
Remove unused function (#6241)
edwintorok Jan 21, 2025
3c3e905
Move `transform_storage_exn` to Storage_utils
Vincent-lau Oct 31, 2024
784ea98
CP-45016: Implement several SMAPIv2->SMAPIv3 APIs for SXM
Vincent-lau Oct 25, 2024
3377d2b
CP-45016: Implement `import_activate` SMAPIv2 call
Vincent-lau Dec 10, 2024
044dc15
CP-45016: Add support for specifying nbd export in sparse_dd
Vincent-lau Oct 28, 2024
cdcaa9d
CP-45016: Implement inbound SXM SMAPIv3 SRs
Vincent-lau Oct 28, 2024
4074277
CP-45016: Implement checking of mirroring features
Vincent-lau Dec 10, 2024
508d476
CP-45016: Delay VDI.compose in SXM
Vincent-lau Nov 15, 2024
c46ed3f
CA-404693 prohibit selecting driver variant if h/w not present
Jan 21, 2025
b731195
fe_test: add test for syslog feature (#5985)
robhoes Jan 21, 2025
8ebbd44
CP-45016: Implement get_nbd_server SMAPI{v1,v2,v3} calls
Vincent-lau Dec 10, 2024
5b9e892
CP-45016: Implement a new nbd proxy handler
Vincent-lau Dec 5, 2024
889dfa6
CP-45016: Clean up the source VM earlier
Vincent-lau Nov 4, 2024
567cac2
Improve doc and logging
Vincent-lau Dec 5, 2024
f2743cf
CA-404693 prohibit selecting driver variant if h/w not present (#6243)
lindig Jan 21, 2025
6e30b84
Update XE_SR_ERRORCODES.xml from SM
robhoes Jan 21, 2025
65afcc7
CA-404611: SXM: check power-state just before metadata export
robhoes Jan 21, 2025
d3bad20
CA-404611: live import: only check CPUID if VM is not Halted
robhoes Jan 21, 2025
3406a64
CA-399260: Keep both new and old certs during the switchover
changlei-li Jan 14, 2025
8f374c7
Added preprocessor directive so that the assembly internals are visib…
kc284 Jan 21, 2025
7abefc4
CA-404611: Fix SXM when VM is shut down midway (#6246)
robhoes Jan 22, 2025
1c9b62a
CA-399260: Keep both new and old certs during the switchover (#6223)
lindig Jan 22, 2025
4207e23
CP-45016 Implement inbound SXM for SMAPIv3 SRs (#6101)
Vincent-lau Jan 22, 2025
42512ab
Remove dangling use of python-future from rrdd.py
MarkSymsCtx Jan 22, 2025
4441556
Added preprocessor directive so that the assembly internals are visib…
kc284 Jan 23, 2025
0e99836
Remove dangling use of python-future from rrdd.py (#6247)
robhoes Jan 23, 2025
f2a9445
opam: add missing dependencies
psafont Jan 23, 2025
a4141f5
opam: add missing dependencies (#6248)
robhoes Jan 23, 2025
37d9237
CA-405404: Fix path to dracut
alexbrett Jan 24, 2025
458b138
docs: Update doc/README.md and Hugo Relearn (to 5.23.0 for now)
bernhardkaindl Jan 24, 2025
bc62e4c
CA-405404: Fix path to dracut (#6250)
robhoes Jan 27, 2025
7010a98
Fix currently broken links to toolstack/features: HA, snapshots
bernhardkaindl Jan 24, 2025
26264f9
Update 3 links to the hierachy of the new-docs site
bernhardkaindl Jan 24, 2025
0499324
docs: Update docs/README.md and Hugo Relearn to 5.23.0 (#6251)
robhoes Jan 27, 2025
3a6a64e
CI: When only Hugo docs change, other workflows do not need to run
bernhardkaindl Jan 24, 2025
ea9372f
Hugo docs: Fix {{site.baseurl}} links to use relative internal links …
bernhardkaindl Jan 24, 2025
38c3eb5
CA-403759: Initialise licensing after no-other-masters check
robhoes Jan 23, 2025
f78df2e
master_connection: remove unreachable case
robhoes Jan 22, 2025
f346848
master_connection: logging once is enough
robhoes Jan 22, 2025
d6e1139
Hugo docs: Fix {{site.baseurl}} links to use relative internal links …
psafont Jan 28, 2025
8a293a0
CA-403759: Initialise licensing after no-other-masters check (#6257)
robhoes Jan 28, 2025
fa6a82c
CA-400272: pool.set_igmp_snooping_enabled: ignore non-managed PIFs
robhoes Jan 28, 2025
03e82b6
CA-400272: pool.set_igmp_snooping_enabled: ignore non-managed PIFs (#…
robhoes Jan 28, 2025
bd3024b
Revert "CP-45016: Clean up the source VM earlier"
Vincent-lau Jan 28, 2025
764ec0d
CA-405502: Change post_detach to post_deactivate
Vincent-lau Jan 28, 2025
08f8647
CI: When only Hugo docs change, other workflows do not need to run (#…
psafont Jan 29, 2025
4ea5d43
Revert VM migration shutdown order change + change post_detach to pos…
robhoes Jan 29, 2025
d73135a
CA-399669: Do not exit with error when IPMI readings aren't available
psafont Jan 27, 2025
2c2ec17
rrdp-dcmi: remove extraneous -I argument from cli calls
psafont Jan 28, 2025
e24a5cc
CA-399669: Detect a reason for IPMI readings being unavailable
psafont Jan 27, 2025
f06041c
Typo. Only throw assertions at Debug time.
kc284 Jan 29, 2025
1463039
xcp-rrdd: Make parsing of cmd's output more robust
psafont Jan 30, 2025
8a6af5e
CA-405593: Normalise API-installed host certificates
psafont Jan 29, 2025
6949dbd
Typo. Only throw assertions at Debug time. (#6262)
kc284 Jan 30, 2025
104efe9
CA-405593: Do not write extraneous data into the host certificate fil…
lindig Jan 31, 2025
c69b19d
Merge remote-tracking branch 'upstream/master' into feature/perf
edwintorok Jan 31, 2025
e39baa6
Merge master into feature/perf and fix conflicts (#6265)
edwintorok Jan 31, 2025
d603928
Merge feature/perf to master (#6229)
edwintorok Jan 31, 2025
6ca87f1
CA-399669: Do not exit with error when IPMI readings aren't available…
psafont Jan 31, 2025
0b47e27
Refactor xapi-storage-script to use modules
Vincent-lau Dec 19, 2024
9be7780
Refactor xapi-storage-script to use modules (#6191)
Vincent-lau Jan 31, 2025
c1a7767
Update Hugo support: Replace menuTitle with linkTitle
bernhardkaindl Jan 31, 2025
293635b
Update Hugo support: hugo.toml: Add unsafe=true, min=0.126.0
bernhardkaindl Jan 31, 2025
58136a2
Hugo docs: Update to upstream Hugo Relearn 7.3.2
bernhardkaindl Jan 31, 2025
1b74853
Update Hugo support: Make doc/README.md to reflect the update
bernhardkaindl Jan 31, 2025
7f64d07
Partially Revert "CI: When only Hugo docs change, other workflows do …
bernhardkaindl Jan 31, 2025
3183abf
Docs update to upstream hugo relearn 7.3.2 (#6267)
robhoes Feb 3, 2025
ca18a52
CA-405628: unmount/detach PVS cache VDI before destroying
robhoes Jan 31, 2025
b81ff9d
CA-405628: unmount/detach PVS cache VDI before destroying (#6266)
robhoes Feb 3, 2025
ecb099b
xenopsd tests: split suite into 3 executables
psafont Jan 22, 2025
1a022d8
CP-53335, topology: do not raise exception when loading invalid dista…
psafont Jan 20, 2025
ad74029
test_topology: reorganise test cases
psafont Jan 22, 2025
a4982af
CP-53335, topology: Allow NUMA to continue when some node are unreach…
psafont Jan 24, 2025
75e4c31
CP-53335, topology: Avoid distances with NaN among NUMA nodes
psafont Jan 24, 2025
fc1d96f
CP-53335, topology: Avoid duplicates in candidate NUMA nodes
psafont Jan 24, 2025
3b08dfa
topology: do not print-debug the host NUMA information
psafont Jan 27, 2025
cba91b8
topology: Use specialised compare for CPUSet
psafont Jan 30, 2025
9badc14
topology: ignore unreachable nodes for upper limit of candidates' cal…
psafont Feb 3, 2025
3234be2
CP-53335, topology: do not raise exception when loading invalid dista…
psafont Feb 3, 2025
7cebcf0
Hugo docs: Fix random typos and simple word repetitions here and there
bernhardkaindl Jan 31, 2025
15475d0
doc, comment: Fix spelling of "ommit" (incorrect) to "omit"
bernhardkaindl Feb 3, 2025
3c2afb9
doc, comment: Fix spelling of ommitted (incorrect) to omitted (#6270)
lindig Feb 4, 2025
e01e895
Hugo docs: Fix minor spelling issues (missing spaces, etc)
bernhardkaindl Feb 3, 2025
e899078
Fix CI: Re-enable running shellcheck even when only docs changed
bernhardkaindl Feb 3, 2025
86e7da9
Fix CI: Re-enable running shellcheck even when only docs changed
bernhardkaindl Feb 3, 2025
a29557e
Hugo docs: Fix random typos and simple word repetitions here and ther…
psafont Feb 4, 2025
bae7526
Hugo docs: Fix a few minor spelling issues (missing spaces, words, et…
psafont Feb 4, 2025
8862cfc
CP-51209: hooks for bpftrace (#6179)
edwintorok Feb 4, 2025
c9ec87b
CP-49141: Mark the DB lock as high priority: try to avoid voluntary T…
edwintorok Nov 13, 2024
bb17702
CP-49140: [prep] database: use separate types, not string everywhere
edwintorok May 2, 2024
2b218d1
CP-49140: [prep]: database: drop unused of_sexp conversions
edwintorok May 2, 2024
c2d99cd
CP-49141: mark the DB lock as high priority (#6180)
edwintorok Feb 4, 2025
a49d761
CP-49140: prepare for database optimizations (#6181)
edwintorok Feb 4, 2025
d0b34ed
Merge branch 'master' into private/mingl/merge_master_to_feature
minglumlu Feb 5, 2025
677996e
Bump up last_known_schema_hash
minglumlu Feb 5, 2025
962abf1
Update datamodel_lifecycle for pool.license_server
minglumlu Feb 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/generate-and-build-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ jobs:
run: |
dotnet test source/XenServerTest `
--disable-build-servers `
-p:DefineConstants=BUILD_FOR_TEST `
--verbosity=normal

- name: Build C# SDK
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Build and test

on:
# When only Hugo docs change, this workflow is not required:
push:
paths-ignore:
- 'doc/**'
- '.github/workflows/hugo.yml'
pull_request:
schedule:
# run daily, this refreshes the cache
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/other.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Build and test (other)

on:
# When only Hugo docs change, this workflow is not required:
push:
paths-ignore:
- 'doc/**'
- '.github/workflows/hugo.yml'
pull_request:
schedule:
# run daily, this refreshes the cache
Expand Down
109 changes: 98 additions & 11 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,104 @@
Quick start guide:
# Quick start guide

- Visit <https://xapi-project.github.io/new-docs/> to view the current documentation.

## Required software

The docs use Hugo and the [Hugo Relearn theme](https://mcshelby.github.io/hugo-theme-relearn),
an enhanced fork of the popular Hugo Learn theme.

### Supported versions of Hugo and the Hugo Relearn theme

Hugo Relearn 7.3.2 is currently used (defined by a git tag in `doc/go.mod`).

- The minimum Hugo version required by the Relearn theme is 0.126.0.
- The current Ubuntu `snap` (which provides 0.142.0) also works.

## Installation

- Install Hugo 0.126 or newer (required by the Hugo Relearn theme)
follow the guidance on <https://gohugo.io/installing>.
You'll need to install Go as well: see <https://go.dev/>
- On Ubuntu, use the `snap` package:
- `sudo snap install hugo` installs the current version
`apt-get install hugo` would install a version that is too old,
(this applies up to Ubuntu 24.04)

- To install Hugo from source, you need a recent `golang-1.2x` compiler:
- On Ubuntu 22.04, this can be done with:

```bash
sudo apt install golang-1.23-go
# Add it to your path, assuming your .local/bin/ is early in your PATH:
ln -s /usr/lib/go-1.23/bin/go ~/.local/bin/go
go version
go install github.com/gohugoio/hugo@v0.127.0
```

## Development

- Visit https://xapi-project.github.io/new-docs/ to view the current documentation.
- Install Hugo; follow the guidance on https://gohugo.io/getting-started/installing.
You'll need Go as well: see https://go.dev/
- On Ubuntu 22.04 and older, use `sudo snap install hugo` to get the needed newer version of `hugo`.
- Run a local server: `hugo server`
- Open a browser at http://127.0.0.1:1313/new-docs/
- Open a browser at <http://127.0.0.1:1313/new-docs/>
- Add content to `doc/content/`:
- Documents are written in Markdown.
- Please wrap lines in paragraphs to make review and diffs easier to read.
- The menu hierarchy comes mostly from the directory structure in `content/`.
- Please wrap lines in paragraphs to make reviews more manageable.
- The menu hierarchy comes mainly from the directory structure in `content/`.
- A file called `_index.md` is needed in a directory to define a new level in the menu.
- To set the page title which is also used for the main menu,
- To set the page title,
[use the front matter](https://gohugo.io/content-management/front-matter/).
- For a page that has images or other stuff included, it is best to create a new directory. Put the contents in a `index.md` file (no `_`) and the related files next to it. See https://gohugo.io/content-management/organization/ for more information.
- Look at https://mcshelby.github.io/hugo-theme-relearn/ for more information about what the Relearn theme offers, including some handy "shortcodes".
- For a page that has images or other stuff included, it is best to create a new directory:
Put the contents in an `index.md` file (no `_`) and the related files next to it.
See <https://gohugo.io/content-management/organization/> for more information.

See <https://mcshelby.github.io/hugo-theme-relearn/> for more information about
the features of the Relearn theme, including handy "shortcodes".

Note: When switching versions, before re-generating the documentation using
`hugo server`, delete the previously generated static site using `rm -r docs/public`.

### Notes for supporting current versions of Hugo and the Relearn theme

Backported fixes to support newer Hugo versions:

- `layouts/partials/header.html`, it fixes:
```js
ERROR deprecated: .Sites.First was deprecated in Hugo v0.127.0 and will be removed in Hugo 0.143.0. Use .Sites.Default instead.
```
- `layouts/partials/menu.html`, it fixes:
```js
ERROR deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0 and will be removed in Hugo 0.143.0. Use hugo.IsMultilingual instead.
```

The fixes for those issues were backported from the Hugo Relearn v7.x.x theme.
When updating to Hugo Relearn 7.x.x, please remove them (if possible).

#### Tips when upgradubg to newer Hugo Relearn versions

Check the release notes of the Hugo Relearn theme for breaking changes:
https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes

These pages might need review when making changes as their content is
generated by layouts/partials/content.html:

- XenAPI Reference: <https://xapi-project.github.io/new-docs/xen-api/classes>
- XenAPI Releases: <https://xapi-project.github.io/new-docs/xen-api/releases>

For a summary of the partials supported by the Hugo Relearn theme, see:
https://mcshelby.github.io/hugo-theme-relearn/configuration/customization/partials

Hint: For upgrading the Hugo Relearn theme, you can use:

```bash
cd doc; hugo mod get -u github.com/McShelby/hugo-theme-relearn@7.4.0
```

#### Summary

Hugo >= 0.126 and the Hugo Relearn >= 7.3.2 are supported to render the docs.

#### References

- Changes with Relearn 6.x:
<https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/6/#6-0-0>
- Breaking changes with Relearn 7.x:
<https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/7/#7-0-0>
2 changes: 1 addition & 1 deletion doc/content/design/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Design Documents"
menuTitle = "Designs"
linkTitle = "Designs"
+++

{{< design_docs_list >}}
2 changes: 1 addition & 1 deletion doc/content/design/cpu-levelling-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The old XS 5.6-style Heterogeneous Pool feature that is based around hardware-le
History
=======

- Original XS 5.6 design: [heterogeneous-pools](../heterogeneous-pools)
- Original XS 5.6 design: [heterogeneous-pools](heterogeneous-pools)
- Changes made in XS 5.6 FP1 for the DR feature (added CPUID checks upon migration)
- XS 6.1: migration checks extended for cross-pool scenario

Expand Down
2 changes: 1 addition & 1 deletion doc/content/design/emulated-pci-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ status: proposed
At present (early March 2015) the datamodel defines a VM as having a "platform" string-string map, in which two keys are interpreted as specifying a PCI device which should be emulated for the VM. Those keys are "device_id" and "revision" (with int values represented as decimal strings).

Limitations:
* Hardcoded defaults are used for the the vendor ID and all other parameters except device_id and revision.
* Hardcoded defaults are used for the vendor ID and all other parameters except device_id and revision.
* Only one emulated PCI device can be specified.

When instructing qemu to emulate PCI devices, qemu accepts twelve parameters for each device.
Expand Down
2 changes: 1 addition & 1 deletion doc/content/design/integrated-gpu-passthrough/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Introduction
------------

Passthrough of discrete GPUs has been
[available since XenServer 6.0]({{site.baseurl}}/xapi/design/gpu-passthrough.html).
[available since XenServer 6.0](../gpu-passthrough.md).
With some extensions, we will also be able to support passthrough of integrated
GPUs.

Expand Down
2 changes: 1 addition & 1 deletion doc/content/design/local-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ We propose to:
this should reduce the number of RPCs across the network.

In a later phase we can move to a completely
[distributed database](../distributed-database).
[distributed database](distributed-database/index).

Replicating the database
------------------------
Expand Down
4 changes: 2 additions & 2 deletions doc/content/design/multiple-cluster-managers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ revision_history:
Introduction
------------

Xapi currently uses a cluster manager called [xhad](../../features/HA/HA.html). Sometimes other software comes with its own built-in way of managing clusters, which would clash with xhad (example: xhad could choose to fence node 'a' while the other system could fence node 'b' resulting in a total failure). To integrate xapi with this other software we have 2 choices:
Xapi currently uses a cluster manager called [xhad](../toolstack/features/HA/index). Sometimes other software comes with its own built-in way of managing clusters, which would clash with xhad (example: xhad could choose to fence node 'a' while the other system could fence node 'b' resulting in a total failure). To integrate xapi with this other software we have 2 choices:

1. modify the other software to take membership information from xapi; or
2. modify xapi to take membership information from this other software.
Expand Down Expand Up @@ -70,4 +70,4 @@ The `xapi.conf` file will have a new field: `cluster-stack-root` which will have

In `Pool.enable_ha` with `cluster_stack="foo"` we will verify that the subdirectory `<cluster-stack-root>/foo` exists. If it does not exist, then the call will fail with `UNKNOWN_CLUSTER_STACK`.

Alternative cluster stacks will need to conform to the exact same interface as [xhad](../../features/HA/HA.html).
Alternative cluster stacks will need to conform to the exact same interface as [xhad](../toolstack/features/HA).
2 changes: 1 addition & 1 deletion doc/content/design/ocfs2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Summary of the impact on the admin

OCFS2 is fundamentally a different type of storage to all existing storage
types supported by xapi. OCFS2 relies upon O2CB, which provides
[Host-level High Availability](../../../features/HA/HA.html). All HA implementations
[Host-level High Availability](../../toolstack/features/HA/index). All HA implementations
(including O2CB and `xhad`) impose restrictions on the server admin to
prevent unnecessary host "fencing" (i.e. crashing). Once we have OCFS2 as
a feature, we will have to live with these restrictions which previously only
Expand Down
2 changes: 1 addition & 1 deletion doc/content/design/patches-in-vdis.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Changes beneath the XenAPI
Summary of the impact on the admin
==================================

- There will nolonger be a size limit on hotfixes imposed by the mechanism
- There will no longer be a size limit on hotfixes imposed by the mechanism
itself.
- There must be enough free space in an SR connected to the host to be able
to apply a patch on that host.
4 changes: 2 additions & 2 deletions doc/content/design/schedule-snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Introduction
* Multiple VMs can be a part of VMSS but a VM cannot be a part of multiple VMSS.
* A VMSS takes VMs snapshot with type [`snapshot`, `checkpoint`, `snapshot_with_quiesce`].
* VMSS takes snapshot of VMs on configured intervals:
* `hourly` -> On everyday, Each hour, Mins [0;15;30;45]
* `daily` -> On everyday, Hour [0 to 23], Mins [0;15;30;45]
* `hourly` -> On every day, Each hour, Mins [0;15;30;45]
* `daily` -> On every day, Hour [0 to 23], Mins [0;15;30;45]
* `weekly` -> Days [`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`], Hour[0 to 23], Mins [0;15;30;45]
* VMSS will have a limit on retaining number of VM snapshots in range [1 to 10].

Expand Down
8 changes: 4 additions & 4 deletions doc/content/design/user-certificates.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ and not impersonating the actual host.
Historically there has not been a supported mechanism to do this, and as a
result users have had to rely on guides written by third parties that show how
to manually replace the xapi-ssl.pem file on a host. This process is
error-prone, and if a mistake is made, can result in an unuseable system.
error-prone, and if a mistake is made, can result in an unusable system.
This design provides a fully supported mechanism to allow replacing the
certificates.

Expand Down Expand Up @@ -200,7 +200,7 @@ should be removed to avoid a build-up of messages.

Additionally, the task may also produce messages for expired server
certificates which must use the name `HOST_SERVER_CERTIFICATE_EXPIRED`.
These kind of message must contain the message "The TLS server certificate has
This kind of message must contain the message "The TLS server certificate has
expired." as well as the expiry date, like the expiring messages.
They also may replace the existing expiring messages in a host.

Expand All @@ -220,7 +220,7 @@ A new class, Certificate, will be added with the following schema:
| ---------- | --------- | ----- |
| uuid | |
| type | CA | Certificate trusted by all hosts
| | Host | Certificate that the host present sto normal clients
| | Host | Certificate that the host presents to normal clients
| name | String | Name, only present for trusted certificates
| host | Ref _host | Host where the certificate is installed
| not_before | DateTime | Date after which the certificate is valid
Expand All @@ -246,7 +246,7 @@ and it will accept the parameter `host-uuid=<uuid>`.
## Recovery mechanism

In the case a certificate is let to expire TLS clients connecting to the host
will refuse establish the connection.
will refuse to establish the connection.
This means that the host is going to be unable to be managed using the xapi
API (Xencenter, or a CVAD control plane)

Expand Down
2 changes: 1 addition & 1 deletion doc/content/squeezed/architecture/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ includes:
together describe a range, within which the domain's actual used memory
should remain.
- Per-domain calibration data which allows us to compute the necessary balloon
target value to achive a particular memory usage value.
target value to achieve a particular memory usage value.

Squeezed is a single-threaded program which receives commands from xenopsd over
a Unix domain socket. When Xenopsd wishes to start a new VM, squeezed will be
Expand Down
2 changes: 1 addition & 1 deletion doc/content/squeezed/squeezer.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
---

{{% notice warning %}}
This was converted to markdown from squeezer.tex. It is not clear how much
This was converted to Markdown from squeezer.tex. It is not clear how much
of this document is still relevant and/or already present in the other docs.
{{% /notice %}}

Expand Down
2 changes: 1 addition & 1 deletion doc/content/toolstack/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: The XAPI Toolstack
menuTitle: The Toolstack
linkTitle: The Toolstack
weight: 10
---

Expand Down
2 changes: 1 addition & 1 deletion doc/content/toolstack/features/DR/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title = "Disaster Recovery"
+++

The [HA](../HA/HA.html) feature will restart VMs after hosts have failed, but what
The [HA](HA) feature will restart VMs after hosts have failed, but what
happens if a whole site (e.g. datacenter) is lost? A disaster recovery
configuration is shown in the following diagram:

Expand Down
Loading
Loading