-
Notifications
You must be signed in to change notification settings - Fork 495
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
Unsupported container runtime 'lxc' with facter 4.8.0+ / nightly #2737
Comments
@lollipopman 7bc38cc may have broken lxc could you take a look? |
This is caused by #2574 |
Hi, facter is_virtual |
same here on debian guest all facter virtual fail to work with lxd. [~]: facter virtual completly broke a lot of pp script and templates :( [~]: facter version ii puppet-agent 7.32.1-1bookworm amd64 The Puppet Agent package contains .... |
will do |
Commit 7bc38cc removed the regex matching for lxc, /container=lxc/, and instead matched the env var exactly, using the value lxcroot from the rspec test. However, I can find no evidence that lxc ever sets container to anything other than lxc, so change lxcroot to lxc[1]. [1]: https://codesearch.debian.net/search?q=container%3Dlxc&literal=1 https://github.com/search?q=container%3Dlxcroot&type=code Fixes: puppetlabs#2737
Can folks on this thread try out @lollipopman patch in #2741? |
Migrated issue to FACT-3477 |
hi, just FYI the issue still exist for me [~]: dpkg -l 'puppet'|grep ii [~]: puppet facts|grep virtual i cannot follow the link to https://perforce.atlassian.net/browse/FACT-3477 to see the rest but this vital fact is still not working on lxc/lxd for me :) best regards, |
I don't think the fix has made it into any release, you would need to use
|
Describe the Bug
Since facter 4.8.0 we getting unsupported container runtime 'lxc'
Problem origin here facter source
Expected Behavior
Support 'lxc' as runtime again, perhaps additional to 'lxcroot'
Steps to Reproduce
facter
resulting in following output (stripped down)[2024-07-08 10:23:33.166466 ] WARN Facter::Resolvers::Containers - Container runtime, 'lxc', is unsupported, setting to, 'container_other'
Environment
Additional Context
See also at systemd source: https://github.com/systemd/systemd/blob/cd8eb9605f1a1f2fe1180382201d23548cad7a1c/src/nspawn/nspawn.c#L3500
The text was updated successfully, but these errors were encountered: