From c741e862fd35d28338d7966e03bf662c8fb65dac Mon Sep 17 00:00:00 2001 From: Andrea Rosa Date: Wed, 20 Feb 2013 10:10:04 +0000 Subject: 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 --- nova/db/sqlalchemy/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova/db/sqlalchemy/models.py') 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): -- cgit