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 (last batch before the re-licensing) #300

Merged
merged 9 commits into from
Dec 13, 2023

Conversation

stgraber
Copy link
Member

@stgraber stgraber commented Dec 13, 2023

Those are the remaining commits from the LXD repository prior to its re-licensing under the incompatible AGPLv3 license, no further changes will be imported from LXD.

markylaing and others added 9 commits December 12, 2023 23:10
This commit does the following:
1. Adds the 'revive' linter and appropriate rule configuration. I have
   added all of the rules that I thought would be useful. There are many
   more rules that can be included (please see https://github.com/ -
   mgechev/revive/blob/2a1701aadbedfcc175cb92836a51407bec382652/ -
   RULES_DESCRIPTIONS.md#description-of-available-rules).
2. Sets 'exclude-use-default' under issues. This is required for
   golangci-lint to stop ignoring errors from revive's 'exported' rule.
   However, it also has the side effect that the default excludes for
   default linters are no longer set. This means we need to set some
   excluded functions in the configuration of 'errcheck'.

Signed-off-by: Mark Laing <[email protected]>
…ts from switch.

These lint errors were previously ignored by default but are now
displaying because of the change to the .golangci.yml file which set
'exclude-use-default' to false.

Signed-off-by: Mark Laing <[email protected]>
There are thousands of revive rule errors. To avoid having to fix all of
these immediately we can invoke golangci-lint using the '--new' and pass
in a revision. In this script the revision is determined by the most
recent commit in the target branch, defaulting to 'main' for
'GITHUB_BASE_REF' when running in CI.

Signed-off-by: Mark Laing <[email protected]>
This will now be invoked via 'run-parts', which runs all of the scripts
under test/lint (including our new 'golangci.sh' script).

Signed-off-by: Mark Laing <[email protected]>
…socket if established in ExecInstance

Signed-off-by: Thomas Parrott <[email protected]>
…err output if writer(s) not supplied in ExecInstance

Fixes #12636

Signed-off-by: Thomas Parrott <[email protected]>
…reate pools

You can now automatically create the required file system and pools
when setting up a CephFS storage pool.

Signed-off-by: Ruth Fuchss <[email protected]>
@github-actions github-actions bot added the Documentation Documentation needs updating label Dec 13, 2023
@hallyn hallyn merged commit 14c35fe into lxc:main Dec 13, 2023
25 checks passed
@stgraber stgraber deleted the import branch December 15, 2023 02:54
@TCB13
Copy link

TCB13 commented Dec 20, 2023

So... Canonical decided to completely take over LXD and since it wasn't enough they also decided to kill Incus or any other fork that could benefit from Canonical's commits but be community driven.

@stgraber what does this re-licensing mean for the future of this project?

@stgraber
Copy link
Member Author

It just means we can't look at anything going into the LXD repository and so will have to duplicate work on fixing bugs or introducing features our users want.

That's mostly a waste of both projects' time and will cause the two to diverge faster than would have otherwise happened.

But it's not going to be the end of Incus, far from it. This latest move has attracted a fair amount of LXD users and contributors to jump ship and come to Incus instead. So if anything we're going to have a stronger project out of it.

@TCB13
Copy link

TCB13 commented Dec 20, 2023

But it's not going to be the end of Incus, far from it. This latest move has attracted a fair amount of LXD users and contributors to jump ship and come to Incus instead. So if anything we're going to have a stronger project out of it.

I'm all for jumping ship, no doubts there, better yet once Debian starts packing Incus, I guess around Debian 13.

With that said, yes, this is a waste of time, and more importantly funding. Canonical has big money to develop LXD and now I hope you and the other amazing people that will spend a TON of time improving Incus are properly funded / payed for their time.

Btw, only now I found your post about it. https://stgraber.org/2023/12/12/lxd-now-re-licensed-and-under-a-cla/

Thank you for all the great work.

@stgraber
Copy link
Member Author

With that said, yes, this is a waste of time, and more importantly funding. Canonical has big money to develop LXD and now I hope you and the other amazing people that will spend a TON of time improving Incus are properly funded / payed for their time.

Well, the LXD team is pretty well funded but a lot of those folks don't really work on LXD itself. These days there are only really 3 people working full time on LXD itself, the rest are part-time at best. Of those 3, 2 joined within the past 6 months so are still getting up to speed.

Whereas on our side, I'm working on it full-time and we have all the original LXD developers on the team as part-time maintainers. So which of the two is better staffed these days is up for debate ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Documentation needs updating
Development

Successfully merging this pull request may close these issues.

6 participants