Jira (FACT-2987) Facter 4 outputs hypervisors.zone_id fact differently on Solaris

5 views
Skip to first unread message

Gabriel Nagy (Jira)

unread,
Mar 16, 2021, 10:17:03 AM3/16/21
to puppe...@googlegroups.com
Luchian Nemes created an issue
 
Facter / Bug FACT-2987
Facter 4 outputs hypervisors.zone_id fact differently on Solaris
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2021/03/16 7:16 AM
Priority: Normal Normal
Reporter: Luchian Nemes

Running puppet facts diff on Amazon 6 gives the following output:

        "virtual": {
          "new_value": "xen",
          "old_value": "xenhvm"
        }

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

Gabriel Nagy (Jira)

unread,
Mar 16, 2021, 10:20:02 AM3/16/21
to puppe...@googlegroups.com
Gabriel Nagy updated an issue
Change By: Gabriel Nagy
Running *puppet facts diff* on Amazon 6 Solaris 11 gives the following output:
{code:json}
        "
virtual hypervisors.zone.id ": {
          "new_value": "
xen 0 ",
          "old_value":
"xenhvm" 0
        }
,
{code}


Facter 4 reports a string, while Facter 3 reports an integer.

Facter 4: https://github.com/puppetlabs/facter/blob/main/lib/facter/resolvers/solaris/zone.rb#L35
Facter 3: https://github.com/puppetlabs/facter/blob/3.x/lib/src/facts/resolvers/zone_resolver.cc#L44

Again, this can be an issue with how Facter represents integers, as Facter 3 saves a string value but outputs an integer.

Mihai Buzgau (Jira)

unread,
Mar 17, 2021, 6:18:03 AM3/17/21
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Mar 17, 2021, 6:18:04 AM3/17/21
to puppe...@googlegroups.com

Luchian Nemes (Jira)

unread,
Mar 26, 2021, 12:01:03 PM3/26/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages