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