summaryrefslogtreecommitdiffstats
path: root/nova/db/sqlalchemy/models.py
diff options
context:
space:
mode:
authorAndrea Rosa <andrea.rosa@hp.com>2013-02-20 10:10:04 +0000
committerMichael Still <mikal@stillhq.com>2013-06-12 11:27:25 +1000
commitc741e862fd35d28338d7966e03bf662c8fb65dac (patch)
treedbb6cd67e829fc5836d4ec1fc27b101e07c67fbe /nova/db/sqlalchemy/models.py
parentd7f898eab900de8f804285333e6fb921294520fc (diff)
downloadnova-c741e862fd35d28338d7966e03bf662c8fb65dac.tar.gz
nova-c741e862fd35d28338d7966e03bf662c8fb65dac.tar.xz
nova-c741e862fd35d28338d7966e03bf662c8fb65dac.zip
Give a way to save why a service has been disabled.
Implements blueprint record-reason-for-disabling-service We added a field to the service table to log a reason when a service has been disabled. We added a new API extension called os-extended-services. The new extension will extend the os-services extension adding: - A method for disabling a service and specify a reason for that. PUT /v2/{tenant_id}/os-services/disable-log-reason When the os-extended-extension is loaded the call: GET /V2/{tenant_id}/os-services will return the list of services with reason information it that exists. DocImpact Change-Id: I87a4affc45160796ff11c7b03e591e6aba73d62a
Diffstat (limited to 'nova/db/sqlalchemy/models.py')
-rw-r--r--nova/db/sqlalchemy/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/db/sqlalchemy/models.py b/nova/db/sqlalchemy/models.py
index 28fe36a0d..d12e47246 100644
--- a/nova/db/sqlalchemy/models.py
+++ b/nova/db/sqlalchemy/models.py
@@ -53,6 +53,7 @@ class Service(BASE, NovaBase):
topic = Column(String(255), nullable=True)
report_count = Column(Integer, nullable=False, default=0)
disabled = Column(Boolean, default=False)
+ disabled_reason = Column(String(255))
class ComputeNode(BASE, NovaBase):