Updated on 2023-07-14 GMT+08:00

Stack Management

Stack management consists of two aspects. One is lifecycle management of created stacks, including deleting and changing. The other is viewing stack details to obtain stack running status.

Table 1 describes stack lifecycle status.

Table 1 Status description

Status

Description

Normal

Both the stack and its instances run properly.

Abnormal

The stack runs abnormally. Some or all stack instances run abnormally and cannot provide functions.

Initializing

Stack instances have not been installed or have been uninstalled. The stack does not provide functions.

Processing

A stack lifecycle action is being performed. The status of stack instances is unknown.

Unknown error

An unknown stack error occurs.

After a stack is created successfully (that is, in the normal status), you can change input parameters based on your service requirements.

  1. Log in to the Application Orchestration Service (AOS) console.
  2. In the navigation pane, click My Stacks.
  3. In the stack list, click the stack to be changed.
  4. On the stack details page, click Change.
  5. Change the template version or input parameters, and click Next.
  6. Confirm the configurations and then click Change.

    On the Events tab page, view the detailed operation events related to stack change.

The change rules are as follows:

  1. Template change rules:
    1. During template change, only the following elements are allowed to be added or deleted.
      • AOS.Agent, AOS.AppComponent, AOS.AppComponent.Container, AOS.AppComponent.Process, AOS.AppGroup, AOS.Application.Stateful, AOS.Application.Stateless, AOS.Job, AOS.Service, AOS.StatelessApplication, and AOS.StatefulApplication
      • CCE.Addon.AutoScaler, CCE.ConfigMap, CCE.DaemonSet, CCE.Deployment, CCE.HelmRelease, CCE.Ingress, CCE.Job, CCE.NodePool, CCE.Secret, CCE.Service, CCE.StatefulSet, CCE.Storage.OBS, and CCE.Storage.SFS
      • ECS.CloudServer
      • ServiceStage.Agent, ServiceStage.AppGroup, ServiceStage.ContainerComponent, ServiceStage.Job, ServiceStage.ProcessComponent, ServiceStage.Service, ServiceStage.SoftwareComponent, ServiceStage.StatefulApplication, and ServiceStage.StatelessApplication
      • nodes.Agent, nodes.AppGroup, nodes.ContainerComponent, nodes.HelmApplication, nodes.Job, nodes.ProcessComponent, nodes.Service, nodes.SoftwareComponent, nodes.StatefulApplication, and nodes.StatelessApplication
    2. Do not modify the policies of the template.
    3. Do not modify the association relationship between existing elements.
    4. Do not delete the association relationship between existing elements alone. If necessary, delete both the elements and their relationship.
    5. Do not add a relationship between a new element and an existing element.
  2. Parameter change rules:
    1. Do not change the input parameters of the following elements:
      • AOS.Job and AOS.Service
      • APM.AutoScaler
      • ServiceStage.Job and ServiceStage.Service
      • nodes.Agent, nodes.AutoScaler, nodes.DynamicNodePool, nodes.DynamicVolume, nodes.FlexVolume, nodes.Job, nodes.NodePool, nodes.Service, and nodes.StatefulApplication
    1. Do not change the input parameters of the following elements unless in cluster 1.7 or later:
      • AOS.Agent and AOS.StatefulApplication
      • ServiceStage.Agent and ServiceStage.StatefulApplication

Deleting a Stack

Deleted stacks cannot be restored. Exercise caution when deleting a stack.

  1. Log in to the AOS console.
  2. In the navigation pane, click My Stacks.
  3. In the stack list, select the stack to be deleted and click Delete.
  4. In the dialog box that is displayed, click OK.

    Check the stack name carefully. The deletion cannot be revoked.

    On the Events tab page, view the detailed operation events related to stack deletion.

    If the stack status remains Deleting until a timeout message is displayed and the stack status becomes Abnormal, try to forcibly delete the stack.

Viewing Stack Details

After a stack is created, view its data and resources on the stack details page.

  • Stack elements

    The elements of a stack, such as applications and cloud services are displayed.

    Element health status:

    • Healthy: The resource is running properly.
    • Unknown: The AOS fails to obtain the resource status because an error occurs during the health check.
    • Abnormal: The AOS successfully calls the health check API of the resource, but the resource status is abnormal.
  • Output parameters

    Output parameters and their values in the stack template are displayed.

  • Input parameters

    Input parameters and their values in the stack template are displayed.

  • Alarms

    Alarm information of the stack is displayed.

  • Events

    View stack events to monitor stack operation progress. For example, when you create a stack, all important steps during the stack creation are displayed on the Events tab page. The events are sorted in chronological order with the latest event being displayed at the top.