Comment 10 for bug 1551229

Revision history for this message
sundarkh (sundar-kh) wrote :

WorkAround :

To populate the monitoring details in ServerManager WebUI

SSH to the machine where the SM UI is installed.

vi /usr/src/contrail/contrail-web-server-manager/webroot/built/common/ui/js/sm.grid.config.js
Find line return cowf.getTextGenerator('status-state', dc.status) and replace it with return cowf.getFormattedValue('status-state', dc.status)
Find line return cowf.getTextGenerator('alert-percentage', dc.used_percentage) and replace it with return cowf.getFormattedValue('alert-percentage', dc.used_percentage)
Basically we are just replacing the getTextGenerator function call by getFormattedValue as the earlier function is not available now.
vi /usr/src/contrail/contrail-web-server-manager/webroot/built/common/ui/js/sm.init.js
Find line return cowf.getTextGenerator('status-state', dc.status) and replace it with return cowf.getFormattedValue('status-state', dc.status)
Find line return cowf.getTextGenerator('alert-percentage', dc.used_percentage) and replace it with return cowf.getFormattedValue('alert-percentage', dc.used_percentage)