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

Add lxd charm howto #395

Merged
merged 4 commits into from
Aug 13, 2024
Merged

Add lxd charm howto #395

merged 4 commits into from
Aug 13, 2024

Conversation

evilnick
Copy link
Contributor

@evilnick evilnick commented May 2, 2024

I've added some instructions for managing the LXD profile when deploying the charm

I have covered the case for deploying to localhost

Currently as a draft because:

  • I'm not sure of the best way of tackling the case e.g. of bundles. How can we edit the profiles on a machine which hasn't been created yet?

@addyess
Copy link
Contributor

addyess commented Aug 8, 2024

@evilnick i don't think there's anything we can do to tackle bundles. Juju doesn't let one set a per-app lxd-profile. Its either the model entirely -- or nothing. Every app in the model will use the same lxd profiles.

You can however prepare the profile before the machines are created. As you've defined in this doc, having the juju-<model> profile is the correct way to setup the profile before the machines are started.

@addyess
Copy link
Contributor

addyess commented Aug 8, 2024

I've also created a new task card to have the charm (heck -- maybe the snap) detect the virtual machine type and to warn users when they may not have their lxd-profiles correct instead of the snap just not working, and requiring people to dig through kubelet logs trying to find out why cgroups aren't correct or loop devices don't exist.

@evilnick evilnick marked this pull request as ready for review August 13, 2024 14:05
@evilnick evilnick requested a review from a team as a code owner August 13, 2024 14:06
@evilnick
Copy link
Contributor Author

Don't worry about the moonray failure, this branch is from the before-times

Copy link
Contributor

@addyess addyess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go! Nice Nick

@addyess addyess merged commit 528e4c0 into canonical:main Aug 13, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants