Jira (PDB-4390) Don't produce duplicate certname entries for certnames with special characters

17 views
Skip to first unread message

Austin Blatt (JIRA)

unread,
Jun 3, 2019, 4:30:04 PM6/3/19
to puppe...@googlegroups.com
Austin Blatt created an issue
 
PuppetDB / Bug PDB-4390
Don't produce duplicate certname entries for certnames with special characters
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2019/06/03 1:29 PM
Priority: Major Major
Reporter: Austin Blatt

Using a certname with special characters, or that is too long, will result in a duplicate node entry.

 
You can reproduce this error with a certname such as node_0 by submitting a factset first and then submitting a catalog. Example commands are below

Replace facts

curl -X POST http://localhost:8080/pdb/cmd/v1 \
  -H 'Content-Type:application/json' \
  -d '{"command": "replace facts", "version": 5, "payload": { "certname": "host_0", "environment": "foo", "producer_timestamp": "2019-06-03T09:17:25-0700", "producer": "foo", "values": {} } }'

Replace catalog

curl -X POST http://localhost:8080/pdb/cmd/v1 \
  -H 'Content-Type:application/json' \
  -d '{"command": "replace catalog", "version": 9, "payload": { "certname": "host_0", "producer_timestamp": "2019-06-03T09:17:25-0700", "version": "1", "environment": "foo", "edges": [], "resources": [], "transaction_uuid": "40e6215d-b5c6-4896-987c-f30f3678f608", "code_id": null, "producer": null, "job_id": null, "catalog_uuid": null} }'

and then check the certnames present

puppetdb=> select * from certnames;
 id |                    certname                     | latest_report_id | deactivated | expired |                package_hash                |  latest_report_timestamp
----+-------------------------------------------------+------------------+-------------+---------+--------------------------------------------+----------------------------
 74 | host_0                                          |                  |             |         |                                            |
 80 | host-0_8ad051ad85dfdcb632063b23fab9a0081e46178f |                  |             |         |                                            |
(2 rows)

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

Austin Blatt (JIRA)

unread,
Jun 4, 2019, 11:52:05 AM6/4/19
to puppe...@googlegroups.com

Austin Blatt (JIRA)

unread,
Jun 12, 2019, 7:22:04 PM6/12/19
to puppe...@googlegroups.com

Maheswaran Shanmugam (JIRA)

unread,
Jun 12, 2019, 10:20:04 PM6/12/19
to puppe...@googlegroups.com
Maheswaran Shanmugam commented on Bug PDB-4390
 
Re: Don't produce duplicate certname entries for certnames with special characters

Austin Blatt It's marked as fixed for latest release. Is there any workaround to fix this issue for an existing lower version like 2018.1.5...etc?

Heston Hoffman (JIRA)

unread,
Jun 13, 2019, 7:50:03 PM6/13/19
to puppe...@googlegroups.com

Maheswaran Shanmugam (JIRA)

unread,
Jun 13, 2019, 11:25:02 PM6/13/19
to puppe...@googlegroups.com

Austin Blatt (JIRA)

unread,
Jun 14, 2019, 11:53:03 AM6/14/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
 
Change By: Austin Blatt
Fix Version/s: PDB 6.0.4
Fix Version/s: PDB 5.2.9

Austin Blatt (JIRA)

unread,
Jun 14, 2019, 12:02:03 PM6/14/19
to puppe...@googlegroups.com
Austin Blatt commented on Bug PDB-4390
 
Re: Don't produce duplicate certname entries for certnames with special characters

Maheswaran Shanmugam I have updated the ticket with a more thorough explanation, but in short, they have to wait for 2018.1.9 to be release, but they can downgrade in the meantime to 2018.1.7

Austin Boyd (JIRA)

unread,
Dec 5, 2019, 11:33:03 AM12/5/19
to puppe...@googlegroups.com
Austin Boyd updated an issue
 
Change By: Austin Boyd
Zendesk Ticket IDs: 34919
Zendesk Ticket Count: 1

Austin Boyd (JIRA)

unread,
Dec 5, 2019, 11:33:04 AM12/5/19
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket IDs: 34919 ,35203
Zendesk Ticket Count: 1 2
Reply all
Reply to author
Forward
0 new messages