Ask Your Question

Error: 'node' has no 'deactivate' action.

asked 2016-02-18 14:37:03 -0500

bothra gravatar image

updated 2016-02-18 14:39:27 -0500

Normal day of testing and destroying nodes. Now there's no option for deactivate? How do we clear puppetdb entries for nodes?

[puppetmaster]# puppet --version
[puppetmaster]# puppetserver --version
puppetserver version: 2.1.2
[puppetmaster]# puppetdb --version
puppetdb version: 3.2.2

[puppetmaster]# puppet cert clean hostname
Notice: Revoked certificate with serial 14
Notice: Revoked certificate with serial 15
Notice: Revoked certificate with serial 16

[puppetmaster]# puppet node deactivate hostname
Error: 'node' has no 'deactivate' action.  See `puppet help node`.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-19 02:57:20 -0500

rajeevsharma gravatar image

updated 2016-02-23 01:36:34 -0500

Hi bothra,

Did you try puppet node purge <hostname>?

This will deactivate a node in PuppetDB and then purge that node's information, including certificates, from the master. Hope this helps.

Adding command for puppet open source

puppet node clean <hostname>
edit flag offensive delete link more


Thanks, but documentation for this command seems to be PE only. I'm using open source. [puppetmaster ~]# puppet node purge hostname
Error: 'node' has no 'purge' action. See `puppet help node`.

bothra gravatar imagebothra ( 2016-02-19 08:02:53 -0500 )edit

I see. In open source you can try with `puppet node clean <hostname>` which will delete every information about a puppet node.

rajeevsharma gravatar imagerajeevsharma ( 2016-02-23 01:30:32 -0500 )edit

Unfortunately this command is not clearing puppetdb entries. I do a cert clean then a node clean which both complete successfully, however the puppetdb entries still remain.

bothra gravatar imagebothra ( 2016-02-23 09:52:47 -0500 )edit

Try to find out ssl directory under which you'll see cert of your node. Delete that cert and try to generate the certificate on agent node. Please note you need to remove ssldir on agent node too. For reference:

rajeevsharma gravatar imagerajeevsharma ( 2016-02-23 14:45:11 -0500 )edit

I appreciate your effort, however the certs have already been removed. My main issue is that the exported resource of its existence still exists in puppetdb. For example, nagios will still create checks for the node even without a signed cert for the node.

bothra gravatar imagebothra ( 2016-03-15 11:15:50 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-02-18 14:37:03 -0500

Seen: 222 times

Last updated: Feb 23 '16