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
This commit is contained in:
Tom Weininger 2022-03-24 13:37:36 +01:00
parent b24ab51935
commit d7ad4de26f
2 changed files with 7 additions and 0 deletions

View File

@ -163,6 +163,7 @@ AMPHORA_ALLOCATED = 'ALLOCATED'
AMPHORA_BOOTING = 'BOOTING' AMPHORA_BOOTING = 'BOOTING'
# Amphora is ready to be allocated to a load balancer # Amphora is ready to be allocated to a load balancer
AMPHORA_READY = 'READY' AMPHORA_READY = 'READY'
AMPHORA_FAILOVER_STOPPED = 'FAILOVER_STOPPED'
ACTIVE = 'ACTIVE' ACTIVE = 'ACTIVE'
PENDING_DELETE = 'PENDING_DELETE' PENDING_DELETE = 'PENDING_DELETE'
PENDING_UPDATE = 'PENDING_UPDATE' PENDING_UPDATE = 'PENDING_UPDATE'
@ -170,6 +171,7 @@ PENDING_CREATE = 'PENDING_CREATE'
DELETED = 'DELETED' DELETED = 'DELETED'
SUPPORTED_PROVISIONING_STATUSES = (ACTIVE, AMPHORA_ALLOCATED, SUPPORTED_PROVISIONING_STATUSES = (ACTIVE, AMPHORA_ALLOCATED,
AMPHORA_BOOTING, AMPHORA_READY, AMPHORA_BOOTING, AMPHORA_READY,
AMPHORA_FAILOVER_STOPPED,
PENDING_DELETE, PENDING_CREATE, PENDING_DELETE, PENDING_CREATE,
PENDING_UPDATE, DELETED, ERROR) PENDING_UPDATE, DELETED, ERROR)

View File

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