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

Import LXD changes from stable-5.0 #988

Merged
merged 79 commits into from
Jul 13, 2024
Merged

Import LXD changes from stable-5.0 #988

merged 79 commits into from
Jul 13, 2024

Commits on Jul 12, 2024

  1. [lxd-import] github: stop purging core20

    This was risky because if another snap (like mdl) moved to a core20 base, we'd
    be removing core20 just to download it again.
    
    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    (cherry picked from commit 3491b6e2e11d8fde67c58878a3a23fe75944da9f)
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    4802dfe View commit details
    Browse the repository at this point in the history
  2. [lxd-import] github: purge disabled/superseded snaps

    This is to reclaim some space.
    
    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    (cherry picked from commit 875480ca306b421442bb7ebbce45ff2634b2cea8)
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    ff1139c View commit details
    Browse the repository at this point in the history
  3. [lxd-import] github: move snap removal to "Reclaim some space" step

    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    (cherry picked from commit b7656135800b9e3d3d27b209700f52e6d2dd2ebf)
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    759d9ae View commit details
    Browse the repository at this point in the history
  4. [lxd-import] github: put docker removal its own step

    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    (cherry picked from commit 117e76b35d1f2f560299e6836797cf1fa3d395b5)
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    a9f71e8 View commit details
    Browse the repository at this point in the history
  5. [lxd-import] github: mask lxc{,-net}.service in a singe command

    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    (cherry picked from commit d5c5c7d7799c23553bc5eed1db1effd0f90ed5d9)
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    757aa2a View commit details
    Browse the repository at this point in the history
  6. [lxd-import] lxd/instance/drivers/driver/qemu: Don't leak file descri…

    …ptor when probing for Direct I/O support
    
    Fixes #12808
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    (cherry picked from commit d0b991dca948d400b31f724a5d4ea6b274bf6763)
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    75a5821 View commit details
    Browse the repository at this point in the history
  7. [lxd-import] lxd/network/acl: Change protocol field for ovn logs

    ovn-controller.log no longer reports the protocol on the `severity`
    field, instead including it with the `direction` field.
    
    Previously, the log line would include:
      severity=info: tcp
    
    Whereas now, it simply reports the log level:
      severity=info
    
    The protocol is now reported as with the direction:
      direction=to-lport: icmp
    
    Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
    (cherry picked from commit f4d093fc0e00d7f68483eccdeea84c0534eeb223)
    masnax authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1c675aa View commit details
    Browse the repository at this point in the history
  8. [lxd-import] lxd/instance: Reject limits.kernel config for VMs

    Fixes #12874
    
    Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
    (cherry picked from commit f0d0128ed636065080607170969244033b2d4616)
    MggMuggins authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    2582864 View commit details
    Browse the repository at this point in the history
  9. [lxd-import] doc: limits.kernel only applies to containers (see #12…

    …874)
    
    Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
    (cherry picked from commit 14da90f72592a7c3cf32dae85d0cfa245cc92d46)
    MggMuggins authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    bfbc3e8 View commit details
    Browse the repository at this point in the history
  10. [lxd-import] lxd/storage: Fix resize for pools with custom zfs.pool_name

    Resolves #13038
    
    Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
    (cherry picked from commit f76c8bcf52ade8a18aa47c9ddf5ea9cc072d4376)
    MggMuggins authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    f3c5660 View commit details
    Browse the repository at this point in the history
  11. [lxd-import] lxd/storage/drivers/driver_zfs_utils: fix typos

    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    550cb34 View commit details
    Browse the repository at this point in the history
  12. [lxd-import] lxd/storage/drivers/driver_zfs_utils: make it explicit t…

    …hat blocksize is in bytes
    
    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    e0342b8 View commit details
    Browse the repository at this point in the history
  13. [lxd-import] lxd/task/group: Make cancel type of context.CancelFunc f…

    …or clarity
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    0453d0a View commit details
    Browse the repository at this point in the history
  14. [lxd-import] doc: Add paragraph on how to delete images

    Signed-off-by: ggouzi <gaetan.gouzi@canonical.com>
    ggouzi authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    f26bae1 View commit details
    Browse the repository at this point in the history
  15. [lxd-import] test: Add exec exit code test

    Signed-off-by: Din Music <din.music@canonical.com>
    MusicDin authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    6f9bb38 View commit details
    Browse the repository at this point in the history
  16. [lxd-import] lxd/apparmor: allow confined services to receive require…

    …d signals
    
    Allow dnsmasq to be restarted / killed and remove the peer restriction on the
    signal rule for the archive profile to ensure it can be sent by a lxd which is
    confined under a profile with the unconfined flag.
    
    Signed-off-by: Alex Murray <alex.murray@canonical.com>
    alexmurray authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    504ef33 View commit details
    Browse the repository at this point in the history
  17. [lxd-import] lxd/rsync: Consistently compare files on nanosecond basis

    Starting with rsync 3.1.3 using a negative window will take nanoseconds into account.
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    98e7f61 View commit details
    Browse the repository at this point in the history
  18. [lxd-import] test/suites/migration: Check for file contents after ref…

    …resh
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    3e18a4e View commit details
    Browse the repository at this point in the history
  19. [lxd-import] test/suites/migration: Check local and remote instance r…

    …efreshes based on nanoseconds
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    0e61e82 View commit details
    Browse the repository at this point in the history
  20. [lxd-import] doc: add paragraph on how to delete images

    Signed-off-by: ggouzi <gaetan.gouzi@canonical.com>
    ggouzi authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    a114cac View commit details
    Browse the repository at this point in the history
  21. [lxd-import] doc: enable multiprocessing for pyspelling

    Pyspelling has a new option to run jobs in parallel.
    This should make the spelling check considerably faster.
    
    Signed-off-by: Ruth Fuchss <ruth.fuchss@canonical.com>
    ru-fu authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    99c7cfd View commit details
    Browse the repository at this point in the history
  22. [lxd-import] Makefile: have run-parts report which script it runs

    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    5ee3277 View commit details
    Browse the repository at this point in the history
  23. [lxd-import] lxd/storage/drivers/ceph: Disable filesystem config keys…

    … on block volumes
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    92aad5c View commit details
    Browse the repository at this point in the history
  24. [lxd-import] lxd/storage/drivers/lvm: Disable filesystem config keys …

    …on block volumes
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    8d8e4b3 View commit details
    Browse the repository at this point in the history
  25. [lxd-import] test: Add check to restore custom volumes of type block

    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    b8265bf View commit details
    Browse the repository at this point in the history
  26. [lxd-import] lxd/storage/drivers/ceph: Update UnmountVolumeSnapshot d…

    …ocstring
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    5c8bad0 View commit details
    Browse the repository at this point in the history
  27. [lxd-import] lxd: Improve error check for existing certificates

    The previous error message didn't exist anymore. A good example of why
    not to use hard-coded error messages :)
    
    Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
    masnax authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    a112563 View commit details
    Browse the repository at this point in the history
  28. [lxd-import] shared/api: Updates swagger description for certificate …

    …field.
    
    Signed-off-by: Mark Laing <mark.laing@canonical.com>
    markylaing authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    8e0fb7f View commit details
    Browse the repository at this point in the history
  29. [lxd-import] shared/api: Fix lint errors (receiver-naming).

    Signed-off-by: Mark Laing <mark.laing@canonical.com>
    markylaing authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    5e1bb54 View commit details
    Browse the repository at this point in the history
  30. [lxd-import] lxd/db/cluster: Fix lint error (revive: var-naming).

    Signed-off-by: Mark Laing <mark.laing@canonical.com>
    markylaing authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    808b09e View commit details
    Browse the repository at this point in the history
  31. [lxd-import] lxd-migrate: Ignore lint error (revive: deep-exit).

    Signed-off-by: Mark Laing <mark.laing@canonical.com>
    markylaing authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    a636145 View commit details
    Browse the repository at this point in the history
  32. [lxd-import] lxc/remote: Fix lint errors (revive: exported).

    Signed-off-by: Mark Laing <mark.laing@canonical.com>
    markylaing authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    b719a16 View commit details
    Browse the repository at this point in the history
  33. [lxd-import] lxd/storage/backend: Don't validate custom storage volum…

    …es twice
    
    This was added in https://github.com/lxc/incus/pull/6369 but is redundant since the same check is
    also happening afterwards when creating the actual DB record
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1ce1b5f View commit details
    Browse the repository at this point in the history
  34. [lxd-import] lxd-generate: Return helpful error instead of panicking.

    Incus generate cannot create update method for associative tables if
    the reference table has more than one "natural key" or if it doesn't
    have a field called 'Name' or 'Fingerprint'. In the former case it
    will fail silently (generating incorrect methods). In the latter case
    it will panic.
    
    This commit returns a helpful error message instead.
    
    Signed-off-by: Mark Laing <mark.laing@canonical.com>
    markylaing authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    124b51c View commit details
    Browse the repository at this point in the history
  35. [lxd-import] lxd/storage/backend: Use quotes consistently for error m…

    …essages
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    5690dd9 View commit details
    Browse the repository at this point in the history
  36. [lxd-import] lxd/project: Don't panic on StorageVolumeParts

    Don't panic if the given volume name doesn't contain a project
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    2f195fb View commit details
    Browse the repository at this point in the history
  37. [lxd-import] github: don't abort on remount failures

    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    0b3596c View commit details
    Browse the repository at this point in the history
  38. [lxd-import] test/main: add log grouping (GHA)

    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    0eac391 View commit details
    Browse the repository at this point in the history
  39. [lxd-import] test/main: show dmesg on failure

    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    e08baae View commit details
    Browse the repository at this point in the history
  40. [lxd-import] lxd/api/internal: Use correct quoting for error in inter…

    …nalImportFromBackup
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    5554339 View commit details
    Browse the repository at this point in the history
  41. [lxd-import] lxd/db/cluster/devices: Use correct string quoting of de…

    …vice type for error in NewDeviceType
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    7c794c0 View commit details
    Browse the repository at this point in the history
  42. [lxd-import] lxd/instances/post: Improve error in createFromBackup

    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    45e17ba View commit details
    Browse the repository at this point in the history
  43. [lxd-import] lxd/storage/backend/lxd: Update backup.yaml after instan…

    …ce and volume DB records have been generated in CreateInstanceFromBackup
    
    This ensures any device modifications are applied to the on-disk backup.yaml file.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    6047f49 View commit details
    Browse the repository at this point in the history
  44. [lxd-import] test/main: don't wrap tests logs in log groups

    Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
    simondeziel authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    08582ef View commit details
    Browse the repository at this point in the history
  45. [lxd-import] lxd/device/disk: Remove config.iso file when the cloud-i…

    …nit:config disk device is removed
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    c509619 View commit details
    Browse the repository at this point in the history
  46. [lxd-import] lxd/images: Add project to error in autoSyncImages

    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    ac28c49 View commit details
    Browse the repository at this point in the history
  47. [lxd-import] lxd/project/project: Remove optimisation from StorageVol…

    …umeProject
    
    This was causing the unvalidated request project name to be used directly in storage layer sometimes.
    
    https://github.com/lxc/incus/security/code-scanning/147
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    ce8fc8b View commit details
    Browse the repository at this point in the history
  48. [lxd-import] lxd/storage/volumes: Remove unnecessary 2 line variable …

    …definition in doCustomVolumeRefresh
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    16e9769 View commit details
    Browse the repository at this point in the history
  49. [lxd-import] lxd/storage/volumes: Remove unnecessary 2 line variable …

    …definition in doVolumeCreateOrCopy
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    c0197df View commit details
    Browse the repository at this point in the history
  50. [lxd-import] lxd/storage/volumes: Validate source project in doCustom…

    …VolumeRefresh
    
    And convert to effective project name.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    795308f View commit details
    Browse the repository at this point in the history
  51. [lxd-import] [lxd-import] lxd/storage/volumes: Validate source projec…

    …t in doVolumeCreateOrCopy
    
    And convert to effective project name.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    7445e14 View commit details
    Browse the repository at this point in the history
  52. [lxd-import] lxd/db/cluster: Remove redunant parentheses.

    Signed-off-by: Mark Laing <mark.laing@canonical.com>
    markylaing authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    407d111 View commit details
    Browse the repository at this point in the history
  53. [lxd-import] lxd/db/cluster: Rename "node" to "cluster member".

    Additionally, capitalise error messages.
    
    Signed-off-by: Mark Laing <mark.laing@canonical.com>
    markylaing authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    7556c7a View commit details
    Browse the repository at this point in the history
  54. [lxd-import] lxd/migrate/storage/volumes: Use volume name from DB in …

    …migrationSourceWs.DoStorage
    
    This fixes https://github.com/lxc/incus/security/code-scanning/147
    
    Although wasn't an actual security problem because the DB check would fail the request if
    the volume specified didn't exist rather than passing unverified input to the storage layer.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    accb670 View commit details
    Browse the repository at this point in the history
  55. [lxd-import] lxd/network/network/utils: Fix incorrect conversion from…

    … int64 to int in inRoutingTable
    
    Fixes https://github.com/lxc/incus/security/code-scanning/32 by using arch dependent int size in ParseInt() so its compatible with net.CIDRMask.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    2c584a8 View commit details
    Browse the repository at this point in the history
  56. [lxd-import] lxd/network/network/utils: Remove unnecessary call to fm…

    …t.Sprintf by passing base to ParseInt
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    01ed53e View commit details
    Browse the repository at this point in the history
  57. [lxd-import] lxd/response: Use SmartError if SyncResponse success=false

    SyncResponse's `success` field can hint that SyncResponse can
    potentially handle errors. However, when an error is passed in like so:
    ```
    err = ceph.ServicePlacementHandler(interfaces.CephState{State: s}, payload)
        if err != nil {
            return response.SyncResponse(false, err)
        }
    ```
    
    But the syncResponse does not set the `error` field of the response, so
    the result has no metadata or error:
    ```
    {
        "type": "sync",
        "status": "Failure",
        "status_code": 400,
        "operation": "",
        "error_code": 0,
        "error": "",
        "metadata": {}
    }
    ```
    
    It seems `SyncResponse(false, ...)` is never used in the Incus
    codebase for any reason, so I think it's safe to just handle this
    type of response like an error. So I've changed `Render` to just
    fallback to a SmartError, which will also try to maintain the http
    information from the underlying error.
    
    Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
    masnax authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    ea898b5 View commit details
    Browse the repository at this point in the history
  58. [lxd-import] lxd/storage/drivers/driver/zfs/volumes: Fix error scopin…

    …g in CreateVolumeFromCopy
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    733e993 View commit details
    Browse the repository at this point in the history
  59. [lxd-import] lxd/storage/drivers/driver/zfs/volumes: Define send/rece…

    …ive channels together in CreateVolumeFromCopy
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    7983fcb View commit details
    Browse the repository at this point in the history
  60. [lxd-import] lxd/storage/drivers/driver/zfs/volumes: Kill sender if r…

    …eceiver fails in CreateVolumeFromCopy
    
    As sender has by definition already ended.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    e6bae2b View commit details
    Browse the repository at this point in the history
  61. [lxd-import] lxd/storage/drivers/driver/zfs/volumes: Handle multi-lin…

    …e errors in CreateVolumeFromCopy
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    bfa8e7b View commit details
    Browse the repository at this point in the history
  62. [lxd-import] lxd/storage/drivers/driver/btrfs/volumes: Fix hang when …

    …btrfs receive fails in RefreshVolume
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    371ac6c View commit details
    Browse the repository at this point in the history
  63. [lxd-import] lxd/storage/drivers/driver/btrfs/volumes: Handle multi-l…

    …ine errors in RefreshVolume
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    40c51d5 View commit details
    Browse the repository at this point in the history
  64. [lxd-import] lxd/storage/drivers/driver/zfs/volumes: Aligns RefreshVo…

    …lume with BTRFS driver
    
    For consistency.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    65bde19 View commit details
    Browse the repository at this point in the history
  65. [lxd-import] lxd/response: Fallback to error response after setting h…

    …eaders
    
    Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
    masnax authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    b2bf022 View commit details
    Browse the repository at this point in the history
  66. [lxd-import] lxd/storage/backend/lxd: Use volume name from VolumeDBGe…

    …t in BackupCustomVolume
    
    Fixes https://github.com/lxc/incus/security/code-scanning/142
    
    Although not an actual security issue because the VolumeDBGet was already validating
    the input was a valid volume name.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    988a4f6 View commit details
    Browse the repository at this point in the history
  67. [lxd-import] lxd/storage/drivers/btrfs: Clarify fallback in case UUID…

    … discovery times out
    
    Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
    roosterfish authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    506afcd View commit details
    Browse the repository at this point in the history
  68. incusd/db/cluster: Fix import shadowing

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    ba343e0 View commit details
    Browse the repository at this point in the history
  69. doc/rest-api: Refresh swagger YAML

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    5e199b4 View commit details
    Browse the repository at this point in the history
  70. [lxd-import] lxd/db/cluster: Update error messages in unit tests.

    Signed-off-by: Mark Laing <mark.laing@canonical.com>
    markylaing authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    898e5d7 View commit details
    Browse the repository at this point in the history
  71. [lxd-import] lxd/storage/drivers: Add volume param to roundVolumeBloc…

    …kSizeBytes
    
    Need to be able to check the block size associatd with a volume for zfs
    (see next commit)
    
    Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
    MggMuggins authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    c6107dd View commit details
    Browse the repository at this point in the history
  72. [lxd-import] lxd/storage/drivers/zfs: Round to zfs.blocksize or 16KiB

    Fixes #13420
    
    Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
    MggMuggins authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    ce52be2 View commit details
    Browse the repository at this point in the history
  73. [lxd-import] test/storage: Add non-power-of-two sized storage check

    Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
    MggMuggins authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    aa53cea View commit details
    Browse the repository at this point in the history
  74. [lxd-import] test/storage: Remove zfs rounding test

    This test will be added to lxd-ci in https://github.com/lxc/incus-ci/pull/175
    
    It doesn't fit well anywhere in this suite as it requires a VM image.
    
    Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
    MggMuggins authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1d3d2b9 View commit details
    Browse the repository at this point in the history
  75. [lxd-import] lxd/storage/drivers: Refactor volume size rounding logic

    Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
    MggMuggins authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1cd1508 View commit details
    Browse the repository at this point in the history
  76. [lxd-import] lxd/storage/drivers/zfs: Wait for device to appear when …

    …activating a volume
    
    Instead of giving a udev rules half a second to be applied, wait for the device
    up to 30 seconds to appear. This fixes the issue where zvol device cannot be located
    if the rules are not applied in time.
    
    Signed-off-by: Din Music <din.music@canonical.com>
    MusicDin authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    c3764e9 View commit details
    Browse the repository at this point in the history
  77. [lxd-import] lxd/storage/drivers/zfs: Check for non /dev/zvol/* paths

    Signed-off-by: Din Music <din.music@canonical.com>
    MusicDin authored and stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    d6411f8 View commit details
    Browse the repository at this point in the history
  78. incusd/storage/zfs: Fix import shadowing

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    166cf3f View commit details
    Browse the repository at this point in the history
  79. doc/storage_backup: Fix command example

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    71b0e89 View commit details
    Browse the repository at this point in the history