Ask Your Question
1

How could I recalculate nodes' licences?

asked 2014-01-23 09:46:43 -0500

Andrey Sizov gravatar image

I can't figure out how to decrease the counter shown at the top line of the PE. I've already done all related tricks, but nothing happened. It's quite necessary for testing PE starting and stopping VMs with puppet on board.

[root@puppet-ent-master ca]# puppet node deactivate w8-pp-09.labs.intellij.net
[root@puppet-ent-master ca]# puppet cert clean w7-puppet-test.labs.intellij.net

That doesn't work for me. Please assist.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-01-23 18:23:40 -0500

llowder gravatar image

If you are using Puppet Enterprise 3.x, you will need to use sudo puppet node deactivate <hostname>, as that will flag the host as deactivated within PuppetDB. Running sudo puppet cert clean <hostname> will purge all info about the node from the master, but will not change the license count.

The node deactivate command will run asynchronously against PuppetDB, so if you check the license count immediately after running the command, it may not have fully completed, and there may be some caching involved as well.

After running the command, wait 4-5 minutes, then restart your master and check ... (more)

edit flag offensive delete link more

Comments

That's really strange, I even restarted the whole server and nothing changed. Of course I've used your commands 'deactivate' and 'clean', but no effect then. Please, take a ...(more)

Andrey Sizov gravatar imageAndrey Sizov ( 2014-01-24 02:53:15 -0500 )edit

Also I found the command ' puppet node search '*' --clientyamldir `puppet master --configprint yamldir` --node_terminus yaml' which showed me 7 nodes. How could I remove them? [root@puppet-ent-master andrey.sizov]# puppet ...(more)

Andrey Sizov gravatar imageAndrey Sizov ( 2014-01-24 03:20:22 -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

Stats

Asked: 2014-01-23 09:46:43 -0500

Seen: 161 times

Last updated: Jan 23 '14