Skip to content
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

Draft
wants to merge 424 commits into
base: stable-5.21
Choose a base branch
from
Draft
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Dec 4, 2024

  1. lxd: Add MetricsType field to APIEndpoint

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit 49024c8)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    ca44314 View commit details
    Browse the repository at this point in the history
  2. lxd/metrics: Take endpoint type instead of deriving from prefix

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit 9c11555)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a0d365f View commit details
    Browse the repository at this point in the history
  3. lxd: Update metrics functions usage

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit f461943)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    597c90d View commit details
    Browse the repository at this point in the history
  4. shared/entity: Create list of types for the metrics

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit 36d9b9e)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    461946b View commit details
    Browse the repository at this point in the history
  5. lxd: Categorize existing endpoints

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit 7195052)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8e569fd View commit details
    Browse the repository at this point in the history
  6. lxd: Check if every 1.0 endpoint is typed

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit 07751bc)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b2d0066 View commit details
    Browse the repository at this point in the history
  7. lxd: Update MetricsCallback variable name

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit db5fdde)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    195a857 View commit details
    Browse the repository at this point in the history
  8. lxc/completion: Storage volume copy completion fixes

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 8c3d9bb)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    1b16713 View commit details
    Browse the repository at this point in the history
  9. lxc/completion: Use string concatenation instead of Sprintf() where…

    … possible
    
    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 5782bdf)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    187a1b7 View commit details
    Browse the repository at this point in the history
  10. lxc/completion: Add go doc comments to completion functions

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit d81ea7d)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    c594559 View commit details
    Browse the repository at this point in the history
  11. shared/api: Add pending and fine-grained TLS certificate identity types.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit c819c62)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    24d1139 View commit details
    Browse the repository at this point in the history
  12. lxd/identity: Make new client certificates a fine-grained identity type.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 20a01e1)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    1ca71df View commit details
    Browse the repository at this point in the history
  13. lxd/identity: New client certificate identity type authenticates via …

    …TLS.
    
    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 5af95c5)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    768cead View commit details
    Browse the repository at this point in the history
  14. lxd/db/cluster: Add pending and fine-grained TLS certificate identity…

    … types.
    
    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit cfc98d2)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    03c2759 View commit details
    Browse the repository at this point in the history
  15. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    4b61e95 View commit details
    Browse the repository at this point in the history
  16. 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)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    89be4a7 View commit details
    Browse the repository at this point in the history
  17. 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)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    2fcc3e6 View commit details
    Browse the repository at this point in the history
  18. lxd/metrics: Remove logging from UseMetricsCallback

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit 4ddd5cd)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    492208c View commit details
    Browse the repository at this point in the history
  19. shared/api: Add API structs for identity creation.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 58106ba)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    54bf949 View commit details
    Browse the repository at this point in the history
  20. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    bcc1dc2 View commit details
    Browse the repository at this point in the history
  21. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8423703 View commit details
    Browse the repository at this point in the history
  22. lxd/db/cluster: Add pending TLS identity metadata type and method.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit c19cf4b)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    54b06d8 View commit details
    Browse the repository at this point in the history
  23. lxd/db/cluster: Add method to activate a pending TLS identity.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit dc78faa)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    403b770 View commit details
    Browse the repository at this point in the history
  24. lxd/db/cluster: Add method to find a pending identity by secret.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit a020acc)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    1d75e07 View commit details
    Browse the repository at this point in the history
  25. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    da5a1d8 View commit details
    Browse the repository at this point in the history
  26. lxd: Add TLS identity creation endpoint.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit bf4e757)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    52a241f View commit details
    Browse the repository at this point in the history
  27. doc: Runs make update-api.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit fc982ab)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b03d4c4 View commit details
    Browse the repository at this point in the history
  28. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    68a84cc View commit details
    Browse the repository at this point in the history
  29. lxd: Allow fine-grained TLS identities list resources in any project.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 4d7c92d)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    71caa2e View commit details
    Browse the repository at this point in the history
  30. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0f6eec7 View commit details
    Browse the repository at this point in the history
  31. lxd: Omit pending TLS identities when updating the identity cache.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit bdd7aec)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    3c51217 View commit details
    Browse the repository at this point in the history
  32. client: Add methods for creating TLS identities.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 7ce5231)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    95e463f View commit details
    Browse the repository at this point in the history
  33. lxc/auth: Add identity creation command.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit f482166)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8d55fba View commit details
    Browse the repository at this point in the history
  34. test/suites: Test fine-grained TLS identity creation.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit ae83b34)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    2dc1b02 View commit details
    Browse the repository at this point in the history
  35. test/suites: Test identity info for TLS identities.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 707d78e)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    36ab2b6 View commit details
    Browse the repository at this point in the history
  36. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    ba4fc7f View commit details
    Browse the repository at this point in the history
  37. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    cd9e78f View commit details
    Browse the repository at this point in the history
  38. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    f1c693c View commit details
    Browse the repository at this point in the history
  39. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    bf681ad View commit details
    Browse the repository at this point in the history
  40. doc/explanation: Add fine-grained TLS identities to authorization page.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 3938a07)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    883c60d View commit details
    Browse the repository at this point in the history
  41. doc/howto: Include fine-grained TLS identities in authentication tuto…

    …rial.
    
    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 55a3ea5)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    afbcc67 View commit details
    Browse the repository at this point in the history
  42. test/suites/clustering: add clustering_update_cert_token test

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit 2e764a0)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e8b0891 View commit details
    Browse the repository at this point in the history
  43. test/main: enable clustering_update_cert_token test

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit ec0b221)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b909606 View commit details
    Browse the repository at this point in the history
  44. github: fix indent of commits job

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit b571e6e)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0a548cf View commit details
    Browse the repository at this point in the history
  45. Makefile: opportunistically run yamllint against GH workflows

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit cabae36)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    71e2f68 View commit details
    Browse the repository at this point in the history
  46. lxc/completion: Only complete custom storage volumes for `lxc storage…

    … volume copy`
    
    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit d077910)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8705aed View commit details
    Browse the repository at this point in the history
  47. lxc/completion: Fix completions for lxc storage volume move

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit f86417b)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    2be0a2d View commit details
    Browse the repository at this point in the history
  48. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    5e147f1 View commit details
    Browse the repository at this point in the history
  49. lxd/cluster/notify: Use state.ServerClustered

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 1873780)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    46479ad View commit details
    Browse the repository at this point in the history
  50. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    7fa0298 View commit details
    Browse the repository at this point in the history
  51. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    f5c10cf View commit details
    Browse the repository at this point in the history
  52. lxd/cluster/notify: Update notifier tests

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit b6b6283)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8cd0516 View commit details
    Browse the repository at this point in the history
  53. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    c72266c View commit details
    Browse the repository at this point in the history
  54. lxd/cluster: Update notifier usage

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit af850cc)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    9d64f1b View commit details
    Browse the repository at this point in the history
  55. lxd/network/acl: Update notifier usage

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 03f890a)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    996932b View commit details
    Browse the repository at this point in the history
  56. lxd/network/zone: Update notifier usage

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 6e1bcb7)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8f8f655 View commit details
    Browse the repository at this point in the history
  57. lxd/network: Update Notifier usage

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 6a1165a)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    2a50e79 View commit details
    Browse the repository at this point in the history
  58. lxd: Update notifier usage

    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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8389608 View commit details
    Browse the repository at this point in the history
  59. lxd: Update notifier usage

    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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    ce44ea2 View commit details
    Browse the repository at this point in the history
  60. lxd: Update notifier usage

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 2555bee)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    4661746 View commit details
    Browse the repository at this point in the history
  61. lxd/cluster: Split LocalSysInfo from MemberState

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 71e344c)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    3cc7d7a View commit details
    Browse the repository at this point in the history
  62. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    dca0b5f View commit details
    Browse the repository at this point in the history
  63. lxd: Update MemberState usage

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 4860bed)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    aff44ee View commit details
    Browse the repository at this point in the history
  64. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0f95df2 View commit details
    Browse the repository at this point in the history
  65. lxd/cluster: Populate LogicalCPUs

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit d62e3b5)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    78d31ae View commit details
    Browse the repository at this point in the history
  66. doc: Run make update-api

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 4040dd8)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    caed4bd View commit details
    Browse the repository at this point in the history
  67. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    5b0e046 View commit details
    Browse the repository at this point in the history
  68. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    5f03a52 View commit details
    Browse the repository at this point in the history
  69. lxd/cluster: Test ClusterState

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit f13e377)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    c0a7808 View commit details
    Browse the repository at this point in the history
  70. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    05a5a74 View commit details
    Browse the repository at this point in the history
  71. lxd: Remove uneeded iteration

    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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    6c79f14 View commit details
    Browse the repository at this point in the history
  72. lxd/db/node: Fix linter errors

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit a608e3b)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    f0ba0ba View commit details
    Browse the repository at this point in the history
  73. api: Add state_logical_cpus extension

    Covers changes introduced with canonical#14294
    
    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit fead980)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a27c65b View commit details
    Browse the repository at this point in the history
  74. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    00d18eb View commit details
    Browse the repository at this point in the history
  75. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    c2c5deb View commit details
    Browse the repository at this point in the history
  76. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    1ffd3bb View commit details
    Browse the repository at this point in the history
  77. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    771397d View commit details
    Browse the repository at this point in the history
  78. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    efc4f83 View commit details
    Browse the repository at this point in the history
  79. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    07c2ffa View commit details
    Browse the repository at this point in the history
  80. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    727e640 View commit details
    Browse the repository at this point in the history
  81. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    7d43474 View commit details
    Browse the repository at this point in the history
  82. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8b35b12 View commit details
    Browse the repository at this point in the history
  83. api: Add vm_limits_cpu_pin_strategy API extension.

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 518148c)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    cef7b84 View commit details
    Browse the repository at this point in the history
  84. 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)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    659daaf View commit details
    Browse the repository at this point in the history
  85. metadata: Run make update-metadata

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 487d16a)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e2f8bfa View commit details
    Browse the repository at this point in the history
  86. lxd/instance: Add input validation for limits.cpu.pin_strategy

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 846cec4)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    abd4b9e View commit details
    Browse the repository at this point in the history
  87. 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)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    aaeb9ad View commit details
    Browse the repository at this point in the history
  88. doc: Update CPU pinning documentation for VMs

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 963006d)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d555069 View commit details
    Browse the repository at this point in the history
  89. lxd: Consider project's restricted cluster groups during instance eva…

    …cuation
    
    Signed-off-by: Mark Bolton <[email protected]>
    (cherry picked from commit 838ee14)
    boltmark authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    948a8f2 View commit details
    Browse the repository at this point in the history
  90. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8235557 View commit details
    Browse the repository at this point in the history
  91. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    49e63dc View commit details
    Browse the repository at this point in the history
  92. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    97231a0 View commit details
    Browse the repository at this point in the history
  93. 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)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    14f170a View commit details
    Browse the repository at this point in the history
  94. lxd/cgroup: Refactor srcType parameter in TaskSchedulerTrigger to…

    … use `instancetype.Type` instead of `string`
    
    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 6027e2a)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    f22bbeb View commit details
    Browse the repository at this point in the history
  95. lxd/shared/validate: Add named results to ParseNetworkVLANRange and…

    … `ParseUint32Range`
    
    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 62cfe92)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b622c06 View commit details
    Browse the repository at this point in the history
  96. tests: Add tests for limits.cpu.pin_strategy and limits.cpu confi…

    …g and profile settings
    
    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit f6dc890)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    3c9a91d View commit details
    Browse the repository at this point in the history
  97. github: update apt definition in setup-microceph

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit 0f397ed)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    1504c70 View commit details
    Browse the repository at this point in the history
  98. github: tune docker firewall disablement to work on 20.04

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit 4cc768e)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    666fcee View commit details
    Browse the repository at this point in the history
  99. 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)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    65d1531 View commit details
    Browse the repository at this point in the history
  100. github: cope with no installed snaps in reclaim-disk-space action

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit 2b7f7ac)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    7c3dcb9 View commit details
    Browse the repository at this point in the history
  101. 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)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d54b0ca View commit details
    Browse the repository at this point in the history
  102. 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)
    boltmark authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    1041fad View commit details
    Browse the repository at this point in the history
  103. 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)
    boltmark authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    95f4f6f View commit details
    Browse the repository at this point in the history
  104. test/suites: Add testing for cluster group init with multiple nodes

    Signed-off-by: Mark Bolton <[email protected]>
    (cherry picked from commit 51d51a1)
    boltmark authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    09149a9 View commit details
    Browse the repository at this point in the history
  105. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    f68a434 View commit details
    Browse the repository at this point in the history
  106. lxd/cluster: Replace deprecated Recover with ReconfigureMembership

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 41ffd77)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    c0ce669 View commit details
    Browse the repository at this point in the history
  107. lxd/state: Add LeaderInfo type and function to state.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit be1ec61)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d9387df View commit details
    Browse the repository at this point in the history
  108. lxd: Set LeaderInfo function in (*Daemon).State.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 2220cde)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    687dc2e View commit details
    Browse the repository at this point in the history
  109. lxd: Update ACME handlers to use (*State).LeaderInfo.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 7fe7737)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e5c1935 View commit details
    Browse the repository at this point in the history
  110. lxd: Update cluster handlers to use (*State).LeaderInfo.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit afbd115)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d4d515e View commit details
    Browse the repository at this point in the history
  111. lxd: Update image sync task to use (*State).LeaderInfo.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 15591e9)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    73c9923 View commit details
    Browse the repository at this point in the history
  112. lxd: Update instance handlers to use (*State).LeaderInfo.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 458e458)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    26f9985 View commit details
    Browse the repository at this point in the history
  113. lxd: Update operation prune task to use (*State).LeaderInfo.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 5093829)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    897d1f7 View commit details
    Browse the repository at this point in the history
  114. lxd: Update database patch to use (*State).LeaderInfo.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 07a7c8f)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e436cc4 View commit details
    Browse the repository at this point in the history
  115. lxd/apparmor: Update with new lxd binary location in sbin

    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit 656bb30)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    cf16d20 View commit details
    Browse the repository at this point in the history
  116. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    9ef29f9 View commit details
    Browse the repository at this point in the history
  117. lxd/db: Linter fixes

    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit c48c20a)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    dade069 View commit details
    Browse the repository at this point in the history
  118. lxd/db/cluster: Differentiate errors returned by PendingTLSMetadata.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit b2dd68e)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    56d9333 View commit details
    Browse the repository at this point in the history
  119. lxd: Remove expired pending TLS identities in token prune task.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit de48dc3)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    fb8e5c8 View commit details
    Browse the repository at this point in the history
  120. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    058f4e1 View commit details
    Browse the repository at this point in the history
  121. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    6390316 View commit details
    Browse the repository at this point in the history
  122. lxd/sys/os: add InUbuntuCore() helper

    Signed-off-by: Alexander Mikhalitsyn <[email protected]>
    (cherry picked from commit d9be050)
    mihalicyn authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    96b75df View commit details
    Browse the repository at this point in the history
  123. 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)
    mihalicyn authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    128bb33 View commit details
    Browse the repository at this point in the history
  124. lxd/instance/instance_utils: forbid nvidia.runtime with Ubuntu Core

    Signed-off-by: Alexander Mikhalitsyn <[email protected]>
    (cherry picked from commit e322dff)
    mihalicyn authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    71e6e98 View commit details
    Browse the repository at this point in the history
  125. 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)
    mihalicyn authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    665e30a View commit details
    Browse the repository at this point in the history
  126. lxd/device/cdi/spec: check that pc-kernel snap is connected properly

    Signed-off-by: Alexander Mikhalitsyn <[email protected]>
    (cherry picked from commit 19f1c10)
    mihalicyn authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    51adc75 View commit details
    Browse the repository at this point in the history
  127. 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)
    boltmark authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    3e27622 View commit details
    Browse the repository at this point in the history
  128. 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)
    gabrielmougard authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b0c8365 View commit details
    Browse the repository at this point in the history
  129. 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)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    66b9664 View commit details
    Browse the repository at this point in the history
  130. lxc: Handle interupts properly to clean spice socket and avoid accumu…

    …lation
    
    Signed-off-by: Gabriel Mougard <[email protected]>
    (cherry picked from commit a2324dc)
    gabrielmougard authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    053ab3b View commit details
    Browse the repository at this point in the history
  131. lxd: Deduplicate image file deletion

    Signed-off-by: Mark Bolton <[email protected]>
    (cherry picked from commit 669fc6f)
    boltmark authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    1b9f8d4 View commit details
    Browse the repository at this point in the history
  132. lxd: Add internal testing handler to trigger token prune task.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit a8f95c5)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8bc7dd6 View commit details
    Browse the repository at this point in the history
  133. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0f92ac6 View commit details
    Browse the repository at this point in the history
  134. test/suites: Test the token pruning task removes expired pending TLS …

    …identities.
    
    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit f20f62d)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e1c3a98 View commit details
    Browse the repository at this point in the history
  135. test/suites: Test token prune task for certificate add token operations.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 86b65fe)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    175637a View commit details
    Browse the repository at this point in the history
  136. lxd/db: Implement DqliteDir

    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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    af89760 View commit details
    Browse the repository at this point in the history
  137. lxd/cluster: Use DqliteDir

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit a586c1f)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d34d97b View commit details
    Browse the repository at this point in the history
  138. lxd/cluster: Use DqliteDir

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 3f49b3a)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a083efb View commit details
    Browse the repository at this point in the history
  139. lxd/cluster/gateway_test: Use DqliteDir

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit a4b9cfe)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    35cd650 View commit details
    Browse the repository at this point in the history
  140. lxd/cluster/recover: Use DqliteDir

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 4b47681)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    6c81c05 View commit details
    Browse the repository at this point in the history
  141. 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)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    156b51c View commit details
    Browse the repository at this point in the history
  142. doc: Determine which LXD member is most up to date

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 5e6e651)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    33f3fe0 View commit details
    Browse the repository at this point in the history
  143. doc: Update MicroCloud reference

    Since MicroCloud is GA now
    
    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 9379532)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e308e0d View commit details
    Browse the repository at this point in the history
  144. api: sort GET /auth/permissions response

    Signed-off-by: Joel Lau <[email protected]>
    (cherry picked from commit 4fec134)
    JoelLau authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    4d3cac1 View commit details
    Browse the repository at this point in the history
  145. 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)
    mihalicyn authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8e2a691 View commit details
    Browse the repository at this point in the history
  146. doc/tutorial: specify LXD snap

    Signed-off-by: Minae Lee <[email protected]>
    (cherry picked from commit 4cfee29)
    minaelee authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d2aca8d View commit details
    Browse the repository at this point in the history
  147. lxd/instance/drivers/lxc: downgrade "Failed to statfs" error to warning

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit 827aab1)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    5bc7aee View commit details
    Browse the repository at this point in the history
  148. 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)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    f072da5 View commit details
    Browse the repository at this point in the history
  149. 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)
    mihalicyn authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    6d25641 View commit details
    Browse the repository at this point in the history
  150. docs: Improve Windows image conversion examples

    Signed-off-by: Din Music <[email protected]>
    (cherry picked from commit fbf993c)
    MusicDin authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    944c273 View commit details
    Browse the repository at this point in the history
  151. docs: Fix bare URL line numbers in exception list

    Signed-off-by: Din Music <[email protected]>
    (cherry picked from commit 3e35eb1)
    MusicDin authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    649ba0a View commit details
    Browse the repository at this point in the history
  152. github: Remove unused matrix.go references

    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit 309f982)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    445431c View commit details
    Browse the repository at this point in the history
  153. 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)
    MusicDin authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    bd12f91 View commit details
    Browse the repository at this point in the history
  154. shared/simplestreams: Replace shared.ValueInSlice with slices.Contains

    Signed-off-by: Din Music <[email protected]>
    (cherry picked from commit 3045ddd)
    MusicDin authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    47286ee View commit details
    Browse the repository at this point in the history
  155. 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)
    gabrielmougard authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8bc3cf9 View commit details
    Browse the repository at this point in the history
  156. docs: fix ovn ipv4/6 address description

    Signed-off-by: David Edler <[email protected]>
    (cherry picked from commit 6b94626)
    edlerd authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    93df53c View commit details
    Browse the repository at this point in the history
  157. github: Use cache in case Trivy DB download fails

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit a26caf6)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8ac952c View commit details
    Browse the repository at this point in the history
  158. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    7e14dd5 View commit details
    Browse the repository at this point in the history
  159. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    ca89690 View commit details
    Browse the repository at this point in the history
  160. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    1ca0963 View commit details
    Browse the repository at this point in the history
  161. 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)
    stgraber authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    75ca2c4 View commit details
    Browse the repository at this point in the history
  162. shared/api: Add TLSCertificate field to identity and identity PUT.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit dd62771)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    6df8c8a View commit details
    Browse the repository at this point in the history
  163. doc: Runs make update-api.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 261083e)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    3d6ee3e View commit details
    Browse the repository at this point in the history
  164. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0c1f6e4 View commit details
    Browse the repository at this point in the history
  165. lxd/db/cluster: Add TLSCertificate on Identity.ToAPI.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit f70b3e4)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a006a47 View commit details
    Browse the repository at this point in the history
  166. lxd: Return TLSCertificate when listing identities.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit d94fe9f)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    bb3a470 View commit details
    Browse the repository at this point in the history
  167. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    7b4ca6e View commit details
    Browse the repository at this point in the history
  168. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    5887431 View commit details
    Browse the repository at this point in the history
  169. lxd: Return a 400 for invalid certificates.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 90d3bdb)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    130f453 View commit details
    Browse the repository at this point in the history
  170. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e109cf0 View commit details
    Browse the repository at this point in the history
  171. lxd: Add certificate update functionality.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit a58dccc)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e6a4c9f View commit details
    Browse the repository at this point in the history
  172. test/suites: Add tests for TLS identity certificate update.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 6c8da65)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    817f4d0 View commit details
    Browse the repository at this point in the history
  173. lxd/instance/drivers: Make security.devlxd.images live-updatable.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 0229bbe)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b934a7e View commit details
    Browse the repository at this point in the history
  174. lxd/instance/instancetype: Update doc security.devlxd.images config…

    … key.
    
    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 0aa02a9)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    add16d6 View commit details
    Browse the repository at this point in the history
  175. {doc,lxd/metadata}: Runs make update-metadata.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 560ddbc)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    930fe3a View commit details
    Browse the repository at this point in the history
  176. lxd/auth/drivers: Mask errors returned by OpenFGADatastore.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 54b59a9)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0ee4653 View commit details
    Browse the repository at this point in the history
  177. test/suites: Use gen_cert_and_key in basic usage tests.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit f8d97c5)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e411ffe View commit details
    Browse the repository at this point in the history
  178. test/suites: Use gen_cert_and_key in remote admin tests.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 764f253)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    766d894 View commit details
    Browse the repository at this point in the history
  179. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    68a4451 View commit details
    Browse the repository at this point in the history
  180. lxd/auth/drivers: Add entitlement for viewing unmanaged networks.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 077bb5f)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    12ed6e8 View commit details
    Browse the repository at this point in the history
  181. lxd/auth: Runs make update-auth.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 8553692)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0b62617 View commit details
    Browse the repository at this point in the history
  182. {doc,lxd/metadata}: Runs make update-metadata.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 3bfe237)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    612bdd9 View commit details
    Browse the repository at this point in the history
  183. lxd/auth: Allow restricted TLS clients to view unmanaged networks.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 03dc344)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e97cecd View commit details
    Browse the repository at this point in the history
  184. lxd: Handle authorization for unmanaged networks.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 3fc7a95)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d939c1f View commit details
    Browse the repository at this point in the history
  185. test/suites: Include new server entitlement in tests.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit b66435f)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d23a50d View commit details
    Browse the repository at this point in the history
  186. doc/howto/initialize: fix broken link to maas docs

    Signed-off-by: Minae Lee <[email protected]>
    (cherry picked from commit 74a4990)
    minaelee authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    fae407c View commit details
    Browse the repository at this point in the history
  187. shared/usbid/parse: Match id's type to Protocol and ClassCode

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit 64377dc)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    2effe4e View commit details
    Browse the repository at this point in the history
  188. shared/usbid/parse: Use return expressions (revive)

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit 6f17147)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    83bef80 View commit details
    Browse the repository at this point in the history
  189. shared/usbid/parse: Comment spacing (revive)

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit a262fd0)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    c35bf3c View commit details
    Browse the repository at this point in the history
  190. github: Fix snap scanning

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit bbc85e5)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b335f5d View commit details
    Browse the repository at this point in the history
  191. lxd/instance/drivers/qemu: Add missing node name overflow handling

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 668d666)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    5c4ee2f View commit details
    Browse the repository at this point in the history
  192. lxd/instance/drivers: Deduplicate operationStatusCode logic

    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit 5b1e2e0)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    bac01c2 View commit details
    Browse the repository at this point in the history
  193. lxd/instance/drivers: Reduce chance of races during statusCode

    Fixes canonical#13453
    
    Signed-off-by: Wesley Hershberger <[email protected]>
    (cherry picked from commit a7e88b0)
    MggMuggins authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b5cd06c View commit details
    Browse the repository at this point in the history
  194. 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)
    mihalicyn authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a5ccf42 View commit details
    Browse the repository at this point in the history
  195. github: add download-minio action

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit 757e46b)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    469771e View commit details
    Browse the repository at this point in the history
  196. github: download minio/mc using action and as late as possible

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit cbaf1c3)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    2de2c64 View commit details
    Browse the repository at this point in the history
  197. 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)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    6d72de6 View commit details
    Browse the repository at this point in the history
  198. lxd/device: Update container only device options to use word container

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 79948f6)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b333f00 View commit details
    Browse the repository at this point in the history
  199. lxd/device: Split required device option metadata for usb 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)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b734744 View commit details
    Browse the repository at this point in the history
  200. doc: Update devices_unix_char docs to accurately convey device comp…

    …atibility
    
    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 32de1aa)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    4b1a972 View commit details
    Browse the repository at this point in the history
  201. doc: Update devices_unix_block docs to accurately convey device com…

    …patibility
    
    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit bc85891)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b7a0919 View commit details
    Browse the repository at this point in the history
  202. doc: Update devices_unix_hotplug docs to accurately convey device c…

    …ompatibility
    
    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit c9b5a11)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8b8a952 View commit details
    Browse the repository at this point in the history
  203. metadata: Run make update-metadata

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit b7d8247)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    3d2153e View commit details
    Browse the repository at this point in the history
  204. 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)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    24cba0e View commit details
    Browse the repository at this point in the history
  205. 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)
    stefanor authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    c1addc7 View commit details
    Browse the repository at this point in the history
  206. shared/entity: Add functions to create snapshot and backup URLs.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 5e1548c)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b3c5728 View commit details
    Browse the repository at this point in the history
  207. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    da59018 View commit details
    Browse the repository at this point in the history
  208. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    1e41102 View commit details
    Browse the repository at this point in the history
  209. lxd/auth: Run make update-auth.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 1c84225)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    dc94087 View commit details
    Browse the repository at this point in the history
  210. metadata: Run make update-metadata.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit e9fd600)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0da9283 View commit details
    Browse the repository at this point in the history
  211. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    36d8b7e View commit details
    Browse the repository at this point in the history
  212. lxd/db/openfga: Use entity types for parent-child relations.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit aaef11a)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    79afe81 View commit details
    Browse the repository at this point in the history
  213. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0b214a9 View commit details
    Browse the repository at this point in the history
  214. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    fe5d779 View commit details
    Browse the repository at this point in the history
  215. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    6818f33 View commit details
    Browse the repository at this point in the history
  216. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    2b36122 View commit details
    Browse the repository at this point in the history
  217. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    fdf7253 View commit details
    Browse the repository at this point in the history
  218. lxd: Update calls to the storage volume access handler.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 90bdff3)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    57efce6 View commit details
    Browse the repository at this point in the history
  219. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    4e0c7d0 View commit details
    Browse the repository at this point in the history
  220. test/suites: Add tests for storage pool used-by filtering.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 44e4a30)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d1c0ca7 View commit details
    Browse the repository at this point in the history
  221. Fix linter errors (revive: redefines-builtin-id).

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 0d3d40e)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    f8659c7 View commit details
    Browse the repository at this point in the history
  222. test/deps: Add python script to search for panics in LXD logs.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 7e64afd)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b6a0a07 View commit details
    Browse the repository at this point in the history
  223. github: unconditionally strip binaries and libs as late as possible

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit d1e6004)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    53a6b61 View commit details
    Browse the repository at this point in the history
  224. 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)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    4c989d9 View commit details
    Browse the repository at this point in the history
  225. Makefile: Bump min Go version to 1.23

    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit b8fa5e4)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    04a486d View commit details
    Browse the repository at this point in the history
  226. doc: Update min go version to 1.23

    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit 0da14e7)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8874365 View commit details
    Browse the repository at this point in the history
  227. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8588bcc View commit details
    Browse the repository at this point in the history
  228. 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)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0a7a65a View commit details
    Browse the repository at this point in the history
  229. test/includes: Run the panic checker killing any LXD daemon.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 484e2ae)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    9d97191 View commit details
    Browse the repository at this point in the history
  230. test: Run the panic checker on cleanup before setting +e.

    Signed-off-by: Mark Laing <[email protected]>
    (cherry picked from commit 9465252)
    markylaing authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    761d478 View commit details
    Browse the repository at this point in the history
  231. test/godeps: Update lists

    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit 1492337)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    c3e8366 View commit details
    Browse the repository at this point in the history
  232. 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)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0efa322 View commit details
    Browse the repository at this point in the history
  233. Revert "shared/api: Add guest attachment API responses."

    This reverts commit 0145719.
    
    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit dd6a47e)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    13cd1d3 View commit details
    Browse the repository at this point in the history
  234. 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)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    75387b8 View commit details
    Browse the repository at this point in the history
  235. Revert "lxd/ubuntupro: Add ubuntupro package."

    This reverts commit a776a06.
    
    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit ca995e0)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    50e70e8 View commit details
    Browse the repository at this point in the history
  236. Revert "lxd/state: Add ubuntupro.Client to state.State."

    This reverts commit 8e6ce55.
    
    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit 345e9b4)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    84ad497 View commit details
    Browse the repository at this point in the history
  237. Revert "lxd/state: Add ubuntupro.Client to Daemon."

    This reverts commit 42e3526.
    
    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit f69629a)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a44b606 View commit details
    Browse the repository at this point in the history
  238. 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)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8880a5e View commit details
    Browse the repository at this point in the history
  239. Revert "{doc,lxd/metadata}: Run make update-metadata."

    This reverts commit 05b7152.
    
    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit 1380841)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a9ff06a View commit details
    Browse the repository at this point in the history
  240. Revert "lxd: Add Ubuntu Pro handlers to devlxd."

    This reverts commit d62691f.
    
    Signed-off-by: Thomas Parrott <[email protected]>
    (cherry picked from commit 6d8c8fa)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    7810902 View commit details
    Browse the repository at this point in the history
  241. 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)
    tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    d420327 View commit details
    Browse the repository at this point in the history
  242. lxc/warning: Take --all into account when parsing args

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit 1d03270)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    f9b5f73 View commit details
    Browse the repository at this point in the history
  243. lxc/warning: Update lxc warning delete usage

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit e906c70)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    73d546e View commit details
    Browse the repository at this point in the history
  244. lxc/warning: Delete all warnings

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit 4090008)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    6783de7 View commit details
    Browse the repository at this point in the history
  245. test/warnings: Test deleting all warnings

    Signed-off-by: hamistao <[email protected]>
    (cherry picked from commit d92790d)
    hamistao authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a8a8808 View commit details
    Browse the repository at this point in the history
  246. github: add install-lxd-runtimedeps action

    Signed-off-by: Simon Deziel <[email protected]>
    (cherry picked from commit 27d9504)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0db7b97 View commit details
    Browse the repository at this point in the history
  247. lxd/device: Add support for discovering multiple unix hotplug devices

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit 5bf214f)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    3568664 View commit details
    Browse the repository at this point in the history
  248. lxd/device: Clean up comments

    Signed-off-by: Kadin Sayani <[email protected]>
    (cherry picked from commit bae1f69)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    08bb310 View commit details
    Browse the repository at this point in the history
  249. 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)
    kadinsayani authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    bd662f7 View commit details
    Browse the repository at this point in the history
  250. 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)
    simondeziel authored and tomponline committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    9f7036b View commit details
    Browse the repository at this point in the history