Skip to content

Investigate better error detection #233

Open

Description

@lucidd

Salt seems to have added an option called full_return which should give more metadata about the result such as success or failure indication. https://docs.saltstack.com/en/latest/ref/clients/#salt.client.LocalClient.cmd with that we should hopefully be able to detect errors more reliably.
with full_return

{"return": [{"minion1": {"jid": "20190318124528105688", "retcode": 0, "ret": true}}]}

without full_return

{"return": [{"minion1": true}]}

We should set full_return allways to true since we need the information for error detection.
full_return in the request to the api is on the same level as the client value for example.

We also need to adjust the gson type adapter responsible for parsing results and take the new error information into account.

One thing unknown is how this effects wheel and runner calls.

Activity

  1. rmartens-embotics commented on Dec 4, 2018

    @rmartens-embotics

    My "solution" was to add retcode to the Return class and make it accessible in Jobs.Info. Not sure if this fully makes sense but it was enough for my purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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