Issue #19895 has been updated by Hailee Kenney.

Status changed from Unreviewed to Needs More Information
Assignee set to Robert van Veelen

Since you're running on Facter 1.6.17, would it be possible for you to see if 
you can recreate this error again in the newest Facter version (1.7)? A lot of 
changes and fixes went into this version, and it’d be great if we could first 
make sure that this issue hasn’t already been resolved.

I’ve put this ticket’s status into “Needs more Information” and assigned it to 
you. Please either (a) update it with the information I’ve requested and 
re-assign it to me if you need more help, or (b) change the status to “Closed” 
if you were able to resolve the issue on your own.

Thanks!

----------------------------------------
Bug #19895: Facter assumes "Megabyte" output from prtconf on Solaris
https://projects.puppetlabs.com/issues/19895#change-90817

* Author: Robert van Veelen
* Status: Needs More Information
* Priority: Normal
* Assignee: Robert van Veelen
* Category: 
* Target version: 
* Keywords: 
* Branch: 
* Affected Facter version: 1.6.17
----------------------------------------
Oracle has altered the output of 'prtconf' in the most recent patch release of 
Solaris 11.1 (SRU 4.5).
'prtconf' used to output 'Memory size' only in 'Megabytes', now this is printed 
in 'Gigabytes'

Old:
<pre>
% prtconf
System Configuration:  Oracle Corporation  i86pc
Memory size: 524284 Megabytes
System Peripherals (Software Nodes):
{...}
</pre>

New:
<pre>
% prtconf
System Configuration:  Oracle Corporation  i86pc
Memory size: 512 Gigabytes
System Peripherals (Software Nodes):
{...}
</pre>

The relevant section of memory.rb in facter, line 189:
<pre>
# Total memory size available from prtconf
pconf = Facter::Util::Resolution.exec('/usr/sbin/prtconf 2>/dev/null')
phymem = ""
pconf.each_line do |line|
  if line =~ /^Memory size:\s+(\d+) Megabytes/
    phymem = $1
  end
end
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to