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

Restart LXD on MicroCloud start to refresh symlinks #136

Merged
merged 3 commits into from
Jul 24, 2023

Commits on Jul 24, 2023

  1. microcloud/service/lxd: Add Restart helper to LXD service

    Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
    masnax committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    55c2a8f View commit details
    Browse the repository at this point in the history
  2. microcloud/service/service/handler: Restart LXD before init

    Sets LXD to restart at three points:
      1) When MicroCloud first starts (to avoid a potential lag on all
         peers when fetching resources as LXD sets up for the first time)
      2) When the user invokes `microcloud init`, to ensure LXD is set up
         properly with the correct symlinks for microcloud
      3) When a MicroCloud daemon receives a join request for LXD, to
         ensure the above for all joining nodes.
    
    Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
    masnax committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    b9681a8 View commit details
    Browse the repository at this point in the history
  3. microcloud/service/lxd: Check if LXD is initialized before restarting

    Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
    masnax committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    80f4f03 View commit details
    Browse the repository at this point in the history