Commit Graph

6466 Commits

Author SHA1 Message Date
Chris Peterson f6a7819ef9 autoinstall: unittests to validate autoinstall schema
Provided autoinstall data is already validated against a specific
schema by the relevant controller, but these schemas themselves
are never validated against a meta schema to guarantee they are
valid JSON schemas. This patch adds unit tests for each controller,
as well as SubiquityServer, to validate their autoinstall schema
against the latest JSON meta schema draft (that is supported in
jsonschema). A particular draft validator can be used instead by
specifying meta schema in the schema definition.
2024-01-25 13:50:22 -08:00
Chris Peterson 20759840b9 controller tests: move setting autoinstall_default
Move the assignment of autoinstall_default to the relevant block
where it's being tested.
2024-01-23 14:10:11 -08:00
Olivier Gayot eae97db849
Merge pull request #1886 from ogayot/probert-double-os-prober
filesystem: double probert timeout when running os-prober
2024-01-18 17:27:14 +01:00
Olivier Gayot 3d914e9e30 filesystem: double probert timeout when running os-prober
We know that running os-prober on some systems is slow, potentially very
slow, especially when multiple removable devices are present.

This results in many bug reports showing "block probing crashed with
TimeoutError".

For now, I suggest we double the probert timeout when os-prober is
involved.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-01-17 14:52:13 +01:00
Robert Krátký 753ce9f701
Merge pull request #1883 from rkratky/FR-6244_docs-update
Misc. docs updates and fixes
2024-01-12 15:41:38 +01:00
Olivier Gayot a16a69d489
Merge pull request #1879 from ogayot/nvme-o-tcp-probert-update
Update probert to get NVMe controllers information and add example file using it
2024-01-11 09:06:12 +01:00
Robert Krátký 562248af27 Fix Sphinx/rST warnings. 2024-01-10 16:17:57 +01:00
Robert Krátký b2552a3d96 Add search-bar Go button. 2024-01-10 16:17:57 +01:00
Robert Krátký f2504fe859 Update feedback button color. 2024-01-10 16:17:57 +01:00
Robert Krátký 36c115b4f4 Fix code-block copybutton default visibility. 2024-01-10 16:17:57 +01:00
Robert Krátký 0a5bdb9280 Update Sphinx extension names. 2024-01-10 16:17:50 +01:00
Olivier Gayot 1b58eaa6c6 snapcraft: bump probert to get NVMe controllers information
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-01-10 10:16:08 +01:00
Chris Peterson e3a0f6d215
Merge pull request #1882 from Chris-Peterson444/link2doc-ai-user-data-FR-5802 2024-01-05 07:35:54 -08:00
Chris Peterson 5350d01715 ai: include link to docs in post-install user data
We write out the autoinstall data to make the install repeatable
but this should also include a reference to the autoinstall
documentation to increase usability.
2024-01-03 16:02:30 -08:00
Olivier Gayot 89c1ea2afe
Merge pull request #1881 from alfonsosanchezbeato/add-missing-dep
debian: add missing dependency for pyroute2
2024-01-02 16:45:58 +01:00
Alfonso Sánchez-Beato 96f3644a0c debian: add missing dependency for pyroute2 2024-01-02 16:24:35 +01:00
Olivier Gayot 3a55a14cc1 examples: add machine-config for NVMe-over-TCP
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-12-13 17:55:41 +01:00
Olivier Gayot ea909d1428
Merge pull request #1878 from ogayot/console-conf-network-crash
network: ensure we pass tasks to asyncio.wait
2023-12-12 10:03:48 +01:00
Olivier Gayot 0b7a4d16af network: ensure we pass tasks to asyncio.wait
In Python < 3.11, when passing a coroutine to asyncio.wait, it would
automatically be scheduled as a task. This isn't the case anymore with
Python 3.11. Now passing coroutines to asyncio.wait fails with:

 TypeError: Passing coroutines is forbidden, use tasks explicitly.

Let's ensure we schedule the coroutines as tasks before passing them on
to asyncio.wait.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-12-08 14:27:00 +01:00
Dan Bungert 93ab4f911c
Merge pull request #1877 from xnox/xnox/noble-packaging
Upgrade to noble, systemd files are now in /usr/lib
2023-11-29 13:14:29 -07:00
Dimitri John Ledkov bdea88c7ae
Upgrade to noble, systemd files are now in /usr/lib 2023-11-24 23:58:36 +00:00
Robert Krátký 69f74047b0
Merge pull request #1876 from rkratky/FR-5900_ui-titles
Unify UI screen titles and minor lang. fixes
2023-11-21 18:30:04 +01:00
Robert Krátký 97409bea6c Typo: Ubuntu Po -> Pro. 2023-11-21 14:06:07 +01:00
Robert Krátký 4e81b0d81d Unify UI screen titles and minor lang. fixes 2023-11-21 14:05:59 +01:00
Olivier Gayot 5c2dc13df6
Merge pull request #1868 from ogayot/kvm-test-profiles
kvm-test: have different profiles for server and desktop
2023-11-17 11:23:32 +01:00
Olivier Gayot afd6fca8b4 kvm-test: allow kvm-test.yaml to add/modify profiles
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-11-12 22:02:20 +01:00
Chris Peterson 7f3c137ba3
Merge pull request #1859 from Chris-Peterson444/update-readme-contribution-requirements
readme: make a contributing section and point to CONTRIBUTING.md
2023-11-09 11:35:41 +02:00
Chris Peterson 9074e966dc readme: make a contributing section and point to CONTRIBUTING.md
Updates the readme to point to the contributing guidelines document.
Include sections about the Ubuntu Code of Conduct, Contributor
License Agreement, where to file bugs, and where to submit
changes.

Signed-off-by: Chris Peterson <chris.peterson@canonical.com>
2023-11-07 16:35:52 +02:00
Olivier Gayot de4e126087 kvm-test: have different profiles for server and desktop
Booting Desktop and server live installer ISOs comes with different
platform requirements. When running kvm-test, we now accept the name of
a profile via the --profile option.

Profiles provide default settings for memory, disk size and extra QEMU
options. For now, two profiles are hard-coded: "server" - which is the
default and "desktop".

For desktop, we use two vCPU, 8 GiB of RAM, a 20 GiB disk and pass the
-device qxl option.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-11-07 14:36:07 +01:00
Dan Bungert 75a44b122c
Merge pull request #1866 from dbungert/fix-heading-links
doc: fix some link headings
2023-11-06 13:41:17 +02:00
Dan Bungert 253ecf0956
Merge pull request #1867 from dbungert/remove-old-documentation-folder
Remove old documentation folder
2023-11-03 17:53:42 +02:00
Dan Bungert 929a3df281 doc: update readme for removal of `documentation` 2023-11-02 18:32:56 +02:00
Dan Bungert 44fcdbcb31 documentation: remove this folder, use doc instead 2023-11-02 18:32:56 +02:00
Dan Bungert 7e07c291a0 doc: fix some link headings
The use of spellexception means we have some links that look like:
intro-to-autoinstall.html#autoinstall-by-way-of-cloud-spellexception-config-spellexception

Also these are already wordlisted, so we can fix by just dropping the
inline spellexception.
2023-11-02 18:23:58 +02:00
Olivier Gayot 70c8a3c41d
Merge pull request #1865 from ogayot/ssh-next-screen
identity: do not mention SSH being the next screen
2023-11-02 16:11:13 +01:00
Olivier Gayot 81c16f5a83 identity: do not mention SSH being the next screen
The identity screen tells the user that SSH can be configured on the
next screen. That said, nowadays, other screens can be presented between
the identity screen and the SSH screen (including the Ubuntu Pro screen).

Reword the message accordingly.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-11-02 15:06:02 +01:00
Michael Hudson-Doyle 5adbc4768d
Merge pull request #1864 from ogayot/fix-wording-test-mirror
mirror: fix wording when mirror testing has not yet started
2023-11-02 19:46:55 +13:00
Olivier Gayot 4b7101fb2a mirror: fix wording when mirror testing has not yet started
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-10-31 11:28:13 +01:00
Dan Bungert 4de285a591
Merge pull request #1863 from rkratky/link-fixes
Docs links fixed
2023-10-27 12:51:20 -06:00
Robert Krátký 2892082a10 Docs links fixed. 2023-10-27 19:31:01 +02:00
Dan Bungert 454c487242
Merge pull request #1862 from rkratky/FR-5768_review-howtos
Review howtos
2023-10-27 10:16:14 -06:00
Robert Krátký e0593a2dfc Review howto language and formatting. 2023-10-27 18:06:59 +02:00
Robert Krátký 071095183b Architecture naming fix. 2023-10-27 16:11:33 +02:00
Olivier Gayot 2fd829b568
Merge pull request #1860 from ogayot/efibootmgr-workaround
snapcraft: update curtin for the efivarfs statfs workaround
2023-10-27 14:35:47 +02:00
Olivier Gayot a36d969745 snapcraft: update curtin for the efivarfs statfs workaround
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-10-27 09:30:23 +02:00
Dan Bungert 16b714eb99
Merge pull request #1857 from icnahom/python3_debian_apt_deps
Added python3-debian in apt-deps.txt
2023-10-26 15:03:18 -06:00
Dan Bungert a52839f8ae
Merge pull request #1858 from rkratky/FR-5770_review-tutorials
Review and fixes of doc tutorials
2023-10-26 10:07:42 -06:00
Robert Krátký 07f404b404 Review and fixes of doc tutorials. 2023-10-26 17:53:31 +02:00
icnahom 87fc8a6111 Added python3-debian in apt-deps.txt 2023-10-26 17:58:28 +03:00
Dan Bungert 0700be2e6f
Merge pull request #1853 from rkratky/FR-5774_review-references
Review reference docs
2023-10-26 08:13:14 -06:00