
This change introduced state machines for release state, deploy state and deploy host state. This change removed the direct reference to the software metadata from software-controller and other modules. Replaced with encapuslated release_data module. Also include changes: 1. removed required parameter for software deploy activate and software deploy complete RestAPI. 2. ensure reload metadata for each request 3. added feed_repo and commit-id to the deploy entity, to be subsequently passed to deploy operations. 4. fix issues TCs: passed: software upload major and patching releases passed: software deploy start major and patching releases passed: software deploy host (mock) major and patching release passed: software activate major and patching release passed: software complete major release and patching release passed: redeploy host after host deploy failed both major and patching release Story: 2010676 Task: 49849 Change-Id: I4b1894560eccb8ef4f613633a73bf3887b2b93fb Signed-off-by: Bin Qian <bin.qian@windriver.com>
49 lines
1.2 KiB
Python
49 lines
1.2 KiB
Python
#
|
|
# Copyright (c) 2023-2024 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
ADDRESS_VERSION_IPV4 = 4
|
|
ADDRESS_VERSION_IPV6 = 6
|
|
CONTROLLER_FLOATING_HOSTNAME = "controller"
|
|
|
|
SOFTWARE_STORAGE_DIR = "/opt/software"
|
|
|
|
PATCH_AGENT_STATE_IDLE = "idle"
|
|
PATCH_AGENT_STATE_INSTALLING = "installing"
|
|
PATCH_AGENT_STATE_INSTALL_FAILED = "install-failed"
|
|
PATCH_AGENT_STATE_INSTALL_REJECTED = "install-rejected"
|
|
|
|
STATUS_DEVELOPEMENT = 'DEV'
|
|
STATUS_OBSOLETE = 'OBS'
|
|
STATUS_RELEASED = 'REL'
|
|
|
|
LOOPBACK_INTERFACE_NAME = "lo"
|
|
|
|
SEMANTIC_PREAPPLY = 'pre-apply'
|
|
SEMANTIC_PREREMOVE = 'pre-remove'
|
|
SEMANTIC_ACTIONS = [SEMANTIC_PREAPPLY, SEMANTIC_PREREMOVE]
|
|
|
|
DEPLOYMENT_STATE_ACTIVE = "Active"
|
|
DEPLOYMENT_STATE_INACTIVE = "Inactive"
|
|
DEPLOYMENT_STATE_PRESTAGING = "Prestaging"
|
|
DEPLOYMENT_STATE_PRESTAGED = "Prestaged"
|
|
|
|
ISO_EXTENSION = ".iso"
|
|
SIG_EXTENSION = ".sig"
|
|
PATCH_EXTENSION = ".patch"
|
|
SUPPORTED_UPLOAD_FILE_EXT = [ISO_EXTENSION, SIG_EXTENSION, PATCH_EXTENSION]
|
|
SCRATCH_DIR = "/scratch"
|
|
|
|
# host deploy state
|
|
DEPLOYING = 'deploying'
|
|
FAILED = 'failed'
|
|
PENDING = 'pending'
|
|
DEPLOYED = 'deployed'
|
|
|
|
# Authorization modes of software cli
|
|
KEYSTONE = 'keystone'
|
|
TOKEN = 'token'
|
|
LOCAL_ROOT = 'local_root'
|