Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Task creation errors are not displayed anymore #1096

Closed
obourdon opened this issue Jul 26, 2016 · 0 comments
Closed

Task creation errors are not displayed anymore #1096

obourdon opened this issue Jul 26, 2016 · 0 comments

Comments

@obourdon
Copy link
Contributor

Test scenario with only snap repository plugins (mock, mock-file, passthru)

Copy the test task in /tmp with a slight modification which is to replace the foo metric by a non-existing foo1 one:

sed -e 's?mock/foo?mock/foo1?' examples/tasks/mock-file.json > /tmp/q.json

In the snap repository launch the following commands:

# make all
# ./build/bin/snapd -t 0 -l 1 -a build/plugin -o /tmp --log-colors=false --log-truncate&
# ./build/bin/snapctl task create -t /tmp/q.json 
Using task manifest to create task

The errors are caught and identified by the snap daemon:

$ grep =error /tmp/snapd.log 
time="2016-07-26T15:22:18+02:00" level=error msg="error getting plugin version" _block=getVersions _file="metrics.go," _module=control error="Metric not found: /intel/mock/foo1" 
time="2016-07-26T15:22:18+02:00" level=error msg="error getting plugin version from metric catalog" _block=get _file="metrics.go," _module=control error="Metric not found: /intel/mock/foo1" 

Using a network sniffer to look at the REST reponses shows that the errors however they are not displayed any more

candysmurf added a commit that referenced this issue Jul 26, 2016
Fix of issue #1096: Task creation errors are not displayed anymore
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant