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

Task creation errors are not displayed anymore #1096

@obourdon

Description

@obourdon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions