Jira (PDB-3652) Throw cli-errors trapperkeeper will actually recognize

5 views
Skip to first unread message

Rob Browning (JIRA)

unread,
Sep 1, 2017, 12:51:02 PM9/1/17
to puppe...@googlegroups.com
Rob Browning updated an issue
 
PuppetDB / Bug PDB-3652
Throw cli-errors trapperkeeper will actually recognize
Change By: Rob Browning
Summary: Throw  :type, not :kind from validate  cli - db-settings errors trapperkeeper will actually recognize
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Rob Browning (JIRA)

unread,
Sep 1, 2017, 12:54:04 PM9/1/17
to puppe...@googlegroups.com
Rob Browning updated an issue
Currently the function pdb currently  throws  the error with a :kind key, but tk  cli - app is looking for :type, and in released versions, will actually throw errors that trapperkeeper won't recognize.  This was originally noticed when  a  completely unrelated  missing config subname caused pdb to exit with a mysterious  keyword?  :pre check error  exception that was actually being thrown by a tk function precondition  ( looks like newer versions have since  adjusted  that code  in tk master ).

In any case,
 pdb should throw  tk expects  : cli-error to be the exception data : type not :kind  here , and is looking for :message, not :msg: https://github . com/puppetlabs/trapperkeeper/blob/master/src/puppetlabs/trapperkeeper/core.clj#L179

(Will need to be fixed Fix this  on all the relevant branches. )

Rob Browning (JIRA)

unread,
Sep 1, 2017, 1:29:02 PM9/1/17
to puppe...@googlegroups.com
Rob Browning updated an issue
pdb currently throws cli-errors that trapperkeeper won't recognize.  This was originally noticed when a missing config subname caused pdb to exit with a mysterious keyword? exception that was actually being thrown by a tk function precondition (since adjusted in tk master).   I saw this myself, and also believe it's the underlying problem here: PDB-3500

In any case, tk expects :cli-error to be the exception data :type not :kind, and is looking for :message, not :msg: https://github.com/puppetlabs/trapperkeeper/blob/master/src/puppetlabs/trapperkeeper/core.clj#L179


Fix this on all the relevant branches.

Rob Browning (JIRA)

unread,
Sep 1, 2017, 1:30:02 PM9/1/17
to puppe...@googlegroups.com
Rob Browning updated an issue
pdb currently throws cli-errors that trapperkeeper won't recognize.  This was originally noticed when a missing config subname caused pdb to exit with a mysterious keyword? exception that was actually being thrown by a tk function precondition (since adjusted in tk master).  I saw this myself, and also believe it's the underlying problem here: PDB-3500

In any case, tk expects :cli-error to be the exception data :type not :kind, and is looking for :message, not :msg: https://github.com/puppetlabs/trapperkeeper/blob/master/src/puppetlabs/trapperkeeper/core.clj#L179

This probably affects at least util.clj and config.clj.

Fix this on all the relevant branches.

Rob Browning (JIRA)

unread,
Sep 1, 2017, 1:31:02 PM9/1/17
to puppe...@googlegroups.com
Rob Browning updated an issue
Change By: Rob Browning
Sprint: Data Platform Next Sprint Hopper

Jeff Yarnell (JIRA)

unread,
Sep 5, 2017, 2:53:08 PM9/5/17
to puppe...@googlegroups.com
Jeff Yarnell updated an issue
Change By: Jeff Yarnell
Team: Discovery Pipeline Data Platform

Jeff Yarnell (JIRA)

unread,
Sep 5, 2017, 2:54:03 PM9/5/17
to puppe...@googlegroups.com
Jeff Yarnell commented on Bug PDB-3652
 
Re: Throw cli-errors trapperkeeper will actually recognize

I reassigned to 'Data Platform' team assuming 'Discovery Pipeline' was incorrect.

Zachary Kent (JIRA)

unread,
Jun 12, 2018, 4:18:03 PM6/12/18
to puppe...@googlegroups.com
Zachary Kent assigned an issue to Zachary Kent
 
Change By: Zachary Kent
Assignee: Zachary Kent
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Zachary Kent (JIRA)

unread,
Jun 19, 2018, 1:36:04 PM6/19/18
to puppe...@googlegroups.com

Zachary Kent (JIRA)

unread,
Aug 8, 2018, 2:55:05 PM8/8/18
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Release Notes: Not Needed
Fix Version/s: PDB 6.0.0
Fix Version/s: PDB 5.2.z
Fix Version/s: PDB 5.1.z

Kenn Hussey (JIRA)

unread,
Sep 18, 2018, 11:15:05 AM9/18/18
to puppe...@googlegroups.com
Kenn Hussey updated an issue
Change By: Kenn Hussey
Fix Version/s: PDB 5.2.z
Fix Version/s: PDB 5.1.z
Fix Version/s: PDB 5.2.5
Fix Version/s: PDB 5.1.6

Zachary Kent (JIRA)

unread,
Oct 22, 2018, 6:40:06 PM10/22/18
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Fix Version/s: PDB 5.2.5
Fix Version/s: PDB 5.2.6

Zachary Kent (Jira)

unread,
Mar 10, 2021, 3:33:02 PM3/10/21
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Sprint:
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Zachary Kent (Jira)

unread,
Mar 10, 2021, 3:34:03 PM3/10/21
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Sprint: Release Engineering Hopper

Morgan Rhodes (Jira)

unread,
Mar 11, 2021, 2:28:07 PM3/11/21
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
Change By: Morgan Rhodes
Sprint: Release Engineering Hopper
Reply all
Reply to author
Forward
0 new messages