Bug 765669

Summary: Build failure due to mismatched topic name / ID does not report error details
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: CSProcessorAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: jwulf, lcarlon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 0.20.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-23 15:04:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joshua Wulf 2011-12-09 03:55:49 UTC
[jwulf@gaura EDS]$ skynet build 8 --server localhost:8180
Skynet client version: 0.15.0
Loading configuration from /home/jwulf/.config/skynet.ini
Web Service at localhost:8180 version: 0.19.0

The post Content Specification failed processing


The build failed due to a mismatch of topic ID/Name in the content spec, but the error detail is not reported on the client.


The server has the detail:

13:52:58,927 ERROR [com.redhat.contentspec.processor.SpecTopic] (http--0.0.0.0-8180-1) Line 19: Invalid Topic! Existing topic title doesn't match.
       -> Specified: EDS Installation Test [5584]
       -> Topic 5584: Test the EDS Installation
13:52:58,928 ERROR [com.redhat.contentspec.processor.ContentSpecProcessor] (http--0.0.0.0-8180-1) The Content Specification is not valid.


This should be output on the client as it is for the same error when pushing, ie:


[jwulf@gaura EDS]$ skynet push -ce post-EDS-GSG --server localhost:8180
Skynet client version: 0.15.0
Loading configuration from /home/jwulf/.config/skynet.ini
Web Service at localhost:8180 version: 0.19.0

ERROR: Line 19: Invalid Topic! Existing topic title doesn't match.
       -> Specified: EDS Installation Test [5584]
       -> Topic 5584: Test the EDS Installation
ERROR: The Content Specification is not valid.

Comment 1 Lee Newson 2012-02-06 10:10:41 UTC
Fixed in version 0.20.1

Previously a generic error message was displayed when the post content specification failed processing. Now I've made it so that it'll return the output of the processor and an extra error message.

Example Output:

Skynet client version: 0.16.1
Loading configuration from /home/lnewson/.config/skynet.ini
Web Service at http://localhost:8080/ version: 0.20.1

ERROR: Line 15: Invalid Content Specification! Incorrect attribute format.
       -> JBoss Enterprise Data Grid
ERROR: The Content Specification is not valid.
ERROR: Unable to build due to the Post Content Specification failing to process.

Comment 2 Joshua Wulf 2012-02-23 15:04:39 UTC
Verified.