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
Entrypointwhen submitting a workflow. -
Submit a workflow only once unless another execution is intentionally required.
If you chooseSUBMITmultiple 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 |
|---|---|
|
Installs PAS-X MES with prerequisites, such as MES Operator, RabbitMQ Operator, and RabbitMQ Cluster, and performs a database schema migration. |
|
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 |
|---|---|
|
Runs environment readiness checks before the workflow changes the PAS-X MES system state. For details, see Pre-Installation Verifications. |
|
Synchronizes required Argo CD applications and installs PAS-X MES. |
|
Runs checks after installation execution. For details, see Installation Testing Verifications. |
|
Collects workflow results and generates the Installation Report. |
Installation Execution Steps
| Step | Description |
|---|---|
|
Synchronizes and waits for the required operators, such as MES Operator and RabbitMQ Operator. |
|
Synchronizes auxiliary services, such as RabbitMQ Cluster, MES Language Packs, API Gateway, and MES OpenTelemetry Collector. |
|
Synchronizes PAS-X MES service applications and waits until the corresponding resources are healthy. |
|
Synchronizes the PAS-X MES Instance application and waits until the instance resource is healthy. |
|
Installs the PAS-X MES Instance and executes database schema migration depending on the selected |
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 |
|---|---|
|
Uninstalls all PAS-X MES services. No additional application cleanup steps are executed. |
|
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:
|
|
Workflow Phases
| Phase | Description |
|---|---|
|
Runs environment readiness checks before the workflow changes the PAS-X MES system state. For details, see Pre-Installation Verifications. |
|
Transitions the PAS-X MES Instance to the undeployed state. |
|
Runs only if |
|
Runs checks after uninstallation execution. For details, see Installation Testing Verifications. |
|
Collects workflow results and generates the Installation Report. |
Uninstallation Execution Steps
| Step | Description |
|---|---|
|
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 |
|---|---|
|
Removes Kubernetes resources managed by the PAS-X MES service applications. |
|
Removes Kubernetes resources managed by the PAS-X MES Instance application. |
|
Removes Kubernetes resources managed by the auxiliary service applications. |
|
Removes Kubernetes resources managed by the operator applications after the dependent resources have been removed. |