Skip to content

[BUG] Netreap exits with zero code when shouldn't #31

@DevKhaverko

Description

@DevKhaverko

Describe the bug

After failing on node reaper or endpoint reaper netreap exits with 0 code

To Reproduce

Steps to reproduce the behavior:

  1. Run netreap as system job
  2. In one time you can get the error Got error message from node event channel: {"error" : invalid character 'e' looking for beginning of value"}

Expected behavior

Netreap exits with non-zero code, so nomad sees it like failed allocation, not like normal exiting.

Environment (please complete the following information)

  • linux/amd64
  • Netreap version:0.1.2

If you ran into this issue while developing a feature for Netreap:

  • Output of cilum version e.g.:
v1.13.2
  • Output of nomad version e.g.:
Nomad v1.6.1

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

I think nomad sends wrong event and it's bug of nomad, but netreap should handle it correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions