Again change service log ordering: older - first (as in deployment logs).

Change-Id: Id7b215a610c0c3375055fb1ff7c75e384fab2d3a
Fixes: bug MRN-884.
This commit is contained in:
Timur Sufiev 2013-08-28 18:52:58 +04:00
parent cb850de082
commit 68cfaa1730
2 changed files with 5 additions and 2 deletions

View File

@ -58,12 +58,12 @@ def get_status_messages_for_service(request, service_id, environment_id):
result = '\n'
#TODO: Add updated time to logs
if deployments:
for deployment in deployments:
for deployment in reversed(deployments):
reports = muranoclient(request).deployments.reports(environment_id,
deployment.id,
service_id)
for report in reversed(reports):
for report in reports:
result += report.created.replace('T', ' ') + ' - ' + str(
report.text) + '\n'
return result

View File

@ -156,6 +156,9 @@ forms:
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
- expr: {YAQL: not $.clusterConfiguration.unitNamingPattern.bool() or '#' in $.clusterConfiguration.unitNamingPattern}
message: Incrementation symbol "#" is required in the Hostname template
# if IP is not valid on its own, it will be empty - the
# first check is needed to not emit comparison error when
# both IPs are not valid
- expr: {YAQL: $.clusterConfiguration.clusterIP.bool() and $.clusterConfiguration.clusterIP != $.clusterConfiguration.agListenerIP}
message: Listener IP and Cluster Static IP should be different
- unitsConfiguration: