Jira (FACT-2990) Rework virtualization facts/resolvers/helpers

6 views
Skip to first unread message

Gabriel Nagy (Jira)

unread,
Mar 19, 2021, 10:34:03 AM3/19/21
to puppe...@googlegroups.com
Gabriel Nagy created an issue
 
Facter / Improvement FACT-2990
Rework virtualization facts/resolvers/helpers
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2021/03/19 7:33 AM
Labels: tech-debt
Priority: Normal Normal
Reporter: Gabriel Nagy

Currently the virtual-related facts are a mess on Facter 4. The directory structure doesn't match between Linux and Windows and it's not obvious which resolvers and helpers are for Windows and which are for Linux.

For example, you might think the Facter::Resolvers::Virtualization resolver is platform-agnostic, but if you search for the file itsef, you'll find it in lib/facter/resolvers/windows/virtualization.rb which suggests it's Windows-specific.

On Windows, the virtualization facts are under lib/facter/facts/windows/virtualization/{virtual,is_virtual}.rb, Linux has them under lib/facter/facts/linux/{virtual,is_virtual}.rb.

On Linux, the facts are resolved using Facter::Util::Facts::VirtualDetector, which you may think is platform-agnostic, but once again it appears to be Linux/POSIX-only, as HyperV Windows machines are detected as physical.

The scope of this ticket is to unify the behaviors as much as possible, as the current implementation can cause lots of misconceptions about how the resolvers/helpers are meant to be used.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Apr 13, 2021, 9:20:04 AM4/13/21
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: ready for triage NW-2021-04-28
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Ciprian Badescu (Jira)

unread,
Apr 14, 2021, 4:42:02 AM4/14/21
to puppe...@googlegroups.com

Victor Bobosila (Jira)

unread,
Apr 19, 2021, 6:12:01 AM4/19/21
to puppe...@googlegroups.com

Gabriel Nagy (Jira)

unread,
May 19, 2021, 8:03:01 AM5/19/21
to puppe...@googlegroups.com
Gabriel Nagy updated an issue
Change By: Gabriel Nagy
Fix Version/s: FACT 4.2.0
Reply all
Reply to author
Forward
0 new messages