'virtual' fact missing on SmartOS / Solaris
|Status:||Merged - Pending Release||Start date:||06/29/2012|
|Keywords:||Affected Facter version:||1.6.10|
On a Joyent SmartMachine, facter doens’t report the ‘virtual’ fact. When running facter, the warning “Could not retrieve virtual: invalid byte sequence in UTF-8” is displayed before the output. The root cause is that /proc/self/status is read and checked for a regexp match as part of the test for vserver. However the contents are binary (on this platform) and ruby1.9 throws the exception above. The solution is to read the file in binary mode; I’ll send a pull request.