Bosch IoT Rollouts

SOUP System actions

Table of contents:

Introduction

The update report serves as a comprehensive record of a successfully completed system update process, carried out by applying a recipe. Typically, this report is transmitted from the system's gateway to the Install API, serving as a notification of the completed update. The update report is utilized to monitor the overall system update status, as well as the update status of the individual modules. For each module updates, the corresponding deployment actions within Bosch IoT Rollouts are generated, leveraging the Action state machine. This functionality enables module responsibles to easily trace the update history of the system's constituent modules.

Understanding system actions

For each system update process, i.e. the assignment of a recipe to system, a system action is created. Each system action is defined by the following properties:

  • ID: SOUP generated ID for reference in the UI and API

  • Status: Current status of the system action state machine

  • Last reported at: Timestamp of the last update report for this system action

  • System: The system where the recipe is installed

  • Recipe: The recipe that get's installed

  • Gateway: Module that sent the update report

  • Module actions: Reference to the corresponding actions in IoT Rollouts.

  • Status log: List of status updates for this system action, when they were reported, the action status, a status code, and log messages.

System action statuses

SOUP uses a stateful update process, providing systems with opportunities to provide feedback at various stages. This feedback is crucial for SOUP to accurately track the update progress and determine the final outcome. Systems must provide a final status (success or error) for SOUP to complete the system update action. Below is the list of the possible system action statuses and the corresponding state machine.

System action status definitions

Icon

Status

Description

images/confluence/download/thumbnails/4901298860/image-2024-10-30_13-21-37-version-1-modificationdate-1730290897000-api-v2.png

SCHEDULED

System update is scheduled and waiting to be exposed to the system by the rollout engine.

images/confluence/download/thumbnails/4901298860/image-2024-10-29_14-51-57-version-1-modificationdate-1730209917000-api-v2.png

AWAITING CONFIRMATION

System update is scheduled but awaiting confirmation by the user. Only applicable if the user consent flow is enabled.

images/confluence/download/thumbnails/4901298860/image-2024-10-29_14-50-32-version-1-modificationdate-1730209832000-api-v2.png

RUNNING

System update is running and SOUP is waiting for feedback from the system.

images/confluence/download/thumbnails/4901298860/image-2024-10-29_15-1-51-version-1-modificationdate-1730210511000-api-v2.png

CANCELING

System update has been canceled, but the cancellation has not yet been confirmed by the system.

images/confluence/download/thumbnails/4901298860/Screenshot-2023-11-16-at-13.07.53-version-1-modificationdate-1729525751000-api-v2.png

SUCCESS

System update was successful, i.e. the software updates on all (update-relevant) modules being part of the system were successful.

images/confluence/download/thumbnails/4901298860/image-2024-4-2_14-50-56-version-1-modificationdate-1729525751000-api-v2.png

ERROR

System failed, since there was at least one failing module software update.

images/confluence/download/thumbnails/4901298860/image-2024-10-29_14-48-24-version-1-modificationdate-1730209704000-api-v2.png

CANCELED

The cancellation of the system update was confirmed by the system.

The current version of SOUP only supports SUCCESS and ERROR.

System action status transitions

images/confluence/download/attachments/4901298860/sys-action-sm-version-6-modificationdate-1730724883000-api-v2.png