Project

General

Profile

Actions

Bug #2301

closed

Nodes with puppet running are not always listed in REST responses

Added by Romain Vrignaud over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello,
I'm using a lot the puppet function to query foreman from puppet (https://github.com/ohadlevy/puppet-foreman/blob/master/foreman/lib/puppet/parser/functions/foreman.rb)
in my manifest.
I noticed that when nodes where running puppet they might not be listed when querying Foreman in the REST API.

ie: If I have 2 nodes in hostgroup webservers and I query all hosts in that hostgroup
and I run puppet in the 2 nodes at the same time, foreman may list only one node instead of 2 in the answer.

I reproduced that with debug using http client when puppet was running on my nodes :
http://pastebin.com/C1rAeGMN
  • you can see that the 3 queries are only 1 second spaced
  • obvioulsy shinken51 was not deleted during the process
  • during the second request foreman replied only 2 facts instead of 3

I'm running foreman 1.1 with passenger + mysql
Puppet is puppet 3.0 (behavior was the same with puppet2.7)
Using puppetdb

This is quite painfull for us as a big part of our manifest is
writted to rely on Foreman and to reload dynamically the daemons.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #2486: Fact values importer recreating all values in the databaseClosedDominic Cleal05/10/2013Actions
Actions

Also available in: Atom PDF