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

32195 Commits

Author SHA1 Message Date
Stéphane Graber
bf1af85bc8 github: Update for new labeler
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 22:10:09 -05:00
Stéphane Graber
c0e460f97c github: Pin OpenFGA to v1.3.7
This is needed to avoid a regression in v1.3.8.

https://github.com/openfga/openfga/issues/1207

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 22:10:08 -05:00
Tycho Andersen
b510238817 Merge pull request #266 from stgraber/main 2023-12-04 08:45:23 -07:00
Stéphane Graber
12cddd458e incusd/auth: Add location support in ObjectFromRequest
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 08:15:52 -05:00
Stéphane Graber
8260b53c71 incusd: Update permission checks for volumes
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 08:15:51 -05:00
Stéphane Graber
e97811d568 incusd: Update permission checks for buckets
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:14 -05:00
Stéphane Graber
f3bf714cbc incusd: Update OpenFGA resources for location
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:13 -05:00
Stéphane Graber
7c70d23662 incusd: Remove duplicate permission check on bucket delete
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:12 -05:00
Stéphane Graber
5dc389b3df incusd: Update for URLToEntityType
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:11 -05:00
Stéphane Graber
f94fa8b3ab incusd/storage: Pass location data
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:10 -05:00
Stéphane Graber
72415f771c incusd/project: Pass location data
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:10 -05:00
Stéphane Graber
0e0b89676e incusd/db/cluster: Add location support to URLToEntityType
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:09 -05:00
Stéphane Graber
12478158ff incusd/auth: Allow variable identifiers
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:08 -05:00
Stéphane Graber
6ff77e47b4 incusd/auth: Make buckets location specific
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:07 -05:00
Stéphane Graber
3583162af5 incusd/auth: Make volumes location specific
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:06 -05:00
Stéphane Graber
f5bc088d3d incusd/auth/openfga: Only sync resources on the leader
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:05 -05:00
Stéphane Graber
8161cb57ce incusd: Use ServerClustered
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 04:17:04 -05:00
Stéphane Graber
c9aded5984 incusd/state: Add new ServerClustered field
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-04 03:41:04 -05:00
Stéphane Graber
3f4efa9ee6 Merge pull request #264 from jobtijhuis/main
Update outdated reference to new command for adding certificate
2023-12-03 12:07:16 -05:00
Job Tijhuis
e7258622e9 doc/authentication: Update reference to command to match split of config trust add and config trust add-certificate
Signed-off-by: Job Tijhuis <jobstijhuis@gmail.com>
2023-12-03 17:43:01 +01:00
Tycho Andersen
6d50a7cf3c Merge pull request #262 from stgraber/metrics 2023-12-02 07:03:38 -07:00
Tycho Andersen
0f9dbde1f5 Merge pull request #261 from stgraber/doc 2023-12-02 07:03:12 -07:00
Tycho Andersen
399a27da0a Merge pull request #260 from stgraber/main 2023-12-02 07:02:48 -07:00
Stéphane Graber
5e54bdd274 lxd-agent: Update to new internal metrics API
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-02 00:34:12 -05:00
Stéphane Graber
ad47767dfa internal/server/instance: Update for new internal metrics API
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-02 00:34:11 -05:00
Stéphane Graber
126e0bdac9 incusd/metrics: Remove maps from internal API
Closes #259

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-02 00:33:13 -05:00
Stéphane Graber
1d8d86770d doc/installing: Move source instructions to tab layout
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-01 23:42:08 -05:00
Stéphane Graber
b134e32b4b doc/installing: Fix typo
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-01 23:15:45 -05:00
Stéphane Graber
46e16df6ed doc/installing: Use tabs for package instructions
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-01 23:12:23 -05:00
Stéphane Graber
f308453aab incusd/apparmor/rsync: Fix in nested containers
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-01 22:53:49 -05:00
Stéphane Graber
c3125011d8 Merge pull request #258 from seia-soto/add-alpine-build-instruction
doc: Add build instruction on AlpineLinux
2023-12-01 21:30:29 -05:00
HoJeong Go
906c95ef44 doc: Add build instruction on AlpineLinux
Signed-off-by: HoJeong Go <seia@outlook.kr>
2023-12-01 20:53:00 -05:00
Stéphane Graber
4343f13695 Merge pull request #247 from monstermunchkin/misc/db-rework-1
Internal DB changes
2023-12-01 20:36:45 -05:00
Stéphane Graber
382ee52431 Merge pull request #254 from juippis/doc-installing-gentoo
doc/installing.md: add installation steps for Gentoo
2023-12-01 15:10:32 -05:00
Joonas Niilola
e8d98fc01f doc/installing.md: add installation steps for Gentoo
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2023-12-01 15:02:01 -05:00
Tycho Andersen
7c692fa778 Merge pull request #257 from stgraber/main 2023-12-01 08:21:39 -07:00
Thomas Hipp
539eb22125 internal/server/db: Remove exec function
This removes the `exec` function in favor of `tx.ExecContext`.

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
2023-12-01 11:47:36 +01:00
Thomas Hipp
bbcee43531 internal/server/db: Unwrap queryScan function
This unwraps the `queryScan` function. It no longer depends on a Cluster
struct but instead takes a pointer to a ClusterTx struct. It also gains
a context parameter.

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
2023-12-01 11:47:36 +01:00
Thomas Hipp
7ed5f3a1ae internal/server/db: Unwrap dbQueryRowScan function
This unwraps the `dbQueryRowScan` function. It no longer depends on a
Cluster struct but instead takes a pointer to a ClusterTx struct. It
also gains a context parameter.

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
2023-12-01 11:47:36 +01:00
Thomas Hipp
6b5d14e2d7 internal/server: Use Retry function
This removes the now obsolete `Cluster.retry` function in favor of
`query.Retry`. This function also gains a context argument.

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
2023-12-01 11:47:35 +01:00
Thomas Hipp
b2f214116c internal/server/db: Remove function doDbScan
This removes the `doDbScan` function in favor of `queryScan`.

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
2023-12-01 11:47:35 +01:00
Joonas Niilola
e27d7d7d8e doc/userns-idmap.md: add a target/label for this file
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2023-12-01 09:00:42 +02:00
Stéphane Graber
89894918ca incusd/auth/openfga: Return correct error
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-01 00:22:15 -05:00
Stéphane Graber
27fb627d96 incusd/auth/openfga: Bump timeouts to 10s
Writing tuples has occasionally exceeded the timeout causing failures.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-12-01 00:04:25 -05:00
Tycho Andersen
f700f9f404 Merge pull request #252 from stgraber/migrate
Add support for migrating from LXD COPR
2023-11-29 15:50:10 -07:00
Tycho Andersen
abb77db5c9 Merge pull request #253 from stgraber/import
Import LXD changes
2023-11-29 15:32:44 -07:00
Max Asnaashari
d416550c1b [lxd-import] test/suites: Add cephfs create_missing test
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
2023-11-29 14:03:37 -05:00
Mark Laing
6d346ca881 [lxd-import] doc/howto: Make pool name consistent in iso tutorial.
Signed-off-by: Mark Laing <mark.laing@canonical.com>
2023-11-29 14:03:36 -05:00
Mark Laing
3b0352cd75 [lxd-import] lxd/storage/drivers: Collect subvolumes via filepath traversal if in nested container.
Signed-off-by: Mark Laing <mark.laing@canonical.com>
2023-11-29 14:03:35 -05:00
Max Asnaashari
221826ee04 [lxd-import] shared/version: Add storage_cephfs_create_missing extension
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
2023-11-29 14:03:34 -05:00