Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
extlookup not working correctly in 2.7.6
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jason Koppe  
View profile  
 More options Oct 24 2011, 7:04 pm
From: Jason Koppe <jason.robert.ko...@gmail.com>
Date: Mon, 24 Oct 2011 16:04:03 -0700 (PDT)
Local: Mon, Oct 24 2011 7:04 pm
Subject: extlookup not working correctly in 2.7.6
I'm trying to upgrade from 2.6.7 to to 2.7.6 and I'm running into an
issue in my extlookup() calls.  A lot of the variables which should be
defined aren't defined within extlookup.rb.  I've tested 2.6.7 agent
and 2.7.5 agent against the 2.6.7 master and 2.7.6 master.  I adjusted
extlookup.rb slightly to provide some debug output.

http://pastie.org/private/jsmyxrfhggcvflxcioibq shows:
* my 2.7.5 puppet agent failure when run against the 2.7.6 puppet
master
* git diff of extlookup.rb in the 2.7.6 branch
* debug extlookup log output from the 2.7.6 master
* debug extlookup log output from the 2.6.7 master
* extlookup precedence set in site.pp

The same manifests/extlookup configuration work on the "newpuppet"
environment when using a 2.6.7 agent against the 2.6.7 master.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Koppe  
View profile  
 More options Oct 24 2011, 7:10 pm
From: Jason Koppe <jason.robert.ko...@gmail.com>
Date: Mon, 24 Oct 2011 16:10:16 -0700 (PDT)
Local: Mon, Oct 24 2011 7:10 pm
Subject: Re: extlookup not working correctly in 2.7.6
I diff'd the extlookup.rb between 2.6.7 and 2.7.6 and noticed this was
different, so I changed it back and things are working again:

--> git diff  ./lib/puppet/parser/functions/extlookup.rb
diff --git a/lib/puppet/parser/functions/extlookup.rb b/lib/puppet/
parser/functions/extlookup.rb
index 5fbf26c..818f7c7 100644
--- a/lib/puppet/parser/functions/extlookup.rb
+++ b/lib/puppet/parser/functions/extlookup.rb
@@ -93,7 +93,7 @@ This is for back compatibility to interpolate
variables with %. % interpolation

   extlookup_datadir = undef_as('',lookupvar('::extlookup_datadir'))

-  extlookup_precedence =
undef_as([],lookupvar('::extlookup_precedence')).collect { |var|
var.gsub(/%\{(.+?)\}/) { lookupvar("::#{$1}") } }
+  extlookup_precedence =
undef_as([],lookupvar('::extlookup_precedence')).collect { |var|
var.gsub(/%\{(.+?)\}/) { lookupvar($1) } }

   datafiles = Array.new

On Oct 24, 6:04 pm, Jason Koppe <jason.robert.ko...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
R.I.Pienaar  
View profile  
 More options Oct 24 2011, 7:10 pm
From: "R.I.Pienaar" <r...@devco.net>
Date: Tue, 25 Oct 2011 00:10:15 +0100 (BST)
Local: Mon, Oct 24 2011 7:10 pm
Subject: Re: [Puppet Users] extlookup not working correctly in 2.7.6

might be this, not sure.

http://projects.puppetlabs.com/issues/9854


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Koppe  
View profile  
 More options Oct 24 2011, 7:23 pm
From: Jason Koppe <jason.robert.ko...@gmail.com>
Date: Mon, 24 Oct 2011 16:23:01 -0700 (PDT)
Local: Mon, Oct 24 2011 7:23 pm
Subject: Re: extlookup not working correctly in 2.7.6
looks like that's it.  i'll use the workaround nigel recommended in
that issue (same as my diff above) until that issue is resolved.

thanks for the quick response, R.I.!

On Oct 24, 6:10 pm, "R.I.Pienaar" <r...@devco.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »