Issue #2125 has been reported by fox2mike.

----------------------------------------
Bug #2125: Puppet incorrectly reports a package not found on Gentoo
http://projects.reductivelabs.com/issues/2125

Author: fox2mike
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: Gentoo
Target version: 
Complexity: Easy
Affected version: 0.24.8
Keywords: 


Hi,

This is an issue with puppet 0.24.8 (not present in 0.24.7-r1 in Gentoo) and 
here's a little synopsis.

I manage about 10-15 packages using puppet, a sample of the puppet config is as 
follows :

"net-analyzer/net-snmp":
category => "net-analyzer",
name => "net-snmp",
require => [ File["package.use"], File["package.keywords"], File["make.conf"] ],
ensure => "installed";
        
"dev-java/sun-jdk":
category => "dev-java",
name => "sun-jdk",
require => [ File["package.use"], File["package.keywords"], File["make.conf"] ],
ensure => "installed";

On 0.24.8, puppet throws the following error, ONLY for dev-java/sun-jdk, it 
installs all the other packages just fine.

debug: Puppet::Type::Package::ProviderPortage: Executing '/usr/bin/eix 
--nocolor --format <category> <name> [<installedversionsshort>] [<best>] 
<homepage> <description> --exact --category-name dev-java/sun-jdk'
err: //Node[x.y.com]/gentoo_/Package[dev-java/sun-jdk]: Failed to retrieve 
current state of resource: No package found with the specified name 
[dev-java/sun-jdk]

On 0.24.7-r1 (which is the version of puppet on Portage), there is no error 
whatsoever.

I did a little bit of poking around and found that the only change b/w the two 
versions in portage.rb (in puppet/provider/package/) is the regex for 
result_format. Seems like the new one in 0.24.8 doesn't like the change(s) for 
specific packages.

Copying over portage.rb from 0.24.7-r1 just works fine. 

Would be nice if someone reviewed the regex to see what exactly the issue is, 
I've put up a diff at http://dpaste.com/hold/22196/

Thanks!


----------------------------------------
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://reductivelabs.com/redmine/my/account

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

Reply via email to