Workflows

SmartInstall uses Argo Workflows to execute the ordered and traceable parts of the PAS-X MES installation lifecycle.

The workflows are provided by the mes-workflows chart as Argo WorkflowTemplate resources.

Purpose

Installation workflows provide:

  • a repeatable execution sequence for installation and undeploy activities

  • controlled parameterization of supported installation actions

  • visibility into the current execution state through Argo Workflows

  • traceability through the generated Installation Report

Common Execution Rules

Read and follow these rules when executing workflows:

  • Do not change the workflow Entrypoint when submitting a workflow.

  • Submit a workflow only once unless another execution is intentionally required.
    If you choose SUBMIT multiple times, each workflow submission is queued and executed sequentially because the workflows use a shared mutex.

  • If a workflow is stuck, wait until the configured workflow timeouts are reached and then review the generated Installation Report. Start a new installation or uninstallation only when it is intentionally required.

  • Each workflow execution creates its own Installation Report.
    To preserve a clear one-to-one relationship between workflow executions and reports, do not use Argo Workflows actions such as RETRY, STOP, or TERMINATE, and do not otherwise retrigger a previous workflow run.

PAS-X MES System Installation

Purpose

Installs PAS-X MES and controls whether database schema migration is performed.

Template resource

workflow-pasx-mes-installation

Entrypoint

pasx-mes-verification-installation

Target state

Running

Related task

Parameters

database-schema-migration controls whether database schema migration is performed.

Value Description

ENABLED

Installs PAS-X MES with prerequisites, such as MES Operator, RabbitMQ Operator, and RabbitMQ Cluster, and performs a database schema migration.

DISABLED

Installs PAS-X MES with prerequisites without performing a database schema migration.

Database schema migration can only be performed when the system is in an undeployed state.

Workflow Phases

Phase Description

pre-installation-verification

Runs environment readiness checks before the workflow changes the PAS-X MES system state. For details, see Pre-Installation Verifications.

installation-execution

Synchronizes required Argo CD applications and installs PAS-X MES.

installation-testing

Runs checks after installation execution. For details, see Installation Testing Verifications.

workflow-completion

Collects workflow results and generates the Installation Report.

Installation Execution Steps

Step Description

operators

Synchronizes and waits for the required operators, such as MES Operator and RabbitMQ Operator.

auxiliary-services

Synchronizes auxiliary services, such as RabbitMQ Cluster, MES Language Packs, API Gateway, and MES OpenTelemetry Collector.

mes-services-configuration

Synchronizes PAS-X MES service applications and waits until the corresponding resources are healthy.

mes-instance-configuration

Synchronizes the PAS-X MES Instance application and waits until the instance resource is healthy.

lifecycle-management

Installs the PAS-X MES Instance and executes database schema migration depending on the selected database-schema-migration value.

PAS-X MES System Uninstallation

Purpose

Uninstalls MES services and controls whether additional MES application resources are removed.

Template resource

workflow-pasx-mes-uninstallation

Entrypoint

pasx-mes-verification-uninstallation

Target state

Undeployed or Undeployed (incl. MES Applications)

Related tasks

Parameters

undeploy-mes-applications controls whether only PAS-X MES services are uninstalled or whether additional PAS-X MES application resources are removed.

Value Description

FALSE

Uninstalls all PAS-X MES services. No additional application cleanup steps are executed.

TRUE

Uninstalls all PAS-X MES services and then deletes the Kubernetes resources managed by the PAS-X MES Argo CD Applications, including MES Services, Instance, auxiliary services, and operators.

The following resources remain untouched:

  • Argo CD Application resources

  • persistent volumes whose reclaim policy is Retain

  • externally provisioned volumes

  • the mes-workflows release

  • Argo Workflows

  • Argo CD

  • Database schema migration cannot be triggered by the uninstallation workflow.

  • The uninstallation workflow does not trigger an Argo CD sync.

Workflow Phases

Phase Description

pre-installation-verification

Runs environment readiness checks before the workflow changes the PAS-X MES system state. For details, see Pre-Installation Verifications.

uninstallation-execution

Transitions the PAS-X MES Instance to the undeployed state.

uninstallation-application-execution

Runs only if undeploy-mes-applications is set to TRUE. Removes additional PAS-X MES application resources.

installation-testing

Runs checks after uninstallation execution. For details, see Installation Testing Verifications.

workflow-completion

Collects workflow results and generates the Installation Report.

Uninstallation Execution Steps

Step Description

pasx-mes-lifecycle-undeploy

Transitions the PAS-X MES Instance to the undeployed state.

Uninstallation Application Execution Steps

These steps run only if undeploy-mes-applications is set to TRUE.

Step Description

mes-services-undeploy

Removes Kubernetes resources managed by the PAS-X MES service applications.

mes-instance-undeploy

Removes Kubernetes resources managed by the PAS-X MES Instance application.

aux-services-undeploy

Removes Kubernetes resources managed by the auxiliary service applications.

operators

Removes Kubernetes resources managed by the operator applications after the dependent resources have been removed.