From d7ad4de26f6d935138917bedeeea929439a5d902 Mon Sep 17 00:00:00 2001 From: Tom Weininger Date: Thu, 24 Mar 2022 13:37:36 +0100 Subject: [PATCH] Add new amphora failover stopped status The new AMPHORA_FAILOVER_STOPPED state will get used as way to denote when the failover ciruit breaker stopps an amphora from doing failover. Story: 2005604 Task: 30837 Change-Id: If51d242b8534850fd11d4911b90434b5fe9dd481 --- octavia_lib/common/constants.py | 2 ++ .../notes/add-failover-stopped-status-722759b7432cad6a.yaml | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/add-failover-stopped-status-722759b7432cad6a.yaml diff --git a/octavia_lib/common/constants.py b/octavia_lib/common/constants.py index d7c80f9..db60f11 100644 --- a/octavia_lib/common/constants.py +++ b/octavia_lib/common/constants.py @@ -163,6 +163,7 @@ AMPHORA_ALLOCATED = 'ALLOCATED' AMPHORA_BOOTING = 'BOOTING' # Amphora is ready to be allocated to a load balancer AMPHORA_READY = 'READY' +AMPHORA_FAILOVER_STOPPED = 'FAILOVER_STOPPED' ACTIVE = 'ACTIVE' PENDING_DELETE = 'PENDING_DELETE' PENDING_UPDATE = 'PENDING_UPDATE' @@ -170,6 +171,7 @@ PENDING_CREATE = 'PENDING_CREATE' DELETED = 'DELETED' SUPPORTED_PROVISIONING_STATUSES = (ACTIVE, AMPHORA_ALLOCATED, AMPHORA_BOOTING, AMPHORA_READY, + AMPHORA_FAILOVER_STOPPED, PENDING_DELETE, PENDING_CREATE, PENDING_UPDATE, DELETED, ERROR) diff --git a/releasenotes/notes/add-failover-stopped-status-722759b7432cad6a.yaml b/releasenotes/notes/add-failover-stopped-status-722759b7432cad6a.yaml new file mode 100644 index 0000000..389b87b --- /dev/null +++ b/releasenotes/notes/add-failover-stopped-status-722759b7432cad6a.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Introduce new provisioning status 'FAILOVER_STOPPED' for amphorae. This status will + be used when a configured failover threshold is reached.