Werk #8861: DCD: Gracefully handle single host issues when creating hosts

Component Core & setup
Title DCD: Gracefully handle single host issues when creating hosts
Date Aug 16, 2019
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk Version 1.6.0b7 2.0.0i1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

When one of multiple hosts could not be created or modified by a execution, this resulted in a complete termination of the execution. A persistent issue could totally break a connection, since no further steps would be executed.

As first step the "add_hosts" and "edit_hosts" API call has been extended to report back the result of a call. The structure looks like this:

{
    "succeeded_hosts": ["host1", "host3"],
    "failed_hosts": {
        "host2": "an error occured ...",
    },
}

The DCD reads this response and logs the result. In case there have been hosts added, the discovery is performed for them. After that, the connection continues with the following steps.

To the list of all Werks