summaryrefslogtreecommitdiff
path: root/trove/common/notification.py
diff options
context:
space:
mode:
authorMorgan Jones <morgan@parelastic.com>2016-08-22 14:33:31 -0400
committerMorgan Jones <morgan@parelastic.com>2016-10-03 16:33:16 -0400
commitbea853a4cb82be718f6779a8db81f5750ca39fff (patch)
treef317458eae06348c2985d35fcde2a02b9efed1db /trove/common/notification.py
parent41f3dd6920eb60d438e1542e9994319c08e44461 (diff)
downloadtrove-bea853a4cb82be718f6779a8db81f5750ca39fff.tar.gz
Cluster Upgrade
Implement the framework for cluster upgrade, including the REST API and the Cluster implementation with default BadRequest return. This change does not include datastore implementations. Implements blueprint: bp/cluster-upgrade Depends-On: Iedb08c99bf8eb2a0b0d09e3c1ebd11965fdfff90 Change-Id: Ifde78a0ee80855e7e298b10a9ec2c8e535190205
Diffstat (limited to 'trove/common/notification.py')
-rw-r--r--trove/common/notification.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/trove/common/notification.py b/trove/common/notification.py
index be7c96bf..70919ee4 100644
--- a/trove/common/notification.py
+++ b/trove/common/notification.py
@@ -564,6 +564,17 @@ class DBaaSClusterCreate(DBaaSAPINotification):
return ['cluster_id']
+class DBaaSClusterUpgrade(DBaaSAPINotification):
+
+ @abc.abstractmethod
+ def event_type(self):
+ return 'cluster_upgrade'
+
+ @abc.abstractmethod
+ def required_start_traits(self):
+ return ['cluster_id', 'datastore_version']
+
+
class DBaaSClusterDelete(DBaaSAPINotification):
@abc.abstractmethod