-
Notifications
You must be signed in to change notification settings - Fork 162
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
Fix libcgroup dependency in Ubuntu 22.10 and newer #163
Conversation
This is also an issue for debian 12, would be good if the same fix could be applied for that as per cgroup-bin below |
@deltabweb maybe you can change line 7 to:
So the fix also works for Debian 12. |
@beechesII Sounds good, I have just updated the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
tested with debian 12 - libcgroup2 will be installed and nomad installation via role works
@lanefu can we please merge this to master?
I actually had a different solution to this on my end - just remove libcgroupN from the deps list entirely It's not used directly as far I can tell and it's pulled in by cgroups-bin / cgroups-tools anyway - just let the package manager worry about it |
I'm not sure if every package manger will install libcgroup1 or libcgroup2 as a dependency. I only found information about this for debian. Therefore I think we shouldn't delete the installation for these packages. |
@bbaassssiiee @lanefu please have a look. |
@deltabweb can you please update your actual master. I added molecule tests for the role. Your PR should fix the tests for debian 12 and ubuntu 23.04. |
@beechesII I've just updated master with a merge commit, let me know if I should rebase instead |
I tried to run the role on Ubuntu 23.04 and got an error about the package
libcgroup1
not existing.After checking https://launchpad.net/ubuntu/+source/libcgroup, it looks like the package was renamed to
libcgroup2
in Ubuntu 22.10Both
libcgroup1
andlibcgroup2
seem to actually use the version 2 of libcgroupI installed nomad successfully on Ubuntu 23.04 with this fix