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

lxd/image: set Cached: false for pre-existing cached image #13296

Commits on Apr 11, 2024

  1. lxd/db/images: Add UnsetImageCached to disable the cached field

    Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
    gabrielmougard committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    6b72615 View commit details
    Browse the repository at this point in the history
  2. lxd: ImageDownload now checks for an explicit copy operation and ev…

    …entually uncache the image
    
    If the image already exists, is cached and that it is requested to be downloaded from an explicit `image copy` operation,
    then disable its `cache` parameter so that it won't be candidate for auto removal.
    
    Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
    gabrielmougard committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    99c8974 View commit details
    Browse the repository at this point in the history
  3. lxd: Signal to ImageDownload when an explicit image copy is happening

    Now, only `imgPostRemoteInfo()` and `imgPostURLInfo()` calling `ImageDownload`
    are used for an explicit image copy operation.
    
    Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
    gabrielmougard committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    1fc380f View commit details
    Browse the repository at this point in the history
  4. tests/remote_usage: Add integration tests

    Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
    gabrielmougard committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    35f93bb View commit details
    Browse the repository at this point in the history