Am Donnerstag, 9. Oktober 2014 14:10:49 UTC+2 schrieb Ken Barber:
>
> Nope it should work in theory, are you using PuppetDB for this? If so
> in the puppetdb.log you should see a corresponding log entry for the
> deactivate command for that node. Can you grep against your
> puppetdb.log to see if this arrives when you send the `puppet node
> deactivate {foo}` command.
>
Yes, I'm using puppetdb and the command arrives at the database:
2014-10-09 13:31:37,302 INFO [c.p.p.command]
[55a70ff1-3491-4885-9614-589b35756883] [deactivate node] fqdn.of.host
> Also check to make sure no new commands have come in for that node, it
> will tell you in the log if this has happened. We reactivate a node on
> any new data, so this is worth checking.
>
> After deactivation you should be able to query the node data with
> something like:
>
> curl 'http://localhost:8080/v3/nodes/node_name'
>
> And you should see a date next to 'deactivated' that indicates when it
> was deactivated. If its deactivated then it should not collect.
>
This should output the same as puppet node status fqdn.of.host, right?
fqdn.of.host
Deactivated at 2014-10-09T11:31:37.300Z
Last catalog: 2014-10-07T15:11:36.671Z
Last facts: 2014-10-07T15:11:34.151Z
What caught my attention here is that the Timestamp here is different from
the timestamp in the log. Maybe the is something going wrong there?
PuppetDB and Puppetmaster are running on the same host, so there should be
no time difference.
> Finally, try using a tool like this to analyze what exports still exist:
>
> https://forge.puppetlabs.com/zack/exports
> <https://www.google.com/url?q=https%3A%2F%2Fforge.puppetlabs.com%2Fzack%2Fexports&sa=D&sntz=1&usg=AFQjCNHYmert3-Vk3ccMzZp00wcfdd0FPw>
>
>
> This will help you understand if the node you are trying to deactivate
> is still exporting this data, or if its coming from another place.
> This is important, sometimes there is data coming from another node,
> and its often what users don't expect. Make sure you check for typos
> on the node name most importantly, this is the biggest contributing
> factor to confusion around this :-).
The node doesn't show up with puppet node exports
But a puppet agent -t run on the icinga node still doesn't remove the node.
Maybe I should say that I am using foreman. But I also deactivated the node
in foreman. So my guess is that I'm good there.
Best regards,
Kai
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/bf7089a7-ba2d-4978-aa3e-a8b273cb11c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.