Skip to content

Commit 7bc38ccb has broken libvirt-lxc containers detection #2759

@turchanov

Description

@turchanov

Commit 7bc38cc that solves FACT-3202 has broken libvirt-lxc containers detection

Warning: Facter: Container runtime, 'lxc-libvirt', is unsupported, setting to 'container_other'

Before the commit facter code in read_cgroup matched "lxc" on a prefix match, that is any container runtime that was named with prefix "lxc" would have satisfied the test, and an environment string "container=lxc-libvirt" will be detected as a container runtime

https://github.com/puppetlabs/facter/blame/05e4387c8de085a44ff5cfbe02081703dbbf5d60/lib/facter/resolvers/containers.rb#L27

          lxc_from_environ = /container=lxc/ =~ output_environ

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedJira issue has been created for this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions