Issue #12140 has been updated by Daniel Pittman.

Status changed from Needs More Information to Accepted

Awesome, thanks.  That helps form my theory, which is that we are merging the 
local facts, from Facter, into that request incorrectly, and then using that to 
extract the IP.

The problem seems to be the `plain` node terminus invokes `node.fact_merge`, 
which grabs facts from the configured fact terminus - in this case Facter.  
That terminus doesn't actually check the node name on the request, and will 
return local facts for any query.

Unfortunately, the details of that node get consumed to set the IP, leading to 
this problem.
----------------------------------------
Bug #12140: puppetqd incorrectly updating hosts.ip of agent to IP of system 
puppetqd is running on
https://projects.puppetlabs.com/issues/12140

Author: Jacob  McCann
Status: Accepted
Priority: Normal
Assignee: 
Category: queuing
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


I have recently started to use async_storeconfigs.  My setup for this is I have 
puppetmaster, activemq and puppetqd all running on a system.

So what is happening is an agent performs a run.  After the run the 
storeconfigs DB has the hosts.ip for the agent updated to the IP of the system 
that puppetqd is running on.  If I turn async_storeconfigs off then the 
hosts.ip for the agent is updated to the correct IP of the agent itself.

I figured out that the incorrect IP being updated in hosts.ip from where 
puppetqd is running from because I took puppetqd off of the puppetmaster and 
ran it temporarily on another system to consume the queue from the 
puppetmaster.  In this setup the IP changed from the IP of the puppetmaster 
(where puppetqd was previously running) to the new system running puppetqd.

I am using puppet 2.7.5 on SLES11.


-- 
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 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