-
Notifications
You must be signed in to change notification settings - Fork 932
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
Backports (stable-5.21) #14581
base: stable-5.21
Are you sure you want to change the base?
Backports (stable-5.21) #14581
Commits on Dec 4, 2024
-
lxd: Add
MetricsType
field toAPIEndpoint
Signed-off-by: hamistao <[email protected]> (cherry picked from commit 49024c8)
Configuration menu - View commit details
-
Copy full SHA for ca44314 - Browse repository at this point
Copy the full SHA ca44314View commit details -
lxd/metrics: Take endpoint type instead of deriving from prefix
Signed-off-by: hamistao <[email protected]> (cherry picked from commit 9c11555)
Configuration menu - View commit details
-
Copy full SHA for a0d365f - Browse repository at this point
Copy the full SHA a0d365fView commit details -
lxd: Update metrics functions usage
Signed-off-by: hamistao <[email protected]> (cherry picked from commit f461943)
Configuration menu - View commit details
-
Copy full SHA for 597c90d - Browse repository at this point
Copy the full SHA 597c90dView commit details -
shared/entity: Create list of types for the metrics
Signed-off-by: hamistao <[email protected]> (cherry picked from commit 36d9b9e)
Configuration menu - View commit details
-
Copy full SHA for 461946b - Browse repository at this point
Copy the full SHA 461946bView commit details -
lxd: Categorize existing endpoints
Signed-off-by: hamistao <[email protected]> (cherry picked from commit 7195052)
Configuration menu - View commit details
-
Copy full SHA for 8e569fd - Browse repository at this point
Copy the full SHA 8e569fdView commit details -
lxd: Check if every 1.0 endpoint is typed
Signed-off-by: hamistao <[email protected]> (cherry picked from commit 07751bc)
Configuration menu - View commit details
-
Copy full SHA for b2d0066 - Browse repository at this point
Copy the full SHA b2d0066View commit details -
lxd: Update
MetricsCallback
variable nameSigned-off-by: hamistao <[email protected]> (cherry picked from commit db5fdde)
Configuration menu - View commit details
-
Copy full SHA for 195a857 - Browse repository at this point
Copy the full SHA 195a857View commit details -
lxc/completion: Storage volume copy completion fixes
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 8c3d9bb)
Configuration menu - View commit details
-
Copy full SHA for 1b16713 - Browse repository at this point
Copy the full SHA 1b16713View commit details -
lxc/completion: Use string concatenation instead of
Sprintf()
where…… possible Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 5782bdf)
Configuration menu - View commit details
-
Copy full SHA for 187a1b7 - Browse repository at this point
Copy the full SHA 187a1b7View commit details -
lxc/completion: Add go doc comments to completion functions
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit d81ea7d)
Configuration menu - View commit details
-
Copy full SHA for c594559 - Browse repository at this point
Copy the full SHA c594559View commit details -
shared/api: Add pending and fine-grained TLS certificate identity types.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit c819c62)
Configuration menu - View commit details
-
Copy full SHA for 24d1139 - Browse repository at this point
Copy the full SHA 24d1139View commit details -
lxd/identity: Make new client certificates a fine-grained identity type.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 20a01e1)
Configuration menu - View commit details
-
Copy full SHA for 1ca71df - Browse repository at this point
Copy the full SHA 1ca71dfView commit details -
lxd/identity: New client certificate identity type authenticates via …
…TLS. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 5af95c5)
Configuration menu - View commit details
-
Copy full SHA for 768cead - Browse repository at this point
Copy the full SHA 768ceadView commit details -
lxd/db/cluster: Add pending and fine-grained TLS certificate identity…
… types. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit cfc98d2)
Configuration menu - View commit details
-
Copy full SHA for 03c2759 - Browse repository at this point
Copy the full SHA 03c2759View commit details -
lxd/db/cluster: Include new identity types in identity entity type db…
… definition. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 3012b75)
Configuration menu - View commit details
-
Copy full SHA for 4b61e95 - Browse repository at this point
Copy the full SHA 4b61e95View commit details -
lxd/operations: Don't consider writing errors
Errors while sending the response back to the client shouldn't be considered here since the handler was excecuted successfully and the faulty part could be either the server, network or the client. So here we consider this cases as successes for the metrics. Signed-off-by: hamistao <[email protected]> (cherry picked from commit f9fe65a)
Configuration menu - View commit details
-
Copy full SHA for 89be4a7 - Browse repository at this point
Copy the full SHA 89be4a7View commit details -
lxd/response: Don't consider writing errors
Errors while sending the response back to the client shouldn't be considered here since the handler was excecuted successfully and the faulty part could be either the server, network or the client. So here we consider this cases as successes for the metrics. Signed-off-by: hamistao <[email protected]> (cherry picked from commit e5a8fb6)
Configuration menu - View commit details
-
Copy full SHA for 2fcc3e6 - Browse repository at this point
Copy the full SHA 2fcc3e6View commit details -
lxd/metrics: Remove logging from
UseMetricsCallback
Signed-off-by: hamistao <[email protected]> (cherry picked from commit 4ddd5cd)
Configuration menu - View commit details
-
Copy full SHA for 492208c - Browse repository at this point
Copy the full SHA 492208cView commit details -
shared/api: Add API structs for identity creation.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 58106ba)
Configuration menu - View commit details
-
Copy full SHA for 54bf949 - Browse repository at this point
Copy the full SHA 54bf949View commit details -
shared/api: Add field to CertificateAddToken.
This field indicates to the CLI which API to use when adding a remote. If `Identity` is true, then `POST /1.0/auth/identities/tls` will be used. Otherwise, `POST /1.0/certificates` will be used. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 4a9d799)
Configuration menu - View commit details
-
Copy full SHA for bcc1dc2 - Browse repository at this point
Copy the full SHA bcc1dc2View commit details -
lxd: Move CA check into
certificateValidate
method.Whether a new client is being trusted via secret, or if an administrator is adding or updating the certificate directly, the certificate must be signed by the CA if set. Note that this is *not* a security issue, because we validate that client certificates have been signed by the CA when authenticating. This just meant that it was possible for an admin to create a certificate that would be invalid. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit b110809)
Configuration menu - View commit details
-
Copy full SHA for 8423703 - Browse repository at this point
Copy the full SHA 8423703View commit details -
lxd/db/cluster: Add pending TLS identity metadata type and method.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit c19cf4b)
Configuration menu - View commit details
-
Copy full SHA for 54b06d8 - Browse repository at this point
Copy the full SHA 54b06d8View commit details -
lxd/db/cluster: Add method to activate a pending TLS identity.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit dc78faa)
Configuration menu - View commit details
-
Copy full SHA for 403b770 - Browse repository at this point
Copy the full SHA 403b770View commit details -
lxd/db/cluster: Add method to find a pending identity by secret.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit a020acc)
Configuration menu - View commit details
-
Copy full SHA for 1d75e07 - Browse repository at this point
Copy the full SHA 1d75e07View commit details -
lxd: Add factor out common logic for identity notifications.
On updates or deletions each handler is creating a lifecycle event, notify other members to update their identity cache, and update the members own identity cache. This commit factors out the common behaviours so they can be reused. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 04d6a52)
Configuration menu - View commit details
-
Copy full SHA for da5a1d8 - Browse repository at this point
Copy the full SHA da5a1d8View commit details -
lxd: Add TLS identity creation endpoint.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit bf4e757)
Configuration menu - View commit details
-
Copy full SHA for 52a241f - Browse repository at this point
Copy the full SHA 52a241fView commit details -
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit fc982ab)
Configuration menu - View commit details
-
Copy full SHA for b03d4c4 - Browse repository at this point
Copy the full SHA b03d4c4View commit details -
lxd: Allow fine-grained TLS identities to authenticate.
Adds the fine-grained TLS identity type to the list of candidate identity types for client authentication. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 7bf1fab)
Configuration menu - View commit details
-
Copy full SHA for 68a84cc - Browse repository at this point
Copy the full SHA 68a84ccView commit details -
lxd: Allow fine-grained TLS identities list resources in any project.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 4d7c92d)
Configuration menu - View commit details
-
Copy full SHA for 71caa2e - Browse repository at this point
Copy the full SHA 71caa2eView commit details -
lxd/auth/drivers: Delegate to TLS driver only when identity is not fi…
…ne-grained. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit a468877)
Configuration menu - View commit details
-
Copy full SHA for 0f6eec7 - Browse repository at this point
Copy the full SHA 0f6eec7View commit details -
lxd: Omit pending TLS identities when updating the identity cache.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit bdd7aec)
Configuration menu - View commit details
-
Copy full SHA for 3c51217 - Browse repository at this point
Copy the full SHA 3c51217View commit details -
client: Add methods for creating TLS identities.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 7ce5231)
Configuration menu - View commit details
-
Copy full SHA for 95e463f - Browse repository at this point
Copy the full SHA 95e463fView commit details -
lxc/auth: Add identity creation command.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit f482166)
Configuration menu - View commit details
-
Copy full SHA for 8d55fba - Browse repository at this point
Copy the full SHA 8d55fbaView commit details -
test/suites: Test fine-grained TLS identity creation.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit ae83b34)
Configuration menu - View commit details
-
Copy full SHA for 2dc1b02 - Browse repository at this point
Copy the full SHA 2dc1b02View commit details -
test/suites: Test identity info for TLS identities.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 707d78e)
Configuration menu - View commit details
-
Copy full SHA for 36ab2b6 - Browse repository at this point
Copy the full SHA 36ab2b6View commit details -
test/suites: Improve coverage on identity deletion.
Check that TLS identities can delete themselves. Also check that identities cannot delete one another. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit fc3d684)
Configuration menu - View commit details
-
Copy full SHA for ba4fc7f - Browse repository at this point
Copy the full SHA ba4fc7fView commit details -
doc/howto: Switch projects<->users in confinement docs.
Projects are not confined to users. Users are confined to projects. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 1df7b41)
Configuration menu - View commit details
-
Copy full SHA for cd9e78f - Browse repository at this point
Copy the full SHA cd9e78fView commit details -
doc: Switch projects<->users in confinement docs.
Projects are not confined to users. Users are confined to projects. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit bc588bc)
Configuration menu - View commit details
-
Copy full SHA for f1c693c - Browse repository at this point
Copy the full SHA f1c693cView commit details -
doc/explanation: Remove authentication methods section in project docs.
There are no authentication methods for projects. This makes the multi-user LXD daemon section more prominent and linkable. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 1e584bb)
Configuration menu - View commit details
-
Copy full SHA for bf681ad - Browse repository at this point
Copy the full SHA bf681adView commit details -
doc/explanation: Add fine-grained TLS identities to authorization page.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 3938a07)
Configuration menu - View commit details
-
Copy full SHA for 883c60d - Browse repository at this point
Copy the full SHA 883c60dView commit details -
doc/howto: Include fine-grained TLS identities in authentication tuto…
…rial. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 55a3ea5)
Configuration menu - View commit details
-
Copy full SHA for afbcc67 - Browse repository at this point
Copy the full SHA afbcc67View commit details -
test/suites/clustering: add clustering_update_cert_token test
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 2e764a0)
Configuration menu - View commit details
-
Copy full SHA for e8b0891 - Browse repository at this point
Copy the full SHA e8b0891View commit details -
test/main: enable clustering_update_cert_token test
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit ec0b221)
Configuration menu - View commit details
-
Copy full SHA for b909606 - Browse repository at this point
Copy the full SHA b909606View commit details -
github: fix indent of commits job
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit b571e6e)
Configuration menu - View commit details
-
Copy full SHA for 0a548cf - Browse repository at this point
Copy the full SHA 0a548cfView commit details -
Makefile: opportunistically run yamllint against GH workflows
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit cabae36)
Configuration menu - View commit details
-
Copy full SHA for 71e2f68 - Browse repository at this point
Copy the full SHA 71e2f68View commit details -
lxc/completion: Only complete custom storage volumes for `lxc storage…
… volume copy` Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit d077910)
Configuration menu - View commit details
-
Copy full SHA for 8705aed - Browse repository at this point
Copy the full SHA 8705aedView commit details -
lxc/completion: Fix completions for
lxc storage volume move
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit f86417b)
Configuration menu - View commit details
-
Copy full SHA for 2be0a2d - Browse repository at this point
Copy the full SHA 2be0a2dView commit details -
lxd/cluster/notify: Use in-memory config for cluster offline threshold
Unfortunately the notifier is called during database startup before the global config has been loaded, so we need to fall back on loading the offline threshold from the database. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 3982c0d)
Configuration menu - View commit details
-
Copy full SHA for 5e147f1 - Browse repository at this point
Copy the full SHA 5e147f1View commit details -
lxd/cluster/notify: Use state.ServerClustered
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 1873780)
Configuration menu - View commit details
-
Copy full SHA for 46479ad - Browse repository at this point
Copy the full SHA 46479adView commit details -
lxd/cluster/notify: Take optional members to notify
Avoid a query when a caller already has NodeInfo. This also makes possible using NotifyAll for a subset of cluster members. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit b71357b)
Configuration menu - View commit details
-
Copy full SHA for 7fa0298 - Browse repository at this point
Copy the full SHA 7fa0298View commit details -
lxd/cluster/notify: Add NodeInfo to Notifier hook
This allows a hook to get some basic info about the cluster member that it's reaching out to without needing to make an explicit `GetServer` call. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 691b047)
Configuration menu - View commit details
-
Copy full SHA for f5c10cf - Browse repository at this point
Copy the full SHA f5c10cfView commit details -
lxd/cluster/notify: Update notifier tests
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit b6b6283)
Configuration menu - View commit details
-
Copy full SHA for 8cd0516 - Browse repository at this point
Copy the full SHA 8cd0516View commit details -
lxd/state/test: Load global config from DB
This correctly initializes the config so that we can grab cluster.offline_threshold from it during the notify tests. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit a621d66)
Configuration menu - View commit details
-
Copy full SHA for c72266c - Browse repository at this point
Copy the full SHA c72266cView commit details -
lxd/cluster: Update notifier usage
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit af850cc)
Configuration menu - View commit details
-
Copy full SHA for 9d64f1b - Browse repository at this point
Copy the full SHA 9d64f1bView commit details -
lxd/network/acl: Update notifier usage
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 03f890a)
Configuration menu - View commit details
-
Copy full SHA for 996932b - Browse repository at this point
Copy the full SHA 996932bView commit details -
lxd/network/zone: Update notifier usage
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 6e1bcb7)
Configuration menu - View commit details
-
Copy full SHA for 8f8f655 - Browse repository at this point
Copy the full SHA 8f8f655View commit details -
lxd/network: Update Notifier usage
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 6a1165a)
Configuration menu - View commit details
-
Copy full SHA for 2a50e79 - Browse repository at this point
Copy the full SHA 2a50e79View commit details -
No longer requires making an http request to the target member to get its name. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 1b59823)
Configuration menu - View commit details
-
Copy full SHA for 8389608 - Browse repository at this point
Copy the full SHA 8389608View commit details -
No longer require making an http request to the target member to get its name. I also removed the GetServer during storage pool deletion; it's unclear to me what the purpose of this extra request was; it was introduced in fe0d87f but that commit doesn't provide any context. I'll restore the request if I run into storage-related CI failures. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 71edd8c)
Configuration menu - View commit details
-
Copy full SHA for ce44ea2 - Browse repository at this point
Copy the full SHA ce44ea2View commit details -
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 2555bee)
Configuration menu - View commit details
-
Copy full SHA for 4661746 - Browse repository at this point
Copy the full SHA 4661746View commit details -
lxd/cluster: Split LocalSysInfo from MemberState
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 71e344c)
Configuration menu - View commit details
-
Copy full SHA for 3cc7d7a - Browse repository at this point
Copy the full SHA 3cc7d7aView commit details -
lxd/cluster: Remove unused memberName parameter
memberName implies that this function will work for any cluster member, not just the local one Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 6e1a4f4)
Configuration menu - View commit details
-
Copy full SHA for dca0b5f - Browse repository at this point
Copy the full SHA dca0b5fView commit details -
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 4860bed)
Configuration menu - View commit details
-
Copy full SHA for aff44ee - Browse repository at this point
Copy the full SHA aff44eeView commit details -
shared/api: Add LogicalCPUs to ClusterMemberSysInfo
The instance options docs (doc/reference/instance_options.md) play a little fast and loose with terminology: for integer values of limits.cpu it only refers to "CPU(s)" without specifying vCPU, thread or core. LogicalCPUs from the golang std NumCPU is probably the best fit here. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 8c749a2)
Configuration menu - View commit details
-
Copy full SHA for 0f95df2 - Browse repository at this point
Copy the full SHA 0f95df2View commit details -
lxd/cluster: Populate LogicalCPUs
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit d62e3b5)
Configuration menu - View commit details
-
Copy full SHA for 78d31ae - Browse repository at this point
Copy the full SHA 78d31aeView commit details -
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 4040dd8)
Configuration menu - View commit details
-
Copy full SHA for caed4bd - Browse repository at this point
Copy the full SHA caed4bdView commit details -
lxd/cluster: Implement ClusterState
This is currently unused but will be utilized for resource reservations Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 4b1042f)
Configuration menu - View commit details
-
Copy full SHA for 5b0e046 - Browse repository at this point
Copy the full SHA 5b0e046View commit details -
lxd/cluster/notify: Mock member state endpoint
And set the test state's server name when clustered Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 458a730)
Configuration menu - View commit details
-
Copy full SHA for 5f03a52 - Browse repository at this point
Copy the full SHA 5f03a52View commit details -
lxd/cluster: Test ClusterState
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit f13e377)
Configuration menu - View commit details
-
Copy full SHA for c0a7808 - Browse repository at this point
Copy the full SHA c0a7808View commit details -
lxd/cluster: Perform cluster member update on updated cluster member
This will allow avoiding a GET /1.0/cluster/members/{name}/state when validating resource reservations, and may be useful for validating future config keys. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit b3ce3ed)
Configuration menu - View commit details
-
Copy full SHA for 05a5a74 - Browse repository at this point
Copy the full SHA 05a5a74View commit details -
config.Dump() creates and passes back a new map, so there's no need to do it a second time. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 23bd4f3)
Configuration menu - View commit details
-
Copy full SHA for 6c79f14 - Browse repository at this point
Copy the full SHA 6c79f14View commit details -
lxd/db/node: Fix linter errors
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit a608e3b)
Configuration menu - View commit details
-
Copy full SHA for f0ba0ba - Browse repository at this point
Copy the full SHA f0ba0baView commit details -
api: Add
state_logical_cpus
extensionCovers changes introduced with canonical#14294 Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit fead980)
Configuration menu - View commit details
-
Copy full SHA for a27c65b - Browse repository at this point
Copy the full SHA a27c65bView commit details -
lxd/db/cluster/profiles: Support device cache in ToAPI
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit edcea63a7604786a9fe5396022f8a5b9cd02560f) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit ea10a89)
Configuration menu - View commit details
-
Copy full SHA for 00d18eb - Browse repository at this point
Copy the full SHA 00d18ebView commit details -
lxd: Pass profile device cache to ToAPI calls when possible
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit db2a8cd1d136dc2463775b4066245576b7001fe7) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit 16a0ca9)
Configuration menu - View commit details
-
Copy full SHA for c2c5deb - Browse repository at this point
Copy the full SHA c2c5debView commit details -
lxd/db/cluster/instances: Support device cache to ToAPI
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit 3c886fc6b354f4f07a2b8bba1f798092c7084704) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit 5a2c9c7)
Configuration menu - View commit details
-
Copy full SHA for 1ffd3bb - Browse repository at this point
Copy the full SHA 1ffd3bbView commit details -
lxd/project/limits: Pass instance device cache to ToAPI
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit 5d46fd8efdaf27bba1033e08ddc52b07dac8f964) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit bb2fe4b)
Configuration menu - View commit details
-
Copy full SHA for 771397d - Browse repository at this point
Copy the full SHA 771397dView commit details -
lxd/db/cluster/instances: Allow passing profile devices to instance T…
…oAPI Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit 38d7c3087c235d59bf194333c766c975b48c6b3c) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit 9bffd16)
Configuration menu - View commit details
-
Copy full SHA for efc4f83 - Browse repository at this point
Copy the full SHA efc4f83View commit details -
lxd/project/limits: Pass profile device cache to instance ToAPI
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit caa997d50cb785d3c0489be59e46dd67b80b3880) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit 65a4067)
Configuration menu - View commit details
-
Copy full SHA for 07c2ffa - Browse repository at this point
Copy the full SHA 07c2ffaView commit details -
lxd/db/cluster/profiles: Support config caching
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit 06b59879623c03cf3e7c3b7cbd23df5b3ec82467) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit 3bbf11c)
Configuration menu - View commit details
-
Copy full SHA for 727e640 - Browse repository at this point
Copy the full SHA 727e640View commit details -
lxd: Update calls to profile ToAPI
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit 8f46deddeeadb68218d942cd8521259e278b241a) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit 2be1d52)
Configuration menu - View commit details
-
Copy full SHA for 7d43474 - Browse repository at this point
Copy the full SHA 7d43474View commit details -
lxd/db/cluster/profiles: Fix import shadowing
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit 8261a78dd1134a7a41e704361b271b328c05388a) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit 740a7f9)
Configuration menu - View commit details
-
Copy full SHA for 8b35b12 - Browse repository at this point
Copy the full SHA 8b35b12View commit details -
api: Add
vm_limits_cpu_pin_strategy
API extension.Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 518148c)
Configuration menu - View commit details
-
Copy full SHA for cef7b84 - Browse repository at this point
Copy the full SHA cef7b84View commit details -
lxd/instance: Add
limits.cpu.pin_strategy
config key for virtual ma……chines Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 80da1ef)
Configuration menu - View commit details
-
Copy full SHA for 659daaf - Browse repository at this point
Copy the full SHA 659daafView commit details -
metadata: Run make update-metadata
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 487d16a)
Configuration menu - View commit details
-
Copy full SHA for e2f8bfa - Browse repository at this point
Copy the full SHA e2f8bfaView commit details -
lxd/instance: Add input validation for
limits.cpu.pin_strategy
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 846cec4)
Configuration menu - View commit details
-
Copy full SHA for abd4b9e - Browse repository at this point
Copy the full SHA abd4b9eView commit details -
lxd/devices: Disable VM CPU auto pinning by default
Unless `limits.cpu.pin_strategy` is set to auto, VM CPU auto pinning is disabled Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 411f0c3)
Configuration menu - View commit details
-
Copy full SHA for aaeb9ad - Browse repository at this point
Copy the full SHA aaeb9adView commit details -
doc: Update CPU pinning documentation for VMs
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 963006d)
Configuration menu - View commit details
-
Copy full SHA for d555069 - Browse repository at this point
Copy the full SHA d555069View commit details -
lxd: Consider project's restricted cluster groups during instance eva…
…cuation Signed-off-by: Mark Bolton <[email protected]> (cherry picked from commit 838ee14)
Configuration menu - View commit details
-
Copy full SHA for 948a8f2 - Browse repository at this point
Copy the full SHA 948a8f2View commit details -
lxd/db: Implement ToAPI for InstanceArgs
"ToAPI" is also used for the database types (db.Instance), and in that context it implies trips to the database rather than just shuffling fields around. Happy to rename as needed. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit b7d1b5d)
Configuration menu - View commit details
-
Copy full SHA for 8235557 - Browse repository at this point
Copy the full SHA 8235557View commit details -
lxd/instances: Remove old retry logic
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit 7c60b4a520c7554bb4a8103783419ed144e511e1) Signed-off-by: hamistao <[email protected]> License: Apache-2.0 (cherry picked from commit 4139ade)
Configuration menu - View commit details
-
Copy full SHA for 49e63dc - Browse repository at this point
Copy the full SHA 49e63dcView commit details -
lxd/instance/drivers/qemu: Properly plumb I/O limits
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: https://webdock.io (cherry picked from commit 045926b2d9099b18c4d552601bd4ae4fc9b1e8be) Signed-off-by: Thomas Parrott <[email protected]> License: Apache-2.0 (cherry picked from commit 080df7c)
Configuration menu - View commit details
-
Copy full SHA for 97231a0 - Browse repository at this point
Copy the full SHA 97231a0View commit details -
lxd/cgroup: Add named results to
ParseCPU
and remove unnecesary typ……e casting to `int64` Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 7eee004)
Configuration menu - View commit details
-
Copy full SHA for 14f170a - Browse repository at this point
Copy the full SHA 14f170aView commit details -
lxd/cgroup: Refactor
srcType
parameter inTaskSchedulerTrigger
to…… use `instancetype.Type` instead of `string` Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 6027e2a)
Configuration menu - View commit details
-
Copy full SHA for f22bbeb - Browse repository at this point
Copy the full SHA f22bbebView commit details -
lxd/shared/validate: Add named results to
ParseNetworkVLANRange
and…… `ParseUint32Range` Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 62cfe92)
Configuration menu - View commit details
-
Copy full SHA for b622c06 - Browse repository at this point
Copy the full SHA b622c06View commit details -
tests: Add tests for
limits.cpu.pin_strategy
andlimits.cpu
confi……g and profile settings Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit f6dc890)
Configuration menu - View commit details
-
Copy full SHA for 3c9a91d - Browse repository at this point
Copy the full SHA 3c9a91dView commit details -
github: update apt definition in setup-microceph
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 0f397ed)
Configuration menu - View commit details
-
Copy full SHA for 1504c70 - Browse repository at this point
Copy the full SHA 1504c70View commit details -
github: tune docker firewall disablement to work on 20.04
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 4cc768e)
Configuration menu - View commit details
-
Copy full SHA for 666fcee - Browse repository at this point
Copy the full SHA 666fceeView commit details -
github: drop extraneous space between commit hash and version comment…
… in commit job Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 79d0ba5)
Configuration menu - View commit details
-
Copy full SHA for 65d1531 - Browse repository at this point
Copy the full SHA 65d1531View commit details -
github: cope with no installed snaps in reclaim-disk-space action
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 2b7f7ac)
Configuration menu - View commit details
-
Copy full SHA for 7c3dcb9 - Browse repository at this point
Copy the full SHA 7c3dcb9View commit details -
github: free up more space in reclaim-disk-space action
This is taken from: canonical/lxd-ci@3df899b Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit cf05f4c)
Configuration menu - View commit details
-
Copy full SHA for d54b0ca - Browse repository at this point
Copy the full SHA d54b0caView commit details -
lxd: Use tx.AddNodeToClusterGroup consistently
Currently we use the db cluster CreateNodeClusterGroup func in clusterGroupsPost and clusterGroupPatch when adding nodes to a cluster group. To make this more consistent with other cluster group API handlers, we now use tx.AddNodeToClusterGroup instead. Signed-off-by: Mark Bolton <[email protected]> (cherry picked from commit 43653a2)
Configuration menu - View commit details
-
Copy full SHA for 1041fad - Browse repository at this point
Copy the full SHA 1041fadView commit details -
lxd/db/cluster: Remove unneeded generated DB code
As we now use tx.AddNodeToClusterGroup consistently when adding nodes to a cluster group, we may remove some of the generated db code for the nodes_cluster_groups table. Signed-off-by: Mark Bolton <[email protected]> (cherry picked from commit 2fd10fc)
Configuration menu - View commit details
-
Copy full SHA for 95f4f6f - Browse repository at this point
Copy the full SHA 95f4f6fView commit details -
test/suites: Add testing for cluster group init with multiple nodes
Signed-off-by: Mark Bolton <[email protected]> (cherry picked from commit 51d51a1)
Configuration menu - View commit details
-
Copy full SHA for 09149a9 - Browse repository at this point
Copy the full SHA 09149a9View commit details -
lxd/project/limits: Use InstanceList for queries
This at least gets us from `O(n)` queries to `O(1)` (where n is instances). InstanceList does a lot of unnecessary faffing around with profiles that ends up getting thrown out (looks like about 4 queries whose results end up being dropped). Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 6d46fd6)
Configuration menu - View commit details
-
Copy full SHA for f68a434 - Browse repository at this point
Copy the full SHA f68a434View commit details -
lxd/cluster: Replace deprecated Recover with ReconfigureMembership
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 41ffd77)
Configuration menu - View commit details
-
Copy full SHA for c0ce669 - Browse repository at this point
Copy the full SHA c0ce669View commit details -
lxd/state: Add LeaderInfo type and function to state.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit be1ec61)
Configuration menu - View commit details
-
Copy full SHA for d9387df - Browse repository at this point
Copy the full SHA d9387dfView commit details -
lxd: Set LeaderInfo function in
(*Daemon).State
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 2220cde)
Configuration menu - View commit details
-
Copy full SHA for 687dc2e - Browse repository at this point
Copy the full SHA 687dc2eView commit details -
lxd: Update ACME handlers to use
(*State).LeaderInfo
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 7fe7737)
Configuration menu - View commit details
-
Copy full SHA for e5c1935 - Browse repository at this point
Copy the full SHA e5c1935View commit details -
lxd: Update cluster handlers to use
(*State).LeaderInfo
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit afbd115)
Configuration menu - View commit details
-
Copy full SHA for d4d515e - Browse repository at this point
Copy the full SHA d4d515eView commit details -
lxd: Update image sync task to use
(*State).LeaderInfo
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 15591e9)
Configuration menu - View commit details
-
Copy full SHA for 73c9923 - Browse repository at this point
Copy the full SHA 73c9923View commit details -
lxd: Update instance handlers to use
(*State).LeaderInfo
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 458e458)
Configuration menu - View commit details
-
Copy full SHA for 26f9985 - Browse repository at this point
Copy the full SHA 26f9985View commit details -
lxd: Update operation prune task to use
(*State).LeaderInfo
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 5093829)
Configuration menu - View commit details
-
Copy full SHA for 897d1f7 - Browse repository at this point
Copy the full SHA 897d1f7View commit details -
lxd: Update database patch to use
(*State).LeaderInfo
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 07a7c8f)
Configuration menu - View commit details
-
Copy full SHA for e436cc4 - Browse repository at this point
Copy the full SHA e436cc4View commit details -
lxd/apparmor: Update with new lxd binary location in sbin
Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 656bb30)
Configuration menu - View commit details
-
Copy full SHA for cf16d20 - Browse repository at this point
Copy the full SHA cf16d20View commit details -
lxc/launch: Start console if instance start was performed on server
Fixes canonical#14339 Fixes a regression introduced in canonical#13695 Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 18f4c42)
Configuration menu - View commit details
-
Copy full SHA for 9ef29f9 - Browse repository at this point
Copy the full SHA 9ef29f9View commit details -
Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit c48c20a)
Configuration menu - View commit details
-
Copy full SHA for dade069 - Browse repository at this point
Copy the full SHA dade069View commit details -
lxd/db/cluster: Differentiate errors returned by PendingTLSMetadata.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit b2dd68e)
Configuration menu - View commit details
-
Copy full SHA for 56d9333 - Browse repository at this point
Copy the full SHA 56d9333View commit details -
lxd: Remove expired pending TLS identities in token prune task.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit de48dc3)
Configuration menu - View commit details
-
Copy full SHA for fb8e5c8 - Browse repository at this point
Copy the full SHA fb8e5c8View commit details -
lxd: Change log level to 'warn' for the token prune task.
Also change "id" to "operation" in the log context. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 11bc5a3)
Configuration menu - View commit details
-
Copy full SHA for 058f4e1 - Browse repository at this point
Copy the full SHA 058f4e1View commit details -
lxd: Opportunistically remove invalid/expired pending TLS identities.
On `POST /1.0/certificates` with a trust_token, the CertificateAddToken operation associated with the token is cancelled regardless of where it is invalid/expired. This commit performs the analogous task for pending TLS identities and removes them if invalid when the token is received. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit effd497)
Configuration menu - View commit details
-
Copy full SHA for 6390316 - Browse repository at this point
Copy the full SHA 6390316View commit details -
lxd/sys/os: add InUbuntuCore() helper
Signed-off-by: Alexander Mikhalitsyn <[email protected]> (cherry picked from commit d9be050)
Configuration menu - View commit details
-
Copy full SHA for 96b75df - Browse repository at this point
Copy the full SHA 96b75dfView commit details -
lxd/device/cdi: make it work in Ubuntu Core environment
In Ubuntu Core environment NVIDIA drivers are distributed as a snap components. So, we can't use hostfs as a source of drivers in this case. Instead, we need to get it through gpu-2404 content interface. All the necessary changes were landed into lxd-pkg-snap while back in a scope of external QEMU snap support [1]. canonical/lxd-pkg-snap#505 [1] Usage example: lxc init ubuntu:noble c1 lxc config device add c1 gpu gpu gputype=physical id=nvidia.com/gpu=0 lxc exec c1 -- nvidia-smi Signed-off-by: Alexander Mikhalitsyn <[email protected]> (cherry picked from commit d14fd33)
Configuration menu - View commit details
-
Copy full SHA for 128bb33 - Browse repository at this point
Copy the full SHA 128bb33View commit details -
lxd/instance/instance_utils: forbid nvidia.runtime with Ubuntu Core
Signed-off-by: Alexander Mikhalitsyn <[email protected]> (cherry picked from commit e322dff)
Configuration menu - View commit details
-
Copy full SHA for 71e6e98 - Browse repository at this point
Copy the full SHA 71e6e98View commit details -
lxd/device/gpu_physical: forbid CDI to be used with nvidia.runtime=true
Signed-off-by: Alexander Mikhalitsyn <[email protected]> (cherry picked from commit a267ed1)
Configuration menu - View commit details
-
Copy full SHA for 665e30a - Browse repository at this point
Copy the full SHA 665e30aView commit details -
lxd/device/cdi/spec: check that pc-kernel snap is connected properly
Signed-off-by: Alexander Mikhalitsyn <[email protected]> (cherry picked from commit 19f1c10)
Configuration menu - View commit details
-
Copy full SHA for 51adc75 - Browse repository at this point
Copy the full SHA 51adc75View commit details -
lxd/network: Consider volatile IP in ovnNetworkExternalSubnets
Since we would like to prevent the use of one OVN network's volatile IP on another OVN network, we should consider this when retrieving external subnet information during validation. Signed-off-by: Mark Bolton <[email protected]> (cherry picked from commit 4d2e505)
Configuration menu - View commit details
-
Copy full SHA for 3e27622 - Browse repository at this point
Copy the full SHA 3e27622View commit details -
lxd/device/cdi: Fix the case of adding a CDI device with the 'all' id…
…entifier Adding a GPU with `nvidia.com/gpu=all` was actually not adding any physical card devices. This should fix it. With 'all', we should make the difference between CDI device index that are integer and the ones represented by a UUID that could contain the same cards. For example, these two devices are identical (target the same resources) though not named with the same convention: ``` [ { "name": "0", "containerEdits": { "deviceNodes": [ { "path": "/dev/nvidia0", "hook", "create-symlinks", "--link", "../card1::/var/lib/snapd/hostfs/dev/dri/by-path/pci-0000:01:00.0-card", "hook", "create-symlinks", "--link", "../card1::/var/lib/snapd/hostfs/dev/dri/by-path/pci-0000:01:00.0-card", "--link", "../renderD128::/var/lib/snapd/hostfs/dev/dri/by-path/pci-0000:01:00.0-render" ] }, { "hookName": "createContainer", "path": "/snap/lxd/30921/bin/nvidia-ctk", "args": [ "nvidia-ctk", "hook", "chmod", "--mode", "755", "--path", "/dev/dri" ] } ] } }, { "name": "GPU-8da9a1ee-3495-a369-a73a-b9d8ffbc1220", "containerEdits": { "deviceNodes": [ { "path": "/dev/nvidia0", "hostPath": "/var/lib/snapd/hostfs/dev/nvidia0" }, { "path": "/dev/dri/card1", "hostPath": "/var/lib/snapd/hostfs/dev/dri/card1" }, { "path": "/dev/dri/renderD128", "hostPath": "/var/lib/snapd/hostfs/dev/dri/renderD128" } ], "hooks": [ { "hookName": "createContainer", "path": "/snap/lxd/30921/bin/nvidia-ctk", "args": [ "nvidia-ctk", "hook", "create-symlinks", "--link", "../card1::/var/lib/snapd/hostfs/dev/dri/by-path/pci-0000:01:00.0-card", "--link", "../renderD128::/var/lib/snapd/hostfs/dev/dri/by-path/pci-0000:01:00.0-render" ] }, { "hookName": "createContainer", "path": "/snap/lxd/30921/bin/nvidia-ctk", "args": [ "nvidia-ctk", "hook", "chmod", "--mode", "755", "--path", "/dev/dri" ] } ] } } ] ``` Signed-off-by: Gabriel Mougard <[email protected]> (cherry picked from commit 3c8ae63)
Configuration menu - View commit details
-
Copy full SHA for b0c8365 - Browse repository at this point
Copy the full SHA b0c8365View commit details -
lxc/completion: Rework instance config key completion functions
This commit adds `cmpInstanceAllKeys()` to provide all possible instance config keys for `lxc profile set <profile>` completions. Function names and go doc comments have also been reworded for clarity. Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit e36d363)
Configuration menu - View commit details
-
Copy full SHA for 66b9664 - Browse repository at this point
Copy the full SHA 66b9664View commit details -
lxc: Handle interupts properly to clean spice socket and avoid accumu…
…lation Signed-off-by: Gabriel Mougard <[email protected]> (cherry picked from commit a2324dc)
Configuration menu - View commit details
-
Copy full SHA for 053ab3b - Browse repository at this point
Copy the full SHA 053ab3bView commit details -
lxd: Deduplicate image file deletion
Signed-off-by: Mark Bolton <[email protected]> (cherry picked from commit 669fc6f)
Configuration menu - View commit details
-
Copy full SHA for 1b9f8d4 - Browse repository at this point
Copy the full SHA 1b9f8d4View commit details -
lxd: Add internal testing handler to trigger token prune task.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit a8f95c5)
Configuration menu - View commit details
-
Copy full SHA for 8bc7dd6 - Browse repository at this point
Copy the full SHA 8bc7dd6View commit details -
test/suites: Test that expired pending identities are removed when to…
…ken is used. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit efb7028)
Configuration menu - View commit details
-
Copy full SHA for 0f92ac6 - Browse repository at this point
Copy the full SHA 0f92ac6View commit details -
test/suites: Test the token pruning task removes expired pending TLS …
…identities. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit f20f62d)
Configuration menu - View commit details
-
Copy full SHA for e1c3a98 - Browse repository at this point
Copy the full SHA e1c3a98View commit details -
test/suites: Test token prune task for certificate add token operations.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 86b65fe)
Configuration menu - View commit details
-
Copy full SHA for 175637a - Browse repository at this point
Copy the full SHA 175637aView commit details -
Consolidate this to a function rather than sprinkling const "global" all over the place. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 2878c2a)
Configuration menu - View commit details
-
Copy full SHA for af89760 - Browse repository at this point
Copy the full SHA af89760View commit details -
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit a586c1f)
Configuration menu - View commit details
-
Copy full SHA for d34d97b - Browse repository at this point
Copy the full SHA d34d97bView commit details -
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 3f49b3a)
Configuration menu - View commit details
-
Copy full SHA for a083efb - Browse repository at this point
Copy the full SHA a083efbView commit details -
lxd/cluster/gateway_test: Use DqliteDir
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit a4b9cfe)
Configuration menu - View commit details
-
Copy full SHA for 35cd650 - Browse repository at this point
Copy the full SHA 35cd650View commit details -
lxd/cluster/recover: Use DqliteDir
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 4b47681)
Configuration menu - View commit details
-
Copy full SHA for 6c81c05 - Browse repository at this point
Copy the full SHA 6c81c05View commit details -
lxd/cluster: Print last dqlite entry on gateway shutdown
This records the Raft term & index of the cluster member's global DB in the logs for use during recovery. Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 76c9c9b)
Configuration menu - View commit details
-
Copy full SHA for 156b51c - Browse repository at this point
Copy the full SHA 156b51cView commit details -
doc: Determine which LXD member is most up to date
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 5e6e651)
Configuration menu - View commit details
-
Copy full SHA for 33f3fe0 - Browse repository at this point
Copy the full SHA 33f3fe0View commit details -
doc: Update MicroCloud reference
Since MicroCloud is GA now Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 9379532)
Configuration menu - View commit details
-
Copy full SHA for e308e0d - Browse repository at this point
Copy the full SHA e308e0dView commit details -
api: sort GET /auth/permissions response
Signed-off-by: Joel Lau <[email protected]> (cherry picked from commit 4fec134)
Configuration menu - View commit details
-
Copy full SHA for 4d3cac1 - Browse repository at this point
Copy the full SHA 4d3cac1View commit details -
lxd/device/cdi: update generateSpec signature
Compilation fails on armhf without this change. Signed-off-by: Alexander Mikhalitsyn <[email protected]> (cherry picked from commit ad7cb82)
Configuration menu - View commit details
-
Copy full SHA for 8e2a691 - Browse repository at this point
Copy the full SHA 8e2a691View commit details -
doc/tutorial: specify LXD snap
Signed-off-by: Minae Lee <[email protected]> (cherry picked from commit 4cfee29)
Configuration menu - View commit details
-
Copy full SHA for d2aca8d - Browse repository at this point
Copy the full SHA d2aca8dView commit details -
lxd/instance/drivers/lxc: downgrade "Failed to statfs" error to warning
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 827aab1)
Configuration menu - View commit details
-
Copy full SHA for 5bc7aee - Browse repository at this point
Copy the full SHA 5bc7aeeView commit details -
lxd/instance/drivers/lxc: downgrade "SFTP server stopped with error" …
…error to warning Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit a28082d)
Configuration menu - View commit details
-
Copy full SHA for f072da5 - Browse repository at this point
Copy the full SHA f072da5View commit details -
lxd/device/cdi: use NVIDIA_DRIVER_ROOT env variable
Instead of using a hardcoded NVIDIA driver root path, let's use a recently introduced NVIDIA_DRIVER_ROOT environment variable. Signed-off-by: Alexander Mikhalitsyn <[email protected]> (cherry picked from commit fa50b67)
Configuration menu - View commit details
-
Copy full SHA for 6d25641 - Browse repository at this point
Copy the full SHA 6d25641View commit details -
docs: Improve Windows image conversion examples
Signed-off-by: Din Music <[email protected]> (cherry picked from commit fbf993c)
Configuration menu - View commit details
-
Copy full SHA for 944c273 - Browse repository at this point
Copy the full SHA 944c273View commit details -
docs: Fix bare URL line numbers in exception list
Signed-off-by: Din Music <[email protected]> (cherry picked from commit 3e35eb1)
Configuration menu - View commit details
-
Copy full SHA for 649ba0a - Browse repository at this point
Copy the full SHA 649ba0aView commit details -
github: Remove unused matrix.go references
Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 309f982)
Configuration menu - View commit details
-
Copy full SHA for 445431c - Browse repository at this point
Copy the full SHA 445431cView commit details -
shared/simplestreams: Fix creation date parsing format
Use 24-hour format instead of 12-hour. Based on comment: canonical@4b26fc2#commitcomment-148595914 Signed-off-by: Din Music <[email protected]> (cherry picked from commit cc38020)
Configuration menu - View commit details
-
Copy full SHA for bd12f91 - Browse repository at this point
Copy the full SHA bd12f91View commit details -
shared/simplestreams: Replace shared.ValueInSlice with slices.Contains
Signed-off-by: Din Music <[email protected]> (cherry picked from commit 3045ddd)
Configuration menu - View commit details
-
Copy full SHA for 47286ee - Browse repository at this point
Copy the full SHA 47286eeView commit details -
lxd/device/gpu_physical: Forbid any
nvidia.*
instance config option…… if the GPU device has been added through the CDI mode Signed-off-by: Gabriel Mougard <[email protected]> (cherry picked from commit 03b8078)
Configuration menu - View commit details
-
Copy full SHA for 8bc3cf9 - Browse repository at this point
Copy the full SHA 8bc3cf9View commit details -
docs: fix ovn ipv4/6 address description
Signed-off-by: David Edler <[email protected]> (cherry picked from commit 6b94626)
Configuration menu - View commit details
-
Copy full SHA for 93df53c - Browse repository at this point
Copy the full SHA 93df53cView commit details -
github: Use cache in case Trivy DB download fails
Signed-off-by: hamistao <[email protected]> (cherry picked from commit a26caf6)
Configuration menu - View commit details
-
Copy full SHA for 8ac952c - Browse repository at this point
Copy the full SHA 8ac952cView commit details -
lxd/networks: Emit lifecycle event for OVN networks
Signed-off-by: Stéphane Graber <[email protected]> (cherry picked from commit 95ede113e5c51a4958a9384d0615ad5a58f72060) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0 (cherry picked from commit 5c8f415)
Configuration menu - View commit details
-
Copy full SHA for 7e14dd5 - Browse repository at this point
Copy the full SHA 7e14dd5View commit details -
lxd/init: Set Target after network/storage lookup
Closes lxc/incus#335 Signed-off-by: Stéphane Graber <[email protected]> (cherry picked from commit a13184bf72f0d5ad69aa12b7e392bc2c2ff2ec93) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0 (cherry picked from commit 05f6d56)
Configuration menu - View commit details
-
Copy full SHA for ca89690 - Browse repository at this point
Copy the full SHA ca89690View commit details -
test/suites: Test storage/network can be specified when targetting cl…
…uster group. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 0111b79)
Configuration menu - View commit details
-
Copy full SHA for 1ca0963 - Browse repository at this point
Copy the full SHA 1ca0963View commit details -
lxd/network/ovn: Properly handle uplink with disabled DHCP/DHCPv6
Signed-off-by: Stéphane Graber <[email protected]> (cherry picked from commit d9b147fbbc5c4202259107c0332526a4237a68ce) Signed-off-by: Kadin Sayani <[email protected]> License: Apache-2.0 (cherry picked from commit 33dc30a)
Configuration menu - View commit details
-
Copy full SHA for 75ca2c4 - Browse repository at this point
Copy the full SHA 75ca2c4View commit details -
shared/api: Add TLSCertificate field to identity and identity PUT.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit dd62771)
Configuration menu - View commit details
-
Copy full SHA for 6df8c8a - Browse repository at this point
Copy the full SHA 6df8c8aView commit details -
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 261083e)
Configuration menu - View commit details
-
Copy full SHA for 3d6ee3e - Browse repository at this point
Copy the full SHA 3d6ee3eView commit details -
lxd/db/cluster: Add function to get certificate metadata from DB Iden…
…tity. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 683876d)
Configuration menu - View commit details
-
Copy full SHA for 0c1f6e4 - Browse repository at this point
Copy the full SHA 0c1f6e4View commit details -
lxd/db/cluster: Add TLSCertificate on Identity.ToAPI.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit f70b3e4)
Configuration menu - View commit details
-
Copy full SHA for a006a47 - Browse repository at this point
Copy the full SHA a006a47View commit details -
lxd: Return TLSCertificate when listing identities.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit d94fe9f)
Configuration menu - View commit details
-
Copy full SHA for bb3a470 - Browse repository at this point
Copy the full SHA bb3a470View commit details -
lxd: Factor out logic to add identity to request context from access …
…handler. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 28da5de)
Configuration menu - View commit details
-
Copy full SHA for 7b4ca6e - Browse repository at this point
Copy the full SHA 7b4ca6eView commit details -
lxd: Use
allowAuthenticated
for identity update handlers.This is necessary so that a user can update their own certificate without having `can_edit` on their identity. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 305851b)
Configuration menu - View commit details
-
Copy full SHA for 5887431 - Browse repository at this point
Copy the full SHA 5887431View commit details -
lxd: Return a 400 for invalid certificates.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 90d3bdb)
Configuration menu - View commit details
-
Copy full SHA for 130f453 - Browse repository at this point
Copy the full SHA 130f453View commit details -
lxd: Add method to validate an identities' certificate and return the…
…ir fingerprint and metadata. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit afbfb15)
Configuration menu - View commit details
-
Copy full SHA for e109cf0 - Browse repository at this point
Copy the full SHA e109cf0View commit details -
lxd: Add certificate update functionality.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit a58dccc)
Configuration menu - View commit details
-
Copy full SHA for e6a4c9f - Browse repository at this point
Copy the full SHA e6a4c9fView commit details -
test/suites: Add tests for TLS identity certificate update.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 6c8da65)
Configuration menu - View commit details
-
Copy full SHA for 817f4d0 - Browse repository at this point
Copy the full SHA 817f4d0View commit details -
lxd/instance/drivers: Make
security.devlxd.images
live-updatable.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 0229bbe)
Configuration menu - View commit details
-
Copy full SHA for b934a7e - Browse repository at this point
Copy the full SHA b934a7eView commit details -
lxd/instance/instancetype: Update doc
security.devlxd.images
config…… key. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 0aa02a9)
Configuration menu - View commit details
-
Copy full SHA for add16d6 - Browse repository at this point
Copy the full SHA add16d6View commit details -
{doc,lxd/metadata}: Runs
make update-metadata
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 560ddbc)
Configuration menu - View commit details
-
Copy full SHA for 930fe3a - Browse repository at this point
Copy the full SHA 930fe3aView commit details -
lxd/auth/drivers: Mask errors returned by OpenFGADatastore.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 54b59a9)
Configuration menu - View commit details
-
Copy full SHA for 0ee4653 - Browse repository at this point
Copy the full SHA 0ee4653View commit details -
test/suites: Use
gen_cert_and_key
in basic usage tests.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit f8d97c5)
Configuration menu - View commit details
-
Copy full SHA for e411ffe - Browse repository at this point
Copy the full SHA e411ffeView commit details -
test/suites: Use
gen_cert_and_key
in remote admin tests.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 764f253)
Configuration menu - View commit details
-
Copy full SHA for 766d894 - Browse repository at this point
Copy the full SHA 766d894View commit details -
test/includes: Remove
gen_cert
util.This util did not specify the `--auth-type` flag when adding the dummy remote. This caused issues if another LXD is running on the host machine while listening on :8443 with OIDC configured. The `remote add` command would fail and get the OIDC headers, then attempt to start the device authorization grant flow with the IdP configured on the other LXD. With `BROWSER=curl` set for use with the `mini-oidc` test util, it was causing `lxc` to attempt to curl the code verification page. Since we have a simpler and more efficient equivalent in `gen_cert_and_key`, I've opted to remove it instead of setting the `--auth-type` flag to avoid this behaviour. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 84896c2)
Configuration menu - View commit details
-
Copy full SHA for 68a4451 - Browse repository at this point
Copy the full SHA 68a4451View commit details -
lxd/auth/drivers: Add entitlement for viewing unmanaged networks.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 077bb5f)
Configuration menu - View commit details
-
Copy full SHA for 12ed6e8 - Browse repository at this point
Copy the full SHA 12ed6e8View commit details -
lxd/auth: Runs
make update-auth
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 8553692)
Configuration menu - View commit details
-
Copy full SHA for 0b62617 - Browse repository at this point
Copy the full SHA 0b62617View commit details -
{doc,lxd/metadata}: Runs
make update-metadata
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 3bfe237)
Configuration menu - View commit details
-
Copy full SHA for 612bdd9 - Browse repository at this point
Copy the full SHA 612bdd9View commit details -
lxd/auth: Allow restricted TLS clients to view unmanaged networks.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 03dc344)
Configuration menu - View commit details
-
Copy full SHA for e97cecd - Browse repository at this point
Copy the full SHA e97cecdView commit details -
lxd: Handle authorization for unmanaged networks.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 3fc7a95)
Configuration menu - View commit details
-
Copy full SHA for d939c1f - Browse repository at this point
Copy the full SHA d939c1fView commit details -
test/suites: Include new server entitlement in tests.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit b66435f)
Configuration menu - View commit details
-
Copy full SHA for d23a50d - Browse repository at this point
Copy the full SHA d23a50dView commit details -
doc/howto/initialize: fix broken link to maas docs
Signed-off-by: Minae Lee <[email protected]> (cherry picked from commit 74a4990)
Configuration menu - View commit details
-
Copy full SHA for fae407c - Browse repository at this point
Copy the full SHA fae407cView commit details -
shared/usbid/parse: Match id's type to Protocol and ClassCode
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 64377dc)
Configuration menu - View commit details
-
Copy full SHA for 2effe4e - Browse repository at this point
Copy the full SHA 2effe4eView commit details -
shared/usbid/parse: Use return expressions (revive)
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 6f17147)
Configuration menu - View commit details
-
Copy full SHA for 83bef80 - Browse repository at this point
Copy the full SHA 83bef80View commit details -
shared/usbid/parse: Comment spacing (revive)
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit a262fd0)
Configuration menu - View commit details
-
Copy full SHA for c35bf3c - Browse repository at this point
Copy the full SHA c35bf3cView commit details -
Signed-off-by: hamistao <[email protected]> (cherry picked from commit bbc85e5)
Configuration menu - View commit details
-
Copy full SHA for b335f5d - Browse repository at this point
Copy the full SHA b335f5dView commit details -
lxd/instance/drivers/qemu: Add missing node name overflow handling
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 668d666)
Configuration menu - View commit details
-
Copy full SHA for 5c4ee2f - Browse repository at this point
Copy the full SHA 5c4ee2fView commit details -
lxd/instance/drivers: Deduplicate operationStatusCode logic
Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 5b1e2e0)
Configuration menu - View commit details
-
Copy full SHA for bac01c2 - Browse repository at this point
Copy the full SHA bac01c2View commit details -
lxd/instance/drivers: Reduce chance of races during
statusCode
Fixes canonical#13453 Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit a7e88b0)
Configuration menu - View commit details
-
Copy full SHA for b5cd06c - Browse repository at this point
Copy the full SHA b5cd06cView commit details -
test/main: print apport crashes info
Print all Apport [1] crash reports in case of test failures. https://wiki.ubuntu.com/Apport Signed-off-by: Alexander Mikhalitsyn <[email protected]> (cherry picked from commit a80b942)
Configuration menu - View commit details
-
Copy full SHA for a5ccf42 - Browse repository at this point
Copy the full SHA a5ccf42View commit details -
github: add download-minio action
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 757e46b)
Configuration menu - View commit details
-
Copy full SHA for 469771e - Browse repository at this point
Copy the full SHA 469771eView commit details -
github: download minio/mc using action and as late as possible
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit cbaf1c3)
Configuration menu - View commit details
-
Copy full SHA for 2de2c64 - Browse repository at this point
Copy the full SHA 2de2c64View commit details -
lxd/device: Update device option descriptions for
usb
to accurately…… convey compatibility with containers and vms Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit e93570a)
Configuration menu - View commit details
-
Copy full SHA for 6d72de6 - Browse repository at this point
Copy the full SHA 6d72de6View commit details -
lxd/device: Update container only device options to use word
container
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 79948f6)
Configuration menu - View commit details
-
Copy full SHA for b333f00 - Browse repository at this point
Copy the full SHA b333f00View commit details -
lxd/device: Split
required
device option metadata forusb
and `un……ix-hotplug` This commit splits the `required` device option into separate metadata descriptions for the `usb` and `unix-hotplug` device, resulting in more accurate descriptions based on device compatibility. Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 405fc81)
Configuration menu - View commit details
-
Copy full SHA for b734744 - Browse repository at this point
Copy the full SHA b734744View commit details -
doc: Update
devices_unix_char
docs to accurately convey device comp……atibility Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 32de1aa)
Configuration menu - View commit details
-
Copy full SHA for 4b1a972 - Browse repository at this point
Copy the full SHA 4b1a972View commit details -
doc: Update
devices_unix_block
docs to accurately convey device com……patibility Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit bc85891)
Configuration menu - View commit details
-
Copy full SHA for b7a0919 - Browse repository at this point
Copy the full SHA b7a0919View commit details -
doc: Update
devices_unix_hotplug
docs to accurately convey device c……ompatibility Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit c9b5a11)
Configuration menu - View commit details
-
Copy full SHA for 8b8a952 - Browse repository at this point
Copy the full SHA 8b8a952View commit details -
metadata: Run
make update-metadata
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit b7d8247)
Configuration menu - View commit details
-
Copy full SHA for 3d2153e - Browse repository at this point
Copy the full SHA 3d2153eView commit details -
lxc/completion: Don't hide default completion command
The completion command is a useful tool that includes detailed instructions for setting up completions across shell environments. Most CLI applications don't hide this by default so it's quite intuitive for a user to locate/use this command. Furthermore, the LXD snap completions are only set up for Bash shells. Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 0462930)
Configuration menu - View commit details
-
Copy full SHA for 24cba0e - Browse repository at this point
Copy the full SHA 24cba0eView commit details -
Consume websocket pings for stderr
Fixes: canonical#1289 Signed-off-by: Stefano Rivera <[email protected]> (cherry picked from commit d098f463f7538a4b332e457bbb5e6ea473ef1536) Signed-off-by: Thomas Parrott <[email protected]> License: Apache-2.0 (cherry picked from commit c311976)
Configuration menu - View commit details
-
Copy full SHA for c1addc7 - Browse repository at this point
Copy the full SHA c1addc7View commit details -
shared/entity: Add functions to create snapshot and backup URLs.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 5e1548c)
Configuration menu - View commit details
-
Copy full SHA for b3c5728 - Browse repository at this point
Copy the full SHA b3c5728View commit details -
lxd/auth/drivers: Add snapshots and backups to authorization model.
Adds instance and storage volume snapshots and backups to the OpenFGA model. These entitlements cannot be assigned to identities, service accounts, or group members. Instead they are inherited from the parent instance or volume. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit fd53341)
Configuration menu - View commit details
-
Copy full SHA for da59018 - Browse repository at this point
Copy the full SHA da59018View commit details -
lxd/auth/drivers: Clarify that "can_view" allows viewing snapshots an…
…d backups. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 506584d)
Configuration menu - View commit details
-
Copy full SHA for 1e41102 - Browse repository at this point
Copy the full SHA 1e41102View commit details -
lxd/auth: Run
make update-auth
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 1c84225)
Configuration menu - View commit details
-
Copy full SHA for dc94087 - Browse repository at this point
Copy the full SHA dc94087View commit details -
metadata: Run
make update-metadata
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit e9fd600)
Configuration menu - View commit details
-
Copy full SHA for 0da9283 - Browse repository at this point
Copy the full SHA 0da9283View commit details -
lxd/auth/drivers: Remove entitlement validation check.
The auth.ValidateEntitlement function validates all entitlements that can be granted via the API. Since the new entitlements on snapshots and backups cannot be granted via the API, this check fails. The OpenFGA server will return an error if an invalid query is performed based on it's own understanding of the authorization model. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 4f5ad89)
Configuration menu - View commit details
-
Copy full SHA for 36d8b7e - Browse repository at this point
Copy the full SHA 36d8b7eView commit details -
lxd/db/openfga: Use entity types for parent-child relations.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit aaef11a)
Configuration menu - View commit details
-
Copy full SHA for 79afe81 - Browse repository at this point
Copy the full SHA 79afe81View commit details -
lxd/db/openfga: Handle instance and storage_volume relations on Read.
Previously the only entities that had inherited relations were project and server. Now that we are linking instances and storage volumes to their snapshots and backups, the OpenFGADatastore implementation needs to handle these relations. On Read, we can connect a snapshot or backup to its parent instance or storage volume using the information stored in its URL. For example, the storage volume backup URL: /1.0/storage-pools/default/volumes/custom/vol1/backups/backup1?project=project1 is related to its parent: /1.0/storage-pools/default/volumes/custom/vol1?project=project1 via the `storage_volume relation`. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit aef5438)
Configuration menu - View commit details
-
Copy full SHA for 0b214a9 - Browse repository at this point
Copy the full SHA 0b214a9View commit details -
lxd/db/openfga: Handle instance and storage_volume relations on ReadS…
…tartingWithUser. Previously the only entities that had inherited relations were project and server. Now that we are linking instances and storage volumes to their snapshots and backups, the OpenFGADatastore implementation needs to handle these relations. On ReadStartingWithUser, the function needs to return all backups or snapshots that are related to a parent instance or storage volume. This is used in the `ListObjects` call to the OpenFGA server, which is used by `(auth.Authorizer).GetPermissionChecker`. To do this, I have naively queried for all snapshots or backups in the project, and filtered out those that don't have the correct parent. This keeps the implementation simple and makes use of `GetEntityURLs`, which performs as few queries as possible. Further optimisation may be needed. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 74b1e10)
Configuration menu - View commit details
-
Copy full SHA for fe5d779 - Browse repository at this point
Copy the full SHA fe5d779View commit details -
lxd: Update instance backup and snapshot authorization checks.
We can now use the `can_view`, `can_edit`, and `can_delete` entitlements with instance backups and snapshots. We should do this so that our checks more accurately reflect the authorization model. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 3744b5f)
Configuration menu - View commit details
-
Copy full SHA for 6818f33 - Browse repository at this point
Copy the full SHA 6818f33View commit details -
lxd: Add location to storage volume details.
The access handler was performing some logic to determine the location of the storage volume for use in the access check. This was based on whether the storage pool is remote, and if not, the cluster member where the volume is located. This commit removes that logic and adds a "location" field to `storageVolumeDetails` so that it can be used in the handlers. The logic for determining the location is modified to suit the call site. It is only set when the pool is not remote. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit ded532a)
Configuration menu - View commit details
-
Copy full SHA for 2b36122 - Browse repository at this point
Copy the full SHA 2b36122View commit details -
lxd: Parameterise the storagePoolVolumeTypeAccessHandler by entity type.
The storage volume snapshot and backup access handlers need to share almost identical logic to the storage volume access handler. Including getting the storage pool, understanding if the storage volume is located on another cluster member, and so forth. This commit parameterises the function so that it can be used by the snapshot and backup entity types as well; creating and checking against the correct URL when called. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 02bfea0)
Configuration menu - View commit details
-
Copy full SHA for fdf7253 - Browse repository at this point
Copy the full SHA fdf7253View commit details -
lxd: Update calls to the storage volume access handler.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 90bdff3)
Configuration menu - View commit details
-
Copy full SHA for 57efce6 - Browse repository at this point
Copy the full SHA 57efce6View commit details -
lxd: Update storage volume snapshot and backup access checks.
We can now check `can_view`, `can_edit`, and `can_delete` against the backup/snapshot itself. We should do so to more accurately reflect the authorization model. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit e554262)
Configuration menu - View commit details
-
Copy full SHA for 4e0c7d0 - Browse repository at this point
Copy the full SHA 4e0c7d0View commit details -
test/suites: Add tests for storage pool used-by filtering.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 44e4a30)
Configuration menu - View commit details
-
Copy full SHA for d1c0ca7 - Browse repository at this point
Copy the full SHA d1c0ca7View commit details -
Fix linter errors (revive: redefines-builtin-id).
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 0d3d40e)
Configuration menu - View commit details
-
Copy full SHA for f8659c7 - Browse repository at this point
Copy the full SHA f8659c7View commit details -
test/deps: Add python script to search for panics in LXD logs.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 7e64afd)
Configuration menu - View commit details
-
Copy full SHA for b6a0a07 - Browse repository at this point
Copy the full SHA b6a0a07View commit details -
github: unconditionally strip binaries and libs as late as possible
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit d1e6004)
Configuration menu - View commit details
-
Copy full SHA for 53a6b61 - Browse repository at this point
Copy the full SHA 53a6b61View commit details -
github: Move chmod of go.mod, go.sum before go mod download
Sometimes it needs to modify them. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 7bbf30a)
Configuration menu - View commit details
-
Copy full SHA for 4c989d9 - Browse repository at this point
Copy the full SHA 4c989d9View commit details -
Makefile: Bump min Go version to 1.23
Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit b8fa5e4)
Configuration menu - View commit details
-
Copy full SHA for 04a486d - Browse repository at this point
Copy the full SHA 04a486dView commit details -
doc: Update min go version to 1.23
Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 0da14e7)
Configuration menu - View commit details
-
Copy full SHA for 8874365 - Browse repository at this point
Copy the full SHA 8874365View commit details -
test/includes: Add panic checker helper function.
This runs the panic checker against all currently running LXD daemons. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit e63cf22)
Configuration menu - View commit details
-
Copy full SHA for 8588bcc - Browse repository at this point
Copy the full SHA 8588bccView commit details -
test: All tests should be executed from TEST_DIR.
This commit reverts any changes made to the current directory in any test suites. Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 1e72b0e)
Configuration menu - View commit details
-
Copy full SHA for 0a7a65a - Browse repository at this point
Copy the full SHA 0a7a65aView commit details -
test/includes: Run the panic checker killing any LXD daemon.
Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 484e2ae)
Configuration menu - View commit details
-
Copy full SHA for 9d97191 - Browse repository at this point
Copy the full SHA 9d97191View commit details -
test: Run the panic checker on cleanup before setting
+e
.Signed-off-by: Mark Laing <[email protected]> (cherry picked from commit 9465252)
Configuration menu - View commit details
-
Copy full SHA for 761d478 - Browse repository at this point
Copy the full SHA 761d478View commit details -
Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 1492337)
Configuration menu - View commit details
-
Copy full SHA for c3e8366 - Browse repository at this point
Copy the full SHA c3e8366View commit details -
Revert "api: Add
ubuntu_pro_guest_attach
API extension."This reverts commit 5ecafb1. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 85712d6)
Configuration menu - View commit details
-
Copy full SHA for 0efa322 - Browse repository at this point
Copy the full SHA 0efa322View commit details -
Revert "shared/api: Add guest attachment API responses."
This reverts commit 0145719. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit dd6a47e)
Configuration menu - View commit details
-
Copy full SHA for 13cd1d3 - Browse repository at this point
Copy the full SHA 13cd1d3View commit details -
Revert "lxd/ubuntupro: Return host guest attachment setting if instan…
…ce setting is unset." This reverts commit c7f398d. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 7121a31)
Configuration menu - View commit details
-
Copy full SHA for 75387b8 - Browse repository at this point
Copy the full SHA 75387b8View commit details -
Revert "lxd/ubuntupro: Add ubuntupro package."
This reverts commit a776a06. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit ca995e0)
Configuration menu - View commit details
-
Copy full SHA for 50e70e8 - Browse repository at this point
Copy the full SHA 50e70e8View commit details -
Revert "lxd/state: Add
ubuntupro.Client
tostate.State
."This reverts commit 8e6ce55. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 345e9b4)
Configuration menu - View commit details
-
Copy full SHA for 84ad497 - Browse repository at this point
Copy the full SHA 84ad497View commit details -
Revert "lxd/state: Add
ubuntupro.Client
toDaemon
."This reverts commit 42e3526. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit f69629a)
Configuration menu - View commit details
-
Copy full SHA for a44b606 - Browse repository at this point
Copy the full SHA a44b606View commit details -
Revert "lxd/instance/instancetype: Add
ubuntu_pro.guest_attach
to i……nstance configuration." This reverts commit 7c83061. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 8125bc7)
Configuration menu - View commit details
-
Copy full SHA for 8880a5e - Browse repository at this point
Copy the full SHA 8880a5eView commit details -
Revert "{doc,lxd/metadata}: Run
make update-metadata
."This reverts commit 05b7152. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 1380841)
Configuration menu - View commit details
-
Copy full SHA for a9ff06a - Browse repository at this point
Copy the full SHA a9ff06aView commit details -
Revert "lxd: Add Ubuntu Pro handlers to devlxd."
This reverts commit d62691f. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 6d8c8fa)
Configuration menu - View commit details
-
Copy full SHA for 7810902 - Browse repository at this point
Copy the full SHA 7810902View commit details -
Revert "lxd-agent: Add Ubuntu Pro handlers to devlxd."
This reverts commit f98c7ad. Signed-off-by: Thomas Parrott <[email protected]> (cherry picked from commit 6671ca9)
Configuration menu - View commit details
-
Copy full SHA for d420327 - Browse repository at this point
Copy the full SHA d420327View commit details -
lxc/warning: Take
--all
into account when parsing argsSigned-off-by: hamistao <[email protected]> (cherry picked from commit 1d03270)
Configuration menu - View commit details
-
Copy full SHA for f9b5f73 - Browse repository at this point
Copy the full SHA f9b5f73View commit details -
lxc/warning: Update
lxc warning delete
usageSigned-off-by: hamistao <[email protected]> (cherry picked from commit e906c70)
Configuration menu - View commit details
-
Copy full SHA for 73d546e - Browse repository at this point
Copy the full SHA 73d546eView commit details -
lxc/warning: Delete all warnings
Signed-off-by: hamistao <[email protected]> (cherry picked from commit 4090008)
Configuration menu - View commit details
-
Copy full SHA for 6783de7 - Browse repository at this point
Copy the full SHA 6783de7View commit details -
test/warnings: Test deleting all warnings
Signed-off-by: hamistao <[email protected]> (cherry picked from commit d92790d)
Configuration menu - View commit details
-
Copy full SHA for a8a8808 - Browse repository at this point
Copy the full SHA a8a8808View commit details -
github: add install-lxd-runtimedeps action
Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 27d9504)
Configuration menu - View commit details
-
Copy full SHA for 0db7b97 - Browse repository at this point
Copy the full SHA 0db7b97View commit details -
lxd/device: Add support for discovering multiple unix hotplug devices
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 5bf214f)
Configuration menu - View commit details
-
Copy full SHA for 3568664 - Browse repository at this point
Copy the full SHA 3568664View commit details -
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit bae1f69)
Configuration menu - View commit details
-
Copy full SHA for 08bb310 - Browse repository at this point
Copy the full SHA 08bb310View commit details -
lxd/device: Consolidate device matching logic to resolve inconsistent…
… matching This commit consolidates `unix-hotplug` device matching logic into a new function, `deviceMatch`. Consolidating matching logic prevents inconsistent matching between `Register` and `Start`. Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit c2413f2)
Configuration menu - View commit details
-
Copy full SHA for bd662f7 - Browse repository at this point
Copy the full SHA bd662f7View commit details -
github: replace lxc-templates by lxc-utils
This package does NOT come from `ppa:ubuntu-lxc/daily` PPA but from the official archive. Looking at its [filelist](https://packages.ubuntu.com/jammy/amd64/lxc-templates/filelist), it's probably not needed when building LXD. However, it has a dependency on `lxc` which is a virtual package pulling `lxc-utils`. As such, explicitly pull the package we need (`lxc-utils`) and explain why the units are masked before the package shipping them is installed. Signed-off-by: Simon Deziel <[email protected]> (cherry picked from commit 4706f9e)
Configuration menu - View commit details
-
Copy full SHA for 9f7036b - Browse repository at this point
Copy the full SHA 9f7036bView commit details