Jira (PDB-4094) Investigate query unexpectedly returning 500

7 views
Skip to first unread message

Rob Browning (JIRA)

unread,
Sep 18, 2018, 12:40:05 PM9/18/18
to puppe...@googlegroups.com
Rob Browning created an issue
 
PuppetDB / Improvement PDB-4094
Investigate query unexpectedly returning 500
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2018/09/18 9:39 AM
Priority: Normal Normal
Reporter: Rob Browning

During 6.0.0 release testing, Justin Stoller saw this fail with an http status of 500:

```
reesult=`on_master "curl -f -X POST http://localhost:8080/pdb/query/v4/nodes -H 'Content-Type:application/json' -d '{\"query\":[\"=\",\"certname\",\"${agent_vm}\"]}' | /bin/jq ."`
```

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

Justin Stoller (JIRA)

unread,
Sep 18, 2018, 12:43:05 PM9/18/18
to puppe...@googlegroups.com
Justin Stoller commented on Improvement PDB-4094
 
Re: Investigate query unexpectedly returning 500

FWIW, Scott Garman found that behavior when searching for a node that had not had its cert signed yet. I thought it might be a bug.

Robert Roland (JIRA)

unread,
Nov 6, 2019, 2:41:04 PM11/6/19
to puppe...@googlegroups.com
Robert Roland assigned an issue to Robert Roland
 
Change By: Robert Roland
Assignee: Robert Roland

Robert Roland (JIRA)

unread,
Jan 9, 2020, 6:28:04 PM1/9/20
to puppe...@googlegroups.com
Robert Roland commented on Improvement PDB-4094
 
Re: Investigate query unexpectedly returning 500

Wow, this has been open for a while. Scott Garman Justin Stoller - do you know if this still an issue?

The query doesn't seem to 500 - but I don't have a lot of data to work with.

Justin Stoller (JIRA)

unread,
Jan 9, 2020, 6:39:04 PM1/9/20
to puppe...@googlegroups.com

No idea if this is still an issue. Scott doesn't work here anymore, btw.

I think the idea was that querying for the certname field with a value that would not match would return a 500 vs an empty result set. If you're saying that no longer causes a 500 then I'm happy to see this closed as "Cannot Reproduce". I don't know if the "a node that has submitted its cert but not had it signed yet" is applicable (I don't think fact or report submission happens until after a cert is acquired).

Robert Roland (JIRA)

unread,
Jan 9, 2020, 6:44:04 PM1/9/20
to puppe...@googlegroups.com
Robert Roland commented on Improvement PDB-4094

Okay cool - here's what happened when I ran it:

rroland@rroland-t470p:~$ curl -f -X POST http://localhost:8080/pdb/query/v4/nodes -H 'Content-Type:application/json' -d '{"query":["=","certname","unknowncertname"]}'
[]
rroland@rroland-t470p:~$ echo $?
0

Reply all
Reply to author
Forward
0 new messages