]> xenbits.xensource.com Git - people/liuw/osstest.git/commit
ms-* html generation: Provide right title for projection
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 4 Jan 2016 16:17:15 +0000 (16:17 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 5 Jan 2016 17:42:28 +0000 (17:42 +0000)
commite824a376d37c8fc78e152dc04f2d9f6a2a54ff6f
tree2c1e0b32bb8612c75255fdd6c34a60a072f7d15c
parent5c3046afbac4bf97275addb87b1849a806851489
ms-* html generation: Provide right title for projection

When ms-queuedaemon generates a resource-projection.html, it sometimes
does so from data-plan.pl (see proc report-plan).  This means that
ms-planner does not get a reliable indication of whether it is being
run for the plan or the projection, and the resource-project.html
sometimes claims to be the plan.

Fix with a new ms-planner option -W which tells it what to put in the
title, defaulting to the value passed to -w.

DEPLOYMENT NOTE:

The new ms-planner works with the old queuedaemon, so when upgrading,
it is OK to simply update the daemons-testing.git and then restart the
ms-queuedaemon.

If it is necessary to downgrade, rewinding to the old commit with a
running ms-queuedaemon will cause errors from the old ms-planner being
passed -w -- but these errors are trapped and ignored.  So in this
case reports will be out of date until ms-queuedaemon is also
restarted.

In either case nothing will go badly wrong.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
ms-planner
ms-queuedaemon