:original_name: en-us_topic_0178420672.html .. _en-us_topic_0178420672: ECS Statuses ============ An ECS can be in one of the following statuses specified in ECS APIs: - **status**: specifies an ECS status, which is generated by **OS-EXT-STS:vm_state** and **OS-EXT-STS:task_state**. - **OS-EXT-STS:vm_state**: indicates that the ECS is in a stable state after an operation is performed. This is an extended attribute. - **OS-EXT-STS:task_state**: indicates an intermediate status in which the ECS is processing an operation performed on it. This is an extended attribute. .. table:: **Table 1** Statuses +---------------+-------------------------------------------------------------------------------------------------------------+ | Status | Description | +===============+=============================================================================================================+ | BUILD | The ECS has been created but is not running. | +---------------+-------------------------------------------------------------------------------------------------------------+ | REBOOT | The ECS is being restarted. | +---------------+-------------------------------------------------------------------------------------------------------------+ | HARD_REBOOT | The ECS is being forcibly restarted. | +---------------+-------------------------------------------------------------------------------------------------------------+ | REBUILD | The ECS is being rebuilt. | +---------------+-------------------------------------------------------------------------------------------------------------+ | MIGRATING | The ECS is being live migrated. | +---------------+-------------------------------------------------------------------------------------------------------------+ | RESIZE | The ECS has received a specifications modification request and and has started to perform the modification. | +---------------+-------------------------------------------------------------------------------------------------------------+ | ACTIVE | The ECS is running properly. | +---------------+-------------------------------------------------------------------------------------------------------------+ | SHUTOFF | The ECS has been properly stopped. | +---------------+-------------------------------------------------------------------------------------------------------------+ | REVERT_RESIZE | The ECS is rolling back resizing. | +---------------+-------------------------------------------------------------------------------------------------------------+ | VERIFY_RESIZE | The ECS is verifying the modified configuration. | +---------------+-------------------------------------------------------------------------------------------------------------+ | ERROR | An error has occurred on the ECS. | +---------------+-------------------------------------------------------------------------------------------------------------+ | DELETED | The ECS has been deleted. | +---------------+-------------------------------------------------------------------------------------------------------------+ .. table:: **Table 2** **OS-EXT-STS:vm_state** statuses ======== ============================================ Status Description ======== ============================================ building The ECS has been created but is not running. active The ECS is running properly. stopped The ECS has been properly stopped. resized The ECS specifications have been modified. error An error has occurred on the ECS. deleted The ECS has been deleted. ======== ============================================ .. table:: **Table 3** **OS-EXT-STS:task_state** statuses +------------------------------+------------------------------------------------------------------------------------------+ | Status | Description | +==============================+==========================================================================================+ | scheduling | The ECS is being created. | +------------------------------+------------------------------------------------------------------------------------------+ | block_device_mapping | The ECS is being created, and disks are being prepared for the ECS. | +------------------------------+------------------------------------------------------------------------------------------+ | networking | The ECS is being created, and network resources are being prepared for the ECS. | +------------------------------+------------------------------------------------------------------------------------------+ | spawning | The ECS is being created. | +------------------------------+------------------------------------------------------------------------------------------+ | rebooting | The ECS is being restarted. | +------------------------------+------------------------------------------------------------------------------------------+ | reboot_pending | A restarting command has been issued to an ECS, and the ECS is to be restarted. | +------------------------------+------------------------------------------------------------------------------------------+ | reboot_started | The ECS is being restarted. | +------------------------------+------------------------------------------------------------------------------------------+ | rebooting_hard | The ECS is being forcibly restarted. | +------------------------------+------------------------------------------------------------------------------------------+ | reboot_pending_hard | A forcible restarting command has been issued to an ECS, and the ECS is to be restarted. | +------------------------------+------------------------------------------------------------------------------------------+ | reboot_started_hard | The ECS is being forcibly restarted. | +------------------------------+------------------------------------------------------------------------------------------+ | rebuilding | The ECS is being rebuilt. | +------------------------------+------------------------------------------------------------------------------------------+ | rebuild_block_device_mapping | The ECS is being rebuilt, and disks are being prepared for the ECS. | +------------------------------+------------------------------------------------------------------------------------------+ | rebuild_spawning | The ECS is being rebuilt. | +------------------------------+------------------------------------------------------------------------------------------+ | migrating | The ECS is being live migrated. | +------------------------------+------------------------------------------------------------------------------------------+ | resize_prep | The ECS specifications are to be modified, and resources are being prepared for the ECS. | +------------------------------+------------------------------------------------------------------------------------------+ | resize_migrating | The specifications of the ECS are being modified, and it is being migrated. | +------------------------------+------------------------------------------------------------------------------------------+ | resize_migrated | The specifications of the ECS are being modified, and it has been migrated. | +------------------------------+------------------------------------------------------------------------------------------+ | resize_finish | The specifications of the ECS are being modified. | +------------------------------+------------------------------------------------------------------------------------------+ | resize_reverting | The specifications modification of the ECS is being rolled back. | +------------------------------+------------------------------------------------------------------------------------------+ | powering-off | The ECS is stopped. | +------------------------------+------------------------------------------------------------------------------------------+ | powering-on | The ECS is being started. | +------------------------------+------------------------------------------------------------------------------------------+ | deleting | The ECS is being deleted. | +------------------------------+------------------------------------------------------------------------------------------+ .. table:: **Table 4** Mapping between statuses +-----------------------+------------------------------+-----------------------+ | vm_state | task_state | status | +=======================+==============================+=======================+ | building | scheduling | BUILD | | | | | | | block_device_mapping | | | | | | | | networking | | | | | | | | spawning | | | | | | | | null | | +-----------------------+------------------------------+-----------------------+ | active | rebooting | REBOOT | | | | | | | reboot_pending | | | | | | | | reboot_started | | +-----------------------+------------------------------+-----------------------+ | | rebooting_hard | HARD_REBOOT | | | | | | | reboot_pending_hard | | | | | | | | reboot_started_hard | | +-----------------------+------------------------------+-----------------------+ | | rebuilding | REBUILD | | | | | | | rebuild_block_device_mapping | | | | | | | | rebuild_spawning | | +-----------------------+------------------------------+-----------------------+ | | migrating | MIGRATING | +-----------------------+------------------------------+-----------------------+ | | powering-off | ACTIVE | | | | | | | deleting | | | | | | | | null | | +-----------------------+------------------------------+-----------------------+ | stopped | resize_prep | RESIZE | | | | | | | resize_migrating | | | | | | | | resize_migrated | | | | | | | | resize_finish | | +-----------------------+------------------------------+-----------------------+ | | rebuilding | REBUILD | | | | | | | rebuild_block_device_mapping | | | | | | | | rebuild_spawning | | +-----------------------+------------------------------+-----------------------+ | | powering-on | SHUTOFF | | | | | | | deleting | | | | | | | | null | | +-----------------------+------------------------------+-----------------------+ | resized | resize_reverting | REVERT_RESIZE | +-----------------------+------------------------------+-----------------------+ | | null | VERIFY_RESIZE | +-----------------------+------------------------------+-----------------------+ | error | rebuilding | REBUILD | | | | | | | rebuild_block_device_mapping | | | | | | | | rebuild_spawning | | +-----------------------+------------------------------+-----------------------+ | | deleting | ERROR | | | | | | | null | | +-----------------------+------------------------------+-----------------------+ | deleted | null | DELETED | +-----------------------+------------------------------+-----------------------+