Updated on 2022-02-22 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.

Changing a Stack

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.

Template change rules:
  1. During template change, only the following elements are allowed to be added or deleted.
    • CCE.Addon.AutoScaler, CCE.HelmRelease, CCE.NodePool, CCE.Storage.OBS, and CCE.Storage.SFS
    • ECS.CloudServer
  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.

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 Yes.

    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.