1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

38426 Commits

Author SHA1 Message Date
Serge Hallyn
c568f819b9 Merge pull request #2791 from stgraber/main
Tweak boot.autostart
2025-12-26 14:46:26 -06:00
Stéphane Graber
f95e2af5b7 incusd/network/physical: Allow parent re-use for bridges
Closes #2792

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-26 15:10:03 -05:00
Stéphane Graber
eee18e103e incusd/instances: Support last-state value for boot.autostart
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-26 13:51:56 -05:00
Stéphane Graber
8d6d705ee4 doc: Update configs
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-26 13:50:48 -05:00
Stéphane Graber
81399c2731 internal/instance: Tweak handling of boot.autostart
Closes #2788

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-26 13:49:10 -05:00
Serge Hallyn
e6944d7eea Merge pull request #2789 from stgraber/main
Add custom OIDC claim to restrict access to specific subnet
2025-12-25 10:41:47 -06:00
Stéphane Graber
44369a0cdd doc/authentication: Mentioned incus.allowed_subnets claim
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-25 00:38:48 -05:00
Stéphane Graber
4d28a1ee5a incusd/auth/oidc: Introduce incus.restricted_subnets
This introduces a new custom OIDC claim (`incus.restricted_subnets`)
which can be set by the IdP to a list of CIDRs that are allowed access
to Incus.

That's useful to restrict access for Incus for some specific users to a
specific set of source subnets (VPNs).

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-24 09:41:02 -05:00
Stéphane Graber
705214e0a4 api: oidc_allowed_subnets
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-24 09:41:01 -05:00
Stéphane Graber
a8aa58696f Merge pull request #2784 from MarcosDaNight/issue/2524/incus-user-skip-reset
incus-user: Don't reset setup if user has access
2025-12-23 12:44:55 -05:00
Marcos Guillermo
eb0b2f5d9b cmd/incus-user: Don't reset setup if user has access
Currently, incus-user might reset a user's setup if the project name
doesn't match the expected format. This change checks if the user
already has a valid certificate and access to at least one project
before attempting a reset.

Fixes #2524

Signed-off-by: Marcos Guillermo <marcos.cosson@ccc.ufcg.edu.br>

cmd/incus-user: Don't reset setup if user has access

Currently, incus-user might reset a user's setup if the project name
doesn't match the expected format. This change checks if the user
already has a valid certificate and access to at least one project
before attempting a reset.

Fixes #2524

Signed-off-by: Marcos Guillermo <marcos.cosson@ccc.ufcg.edu.br>
2025-12-22 16:40:22 -03:00
Stéphane Graber
b728e761d2 Merge pull request #2783 from truenas/se-truenas-setvolumequota-fix
incusd/storage/truenas: Fix SetVolumeQuota issue when growing FS volumes
2025-12-22 09:21:49 -05:00
Stuart Espey
539860ce96 incusd/storage/truenas: fix SetVolumeQuota issue when growing FS volumes
Fixes https://github.com/lxc/incus/issues/2776

When growing an FS volume, the remote volume was resized, but the change
was not visible until the remote volume was re-activated.

Thus the filesystem was only expanded to the visible size, but since the
visible size was still the old size, this would cause a quiet failure.

The first thing to do was to actually check the device size after the
resize to determine if the resize had succeeded before attempting a FS
resize, which should then succeed

The second part of the fix is to simply activate the volume after resizing
it rather than before, which means it can succeed.

Unfortunately, this means we could no longer grow an inUse filesystem, as we
must de-activate in order to re-activate.

To rectify this, `iscsi refresh` support was added to the TrueNAS tool,
and when using version >=0.7.5, the driver can refresh the iscsi bus to
pickup a size change without having to de-activate an inUse volume.

When the `iscsi refresh` command is not available, and the volume is not
in use, the driver will atttempt to de-activate the volume before changing
the size.

Signed-off-by: Stuart Espey <stuart.espey@mactrix.com>
2025-12-22 11:59:22 +00:00
Serge Hallyn
acc419eaaf Merge pull request #2782 from stgraber/main
incusd/network/ovn: Drop now obsolete DNS check
2025-12-21 13:17:21 -06:00
Stéphane Graber
eafa7db765 incusd/network/ovn: Drop now obsolete DNS check
As we now populate PTR records, we can get up to 3 records per LSP.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-21 13:23:47 -05:00
Stéphane Graber
65cb909e18 Merge pull request #2779 from tibeer/doc/openfga_doc_improvement
doc/openfga: Improve required config keys
2025-12-21 01:11:50 -05:00
Tim Beermann
0b0311794c doc/openfga: Improve required config keys
Signed-off-by: Tim Beermann <tibeer@berryit.de>
2025-12-21 06:32:57 +01:00
Stéphane Graber
7e6d27123e Release Incus 6.20
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
v6.20.0
2025-12-19 11:49:10 -05:00
Serge Hallyn
7ce80205e7 Merge pull request #2774 from stgraber/main
Various fixes for Incus 6.20
2025-12-19 09:22:42 -06:00
Stéphane Graber
2fdbdd7a72 tests: Update tests for Linstor limitation
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 08:56:24 -05:00
Stéphane Graber
572dad5f8e incusd/storage/linstor: Disable volume copie with snapshots
The logic currently fails and I believe for good reasons.

