Unsupported container runtime 'lxc' with facter 4.8.0+ / nightly
torstenfohrer opened this issue · 9 comments
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
- Setup a lxc
- Install puppet-agent 8.8.0 (aka 8.7.0.38.gc055f2ce8-1noble)
- Simple run
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
- Puppet agent 8.8.0, (nightly 8.7.0.38.gc055f2ce8-1noble)
- Facter 4.8.0
- Ubuntu 20.04, 22.04, 24.04
Additional Context
See also at systemd source: https://github.com/systemd/systemd/blob/cd8eb9605f1a1f2fe1180382201d23548cad7a1c/src/nspawn/nspawn.c#L3500
@lollipopman 7bc38cc may have broken lxc could you take a look?
This is caused by #2574
Hi,
i also have the same issue inside lxc container
facter is_virtual
[2024-07-29 08:46:41.170292 ] WARN Facter::Resolvers::Containers - Container runtime, 'lxc', is unsupported, setting to, 'container_other'
true
same here on debian guest all facter virtual fail to work with lxd.
[~]: facter virtual
[2024-07-29 15:35:28.953018 ] WARN Facter::Resolvers::Containers - Container runtime, 'lxc', is unsupported, setting to, 'container_other'
container_other
completly broke a lot of pp script and templates :(
[~]: facter version
4.8.0
ii puppet-agent 7.32.1-1bookworm amd64 The Puppet Agent package contains ....
ii puppet7-release 7.0.0-20bookworm all Release packages for the Puppet 7 repository
@lollipopman 7bc38cc may have broken lxc could you take a look?
will do
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
ii puppet-agent 7.32.1-1focal amd64 The Puppet Agent package contains all of the elements needed to run
[~]: puppet facts|grep virtual
Warning: Facter: Container runtime, 'lxc', is unsupported, setting to, 'container_other'
"is_virtual": true,
"virtual": "container_other",
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,
Ghislain.
I don't think the fix has made it into any release, you would need to use git HEAD
to test.
$ git tag --contains c609d1c9f