Dynamic lookup deprecation warning

40 views
Skip to first unread message

Andrea Cappelli

unread,
Jan 16, 2014, 11:56:43 AM1/16/14
to puppet...@googlegroups.com
Hi,
I'm searching through the logs of my master for the warning in the
subject, to move to Puppet3

Sometimes in the warning the manifest name isn't showed up, thereis a
reason?

Thu Jan 16 14:58:02 +0100 2014 Puppet (warning): Dynamic lookup of
$mailaddr is deprecated. For more information, see
http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the
change in behavior, use the --debug flag.

Thu Jan 16 17:09:07 +0100 2014 Puppet (warning): Dynamic lookup of
$domain at /path/to/a/file/dotpp.pp/:127 is deprecated. For more
information, see
http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the
change in behavior, use the --debug flag.

How can I easy discover where the dynamic lookup occurs in the first case?

Thank you

--
Andrea Cappelli

Jason Antman

unread,
Jan 17, 2014, 7:12:07 AM1/17/14
to puppet...@googlegroups.com
On 01/16/2014 11:56 AM, Andrea Cappelli wrote:
> Hi,
> I'm searching through the logs of my master for the warning in the
> subject, to move to Puppet3
>
> Sometimes in the warning the manifest name isn't showed up, thereis a
> reason?
>
> Thu Jan 16 14:58:02 +0100 2014 Puppet (warning): Dynamic lookup of
> $mailaddr is deprecated. For more information, see
> http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the
> change in behavior, use the --debug flag.
Have you tried running with the --debug flag as suggested?

Have you tried just grepping your modules/manifests for "$mailaddr" ???
>
> Thu Jan 16 17:09:07 +0100 2014 Puppet (warning): Dynamic lookup of
> $domain at /path/to/a/file/dotpp.pp/:127 is deprecated. For more
> information, see
> http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the
> change in behavior, use the --debug flag.
There's a specific location:
Dynamic lookup of $domain at /path/to/a/file/dotpp.pp/:127
>

Andrea Cappelli

unread,
Jan 17, 2014, 7:19:49 AM1/17/14
to puppet...@googlegroups.com
Il 17/01/2014 13:12, Jason Antman ha scritto:
> On 01/16/2014 11:56 AM, Andrea Cappelli wrote:
>> Hi,
>> I'm searching through the logs of my master for the warning in the
>> subject, to move to Puppet3
>>
>> Sometimes in the warning the manifest name isn't showed up, thereis a
>> reason?
>>
>> Thu Jan 16 14:58:02 +0100 2014 Puppet (warning): Dynamic lookup of
>> $mailaddr is deprecated. For more information, see
>> http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the
>> change in behavior, use the --debug flag.
> Have you tried running with the --debug flag as suggested?

Using --debug doesn't give me more info on the path where the error is,
only adds info about what changed. My problem is that I don't know
(exactly) where to find ythe manifests

> Have you tried just grepping your modules/manifests for "$mailaddr" ???

Sure, and with some work I can find all problems, I was just wondering
why in some cases the path is showed and in some others it isn't


> There's a specific location: Dynamic lookup of $domain at
> /path/to/a/file/dotpp.pp/:127

I pick up 2 lines form my log file to show that for some warning the
path is reported (as in this case) but in other case (the former log
line) it isn't


Thanks for your help

--
Andrea Cappelli

Jason Antman

unread,
Jan 17, 2014, 7:25:05 AM1/17/14
to puppet...@googlegroups.com
Andrea,

Ok, now I see your question more clearly, about the missing information.
I've seen this before as well, but don't remember why. I *believe* (but
may be totally wrong) it's something about included or required classes,
and that by time the dynamic lookup is evaluated, the source line where
it occurred is no longer known.

Someone else will probably chime in and correct me if my memory was
totally inaccurate.

-Jason
Reply all
Reply to author
Forward
0 new messages