It's not safe to mount and rsync data from a volume which may be mounted
elsewhere. Unless snapshots copies can be handled at the Linstor level,
they would need to be redirected to the migration codepath to have the
server currently running the container/VM send the data over.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 07:50:48 -05:00
Stéphane Graber
e6b52d69da doc/openfga: Clarify required config keys
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Suggested-by: Tim Beermann <tibeer@berryit.de>
2025-12-19 06:25:47 -05:00
Stéphane Graber
464b423174 incusd/network/ovn: Set PTR records
Closes #2740

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 06:16:09 -05:00
Stéphane Graber
aa51fa0454 incusd: Move ReverseDNS to util
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 06:03:00 -05:00
Stéphane Graber
d6186d09f0 incusd/api_buckets: Provide fastpath for miniod access
Closes #2726

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 05:13:05 -05:00
Stéphane Graber
5f6dbf60ec incusd/storage: Generate a clean backup.yaml after a backup is generated
Closes #2754

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 04:27:37 -05:00
Stéphane Graber
ec5c347d4c Merge pull request #2736 from Mujib-Ahasan/restrict-agent-feature
Feature: restrict agent features from the guest
2025-12-19 04:19:02 -05:00
Stéphane Graber
0df2fa35d6 doc/network/firewall: Remove warning against IP forward and Docker
Closes #2733

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 04:18:21 -05:00
Stéphane Graber
00ce84eda2 i18n: Update translation templates
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 03:30:49 -05:00
Stéphane Graber
504509a629 incus/file: Improve error messages
Closes #2751

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 03:30:11 -05:00
Stéphane Graber
06ba4a8620 gomod: Update dependencies
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 03:18:27 -05:00
Stéphane Graber
3ec8278106 doc/bpf-tokens: Fix markdown
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 03:14:07 -05:00
Stéphane Graber
94f05dcb0a doc/instances: Cover incus-agent configuration
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 03:14:06 -05:00
Mujib Ahasan
6fc75dc1e3 incus-agent: Add feature checks
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
2025-12-19 03:04:28 -05:00
Mujib Ahasan
2f7b4cb99d incus-agent: Add system configuration support
Closes #2684

Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
2025-12-19 03:01:35 -05:00
Mujib Ahasan
2557ab37bb incus-agent: Add OS config path
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
2025-12-19 02:12:30 -05:00
Stéphane Graber
a9cab98afc incus-agent: Code cleanup
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-19 01:52:27 -05:00
Stéphane Graber
0a4381fa93 Merge pull request #2755 from presztak/incus_join
Implement standalone `incus cluster join`
2025-12-19 01:28:37 -05:00
Piotr Resztak
47a830f228 i18n: Update translation templates
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-12-18 23:24:22 -05:00
Piotr Resztak
d810dd722f incus/cluster: Add 'cluster join' command
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-12-18 23:24:01 -05:00
Piotr Resztak
e60abecc21 incus/admin/init: Prepare code for adding initialized server to cluster
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-12-18 23:23:58 -05:00
Stéphane Graber
2b9d3b28f4 Merge pull request #2771 from baconYao/rewrite-url-test
shared/api: add comprehensive unit tests for URL builder
2025-12-18 15:28:09 -05:00
Stéphane Graber
5986204e67 Merge pull request #2772 from weblate/weblate-incus-cli
Translations update from Hosted Weblate
2025-12-18 15:27:45 -05:00
Américo Monteiro
847fe605bb Translated using Weblate (Portuguese)
Currently translated at 100.0% (1898 of 1898 strings)

Translation: Incus/CLI
Translate-URL: https://hosted.weblate.org/projects/incus/cli/pt/
Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
2025-12-18 20:00:30 +01:00
baconyao
dd034aa3dd shared/api: add comprehensive unit tests for URL builder
Replace Example test with proper unit tests for all URL builder methods.
Focus on testing our business logic rather than standard library behavior.
Fix Target method comment (checks "none" not "default").

Signed-off-by: baconyao <bacon735392@gmail.com>
2025-12-18 13:49:30 -05:00
Stéphane Graber
d101456dc8 Merge pull request #2770 from presztak/fix_qcow_project
Take project into account during qcow2 operation
2025-12-18 09:30:59 -05:00
Stéphane Graber
c04c50e310 Merge pull request #2769 from stgraber/main
Fix storage related issues
2025-12-18 09:29:20 -05:00
Piotr Resztak
d8e3f7b42d incus/storage: Take project into account during qcow2 operation
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-12-18 14:35:11 +01:00
Stéphane Graber
ecc77315ac incusd/storage/lvm: Fix incorrect activation mode
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-18 05:41:13 -05:00
Stéphane Graber
1be6adb874 incusd/storage_volumes: Handle remote volumes in recursion=2
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-18 05:17:15 -05:00