Skip to content

Karton connection errors are not correctly managed by mwdb #891

@pavb-anssi

Description

@pavb-anssi

Environment information

  • MWDB version: 2.10.2
  • Installation method:
    • mwdb.cert.pl service
    • From PyPi (pip install mwdb-core)
    • From docker-compose
    • Other (please explain)
  • Plugins installed:

Behaviour the bug (what happened?)
When mwdb starts before karton an error is raised during the submission of samples to karton.
The karton connector is initialized too early in the startup process.
Moreover this error is not correctly managed by the UI.
The upload of samples seems to not work but they are inserted in mwdb.

Expected behaviour
Mwdb should support the karton connection errors in the following cases:

  • Karton is started after mwdb
  • Karton is down
  • Karton is restarted

Maybe a configuration option should be added to indicate if:

  • The upload process shall be stopped if karton is down
  • The upload process shall ignore karton connection errors

Reproduction Steps
Start mwdb before karton and try to upload a new sample to mwdb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't workingzone:integrationsTasks related with plugins and integrations

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions