(FACT-654) Don't try to resolve Ldom facts on non-SPARC systems#783
(FACT-654) Don't try to resolve Ldom facts on non-SPARC systems#783whopper wants to merge 1 commit intopuppetlabs:masterfrom
Conversation
|
Note: though community members have mentioned that the behavior of virtinfo in SPARC systems should not have changed, we'd like to test this change out on a SPARC Solaris 11.2 system before merging. |
|
CLA signed by all contributors. |
lib/facter/ldom.rb
Outdated
There was a problem hiding this comment.
Nit: maybe split onto multiple lines, e.g. so it shows up w/o right scrolling in github :)
|
Definitely test on an 11.2 sparc machine, but beyond that 👍 |
In Solaris 11.2, Oracle introduced a rewrite of virtinfo which supports both x86 and SPARC, whereas the old version only supported SPARC. Since Ldoms are a SPARC-only feature, we now need to confine the ldom facts to only resolve on SPARC based platforms. Note that this information comes from community member Kristina Tripp, who provided the necessary details on the new virtinfo implementation.
4830e0b to
cffd449
Compare
|
Tested this out on a few Sparc setup running 11.2 (Sparc Virtual, T2000, and T4 LDOM). No problems seen |
|
bundler exec rspec test on Sparc bare metal passes with 1673 examples, 0 failures, 4 pending I have seen one error message being generated when running facter now twice on sparc hardware. Not sure whether this is related to this change or not. I'm not seeing this message on facter 2.1.0 Timed out after 6 seconds while resolving fact='virtual', resolution='' |
|
@enpointe thanks a ton for running this through on SPARC! As for that 'virtual' fact error, could we have you run It looks like that change was actually added back in February, but was lost from our codebase until we merged our Facter 2 branch back into master this Summer. |
|
I can't reproduce that complaint with any regularity. I'll see if I can reproduce it though. Like I said I've only seen it twice but I thought I should mention it as I saw that error message was getting generated by core/resolvable.rb. |
|
Interesting! Thanks for the heads up. We're hoping to get some testing going on in SPARC and in LDOMs soon to sort these sorts of things out. Thanks again for your help! |
|
I'm closing this out to retarget the change at stable. |
In Solaris 11.2, Oracle introduced a rewrite of virtinfo which
supports both x86 and SPARC, whereas the old version only supported
SPARC. Since Ldoms are a SPARC-only feature, we now need to confine
the ldom facts to only resolve on SPARC based platforms.
Note that this information comes from community member Kristina Tripp,
who provided the necessary details on the new virtinfo implementation.