|
I ran a `puppet node purge` on iebzu95xg1zlr4o.delivery.puppetlabs.net pn 5/12 at 11:58:
2017-05-12 11:58:12.886 PDT [db:pe-puppetdb,sess:59160585.3dd5,pid:15829,vtid:29/23,tid:0] DETAIL: parameters: $1 = 'iebzu95xg1zlr4o.delivery.puppetlabs.net'
|
2017-05-12 11:58:12.887 PDT [db:pe-puppetdb,sess:59160585.3dd5,pid:15829,vtid:29/23,tid:0] LOG: execute <unnamed>: UPDATE certnames SET deactivated = $1
|
WHERE certname=$2
|
AND (deactivated IS NULL OR deactivated < $3)
|
The delete ran several times with a node-purge-ttl of 1d:
2017-05-15 00:47:13.176 PDT [db:pe-puppetdb,sess:591959a8.1477,pid:5239,vtid:17/1007,tid:0] DETAIL: parameters: $1 = '2017-05-15 00:47:13.172-07', $2 = '2017-05-08 00:47:13.172-07', $3 = '2017-05-08 00:47:13.172-07', $4 = '2017-05-08 00:47:13.172-07'
|
2017-05-15 00:47:13.177 PDT [db:pe-puppetdb,sess:591959a8.1477,pid:5239,vtid:17/1007,tid:0] LOG: execute S_1: COMMIT
|
2017-05-15 00:47:13.177 PDT [db:pe-puppetdb,sess:591959a8.1477,pid:5239,vtid:17/1008,tid:0] LOG: execute <unnamed>: SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED
|
2017-05-15 00:47:13.177 PDT [db:pe-puppetdb,sess:591959a8.1477,pid:5239,vtid:17/1009,tid:0] LOG: execute <unnamed>: SHOW TRANSACTION ISOLATION LEVEL
|
2017-05-15 00:47:13.178 PDT [db:pe-puppetdb,sess:591959a8.1477,pid:5239,vtid:17/1010,tid:0] LOG: execute <unnamed>: SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED
|
2017-05-15 00:47:13.178 PDT [db:pe-puppetdb,sess:591959a8.1477,pid:5239,vtid:17/1011,tid:0] LOG: execute <unnamed>: BEGIN
|
2017-05-15 00:47:13.178 PDT [db:pe-puppetdb,sess:591959a8.1477,pid:5239,vtid:17/1011,tid:0] LOG: execute <unnamed>: DELETE FROM certnames WHERE deactivated < $1 OR expired < $2
|
2017-05-15 00:47:13.178 PDT [db:pe-puppetdb,sess:591959a8.1477,pid:5239,vtid:17/1011,tid:0] DETAIL: parameters: $1 = '2017-05-14 00:47:13.178-07', $2 = '2017-05-14 00:47:13.178-07'
|
The node is now no longer in the certnames table:
# su - pe-postgres -s /bin/bash -c "/opt/puppetlabs/server/bin/psql -d pe-puppetdb -c \"select * from certnames\""
|
id | certname | latest_report_id | deactivated | expired
|
----+-----------------------------------+------------------+-------------+---------
|
1 | pe-201621-master.puppetdebug.vlan | 6971 | |
|
(1 row)
|
However, it and several other nodes, is still present in the edges table.
|