Jira (PDB-4479) Deactivate node commands sync after garbage collection

0 views
Skip to first unread message

Austin Blatt (JIRA)

unread,
Aug 12, 2019, 6:14:04 PM8/12/19
to puppe...@googlegroups.com
Austin Blatt created an issue
 
PuppetDB / Bug PDB-4479
Deactivate node commands sync after garbage collection
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2019/08/12 3:13 PM
Priority: Normal Normal
Reporter: Austin Blatt

This is a bug in PE's HA sync.

On the local PuppetDB, when a node is purged after a deactivate node command and then a garbage collection run after node-purge-ttl time has passed, the node is deleted.

The remote PuppetDB also has that deactivated node present, but has not run garbage collection, when the local PuppetDB (that has just garbage collection the node) attempts to sync from the remote it will sync back the node it just garbage collected.

This will result in a ping-pong effect and the node will never be purged from PuppetDB

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Nick Walker (JIRA)

unread,
Nov 25, 2019, 1:28:05 PM11/25/19
to puppe...@googlegroups.com

Austin Blatt (JIRA)

unread,
Nov 26, 2019, 2:23:04 PM11/26/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
This is a bug in PE pe-puppetdb 's HA sync.


On the local PuppetDB, when a node is purged after a deactivate node command and then a garbage collection run after node-purge-ttl time has passed, the node is deleted.

The remote PuppetDB also has that deactivated node present, but has not run garbage collection, when the local PuppetDB (that has just garbage collection the node) attempts to sync from the remote it will sync back the node it just garbage collected.

This will result in a ping-pong effect and the node will never be purged from PuppetDB

Austin Blatt (JIRA)

unread,
Nov 26, 2019, 2:28:04 PM11/26/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Acceptance Criteria: Nodes that are garbage collected on one PuppetDB are * Does not re sync node deactivation commands that have a deactivated timestamp older than node - synced from the remote purge-ttl
* Does not sync node data (agentless nodes 6
. 3.x+) that have a deactivated/expired timestamp older than node-purge-ttl

Austin Blatt (JIRA)

unread,
Nov 26, 2019, 2:37:03 PM11/26/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
This is a bug in pe-puppetdb's HA sync because we only check the value of {{producer_timestamp}} and not the timestamps named {{deactivate}} and {{expired}} in the {{certnames}} table in the {{would_be_expired_locally?}} function of {{ . ../sync/core.clj}}

On the local PuppetDB, when a node is purged after a deactivate node command and then a garbage collection run after node-purge-ttl time has passed, the node is deleted.

The remote PuppetDB also has that deactivated node present, but has not run garbage collection, when the local PuppetDB (that has just garbage collection the node) attempts to sync from the remote it will sync back the node it just garbage collected.

This will result in a ping-pong effect and the node will never be purged from PuppetDB

Nick Burgan (JIRA)

unread,
Dec 4, 2019, 2:24:05 PM12/4/19
to puppe...@googlegroups.com

Nick Burgan (JIRA)

unread,
Dec 4, 2019, 2:25:03 PM12/4/19
to puppe...@googlegroups.com

Nick Burgan (JIRA)

unread,
Dec 4, 2019, 2:26:04 PM12/4/19
to puppe...@googlegroups.com
Nick Burgan updated an issue
Change By: Nick Burgan
Sprint: HA Team 2019-12-18

Austin Blatt (JIRA)

unread,
Dec 4, 2019, 2:26:05 PM12/4/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Fix Version/s: PDB 6.3.7
Fix Version/s: PDB 5.2.12
Fix Version/s: PDB 6.7.4

Austin Blatt (JIRA)

unread,
Dec 5, 2019, 12:32:04 PM12/5/19
to puppe...@googlegroups.com

Melissa Amos (JIRA)

unread,
Dec 6, 2019, 4:53:05 PM12/6/19
to puppe...@googlegroups.com
Melissa Amos commented on Bug PDB-4479
 
Re: Deactivate node commands sync after garbage collection

In discussion with Heston Hoffman, we agreed this should go in PDB release notes, if anywhere.

Melissa Amos (JIRA)

unread,
Dec 17, 2019, 2:58:04 PM12/17/19
to puppe...@googlegroups.com

Austin Blatt (JIRA)

unread,
Jan 13, 2020, 4:02:04 PM1/13/20
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Fix Version/s: PDB 6.7.4
Fix Version/s: PDB 6.3.7
Fix Version/s: PDB 5.2.12

Nick Burgan (JIRA)

unread,
Jan 15, 2020, 2:10:05 PM1/15/20
to puppe...@googlegroups.com
Nick Burgan updated an issue
Change By: Nick Burgan
Sprint: HA Team 2020-01-15 , HA Team 2020-01-29

Austin Blatt (JIRA)

unread,
Jan 22, 2020, 11:39:04 AM1/22/20
to puppe...@googlegroups.com
Austin Blatt assigned an issue to Unassigned
Change By: Austin Blatt
Assignee: Austin Blatt

Nick Burgan (JIRA)

unread,
Jan 29, 2020, 2:04:04 PM1/29/20
to puppe...@googlegroups.com
Nick Burgan updated an issue
Change By: Nick Burgan
Sprint: HA Team 2020-01-15, HA Team 2020-01-29 , HA Team 2020-02-12

Austin Blatt (JIRA)

unread,
Feb 6, 2020, 4:21:04 PM2/6/20
to puppe...@googlegroups.com

Joshua Partlow (JIRA)

unread,
Feb 7, 2020, 12:56:04 PM2/7/20
to puppe...@googlegroups.com
Joshua Partlow commented on Bug PDB-4479
 
Re: Deactivate node commands sync after garbage collection

Austin Blatt What build of PE did this land in? And what fix versions? 2019.y only? Has the main master pe integration ci run with it?

Austin Blatt (JIRA)

unread,
Feb 7, 2020, 1:48:04 PM2/7/20
to puppe...@googlegroups.com
Austin Blatt commented on Bug PDB-4479

Joshua Partlow this landed in PuppetDB on all PE streams yesterday afternoon so I believe it's been tested overnight on 2018.x and master. Looks like a network issue stopped promotion to Kearney so I re-kicked that promotion.

Austin Blatt (JIRA)

unread,
Feb 7, 2020, 1:53:04 PM2/7/20
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Fix Version/s: PDB 6.9.0
Fix Version/s: PDB 6.3.8
Fix Version/s: PDB 5.2.13

Austin Blatt (Jira)

unread,
Mar 5, 2020, 8:45:02 PM3/5/20
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Fix Version/s: PDB 6.3.8
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Austin Blatt (Jira)

unread,
Mar 5, 2020, 8:47:03 PM3/5/20
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Release Notes Summary: Fixed an issue affecting PE installations where PuppetDB would fail to purge a deactivated node.
Reply all
Reply to author
Forward
0 new messages