From 0c1be89f2f0edb9502c765f258e76ded8087ad2e Mon Sep 17 00:00:00 2001 From: Alexander Tivelkov Date: Thu, 1 Aug 2013 18:29:45 +0400 Subject: [PATCH] Conductor logging enhanced (MRN-713) "Rule" tags have got additional parameter ("desc") which is supposed to contain a human-readable description of the rule - i.e. which entities the rule should match in the data (without it the rule can be identified only by its "match" statement, which is absolutely unreadable). Existing workflows have got some approximate descriptions in their Rules. These desc's are logged (at DEBUG level) when the rule is matched against some data - the matched data is outputted as well. Also, additional logging messages added in various locations to do some excessive logging of conductor operations (setting context values, reporting, state transitions, waiting for RMQ messages). As the result, the conductor's log (if HeatClient messages are grepped out) should contain a detailed explanation of conductor's states and the execution routines. Change-Id: I8d4794f522d4218cf58206682cfc9c0ca0f4b102 --- data/workflows/AD.xml | 29 +++++++++++++++-------- data/workflows/AspNetApps.xml | 18 +++++++++----- data/workflows/Common.xml | 6 ++--- data/workflows/ExternalAD.xml.example | 4 +++- data/workflows/Images.xml | 2 +- data/workflows/MsSqlServer.xml | 12 ++++++---- muranoconductor/app.py | 5 ++++ muranoconductor/commands/windows_agent.py | 2 ++ muranoconductor/reporting.py | 5 +++- muranoconductor/workflow.py | 24 ++++++++++++++----- 10 files changed, 75 insertions(+), 32 deletions(-) diff --git a/data/workflows/AD.xml b/data/workflows/AD.xml index b325aee..ea2dcf3 100644 --- a/data/workflows/AD.xml +++ b/data/workflows/AD.xml @@ -1,11 +1,13 @@ - + Creating instance ) @@ -41,7 +43,8 @@ - + @@ -87,7 +91,8 @@ - + ( @@ -135,7 +141,8 @@ - + @@ -170,7 +178,7 @@ /$.services[?(@.type == 'activeDirectory' and @.domain == ' @@ -208,7 +216,8 @@ - + ( - + ( @@ -81,7 +85,8 @@ - + ( Deploying WebApp ( @@ -9,8 +9,8 @@ - - + + diff --git a/data/workflows/ExternalAD.xml.example b/data/workflows/ExternalAD.xml.example index aba1a1b..bcd6aad 100644 --- a/data/workflows/ExternalAD.xml.example +++ b/data/workflows/ExternalAD.xml.example @@ -1,5 +1,6 @@ - + @@ -40,6 +41,7 @@ $[?(@.state.domain != ' - + ( @@ -65,7 +68,8 @@ - + (