[Root Cause]
Cloud overview panel does not recognize new introduced deploy state values like "data-migration-failed".
So that when the state is changed, it showed the state in text but icon is not shown.
[Design Overview]
Add deploy state to bind to the proper icons.
[Impact]
This fix will be in one html page which contains the function to select proper icon for deploy states. It will not affect other function or other application.
[Background]
Cloud overview panel shows deploy state in the list. Deploy state is obtained by API and screen is refreshed automatically by interval.
When the deploy state is obtained, panel shows the state text with proper icon (red for DANGER state, for example).
New deploy states are intrduced after, but panel htlm, which contains the code to manage showing proper icon, was not updated.
As a result, when new deploy state comes up, panel does not show the icon.
[Root Cause] -failed" .
Cloud overview panel does not recognize new introduced deploy state values like "data-migration
So that when the state is changed, it showed the state in text but icon is not shown.
[Design Overview]
Add deploy state to bind to the proper icons.
[Impact]
This fix will be in one html page which contains the function to select proper icon for deploy states. It will not affect other function or other application.
[Background]
Cloud overview panel shows deploy state in the list. Deploy state is obtained by API and screen is refreshed automatically by interval.
When the deploy state is obtained, panel shows the state text with proper icon (red for DANGER state, for example).
New deploy states are intrduced after, but panel htlm, which contains the code to manage showing proper icon, was not updated.
As a result, when new deploy state comes up, panel does not show the icon.
Currently supported:
[DANGER] STATE_PRE_ INSTALL_ FAILED = 'pre-install- failed' STATE_INSTALL_ FAILED = 'install-failed' STATE_BOOTSTRAP _FAILED = 'bootstrap-failed' STATE_DEPLOY_ FAILED = 'deploy-failed'
DEPLOY_
DEPLOY_
DEPLOY_
DEPLOY_
[WARNING] STATE_PRE_ INSTALL = 'pre-install' STATE_INSTALLIN G = 'installing' STATE_BOOTSTRAP PING = 'bootstrapping' STATE_DEPLOYING = 'deploying'
DEPLOY_STATE_NONE = 'not-deployed'
DEPLOY_
DEPLOY_
DEPLOY_
DEPLOY_
[SUCCESS]
DEPLOY_STATE_DONE = 'complete'
Need to support STATE_DEPLOY_ PREP_FAILED = 'deploy- prep-failed' STATE_DATA_ MIGRATION_ FAILED = 'data-migration -failed' STATE_RESTORE_ PREP_FAILED = 'restore- prep-failed' STATE_RESTORE_ FAILED = 'restore-failed'
[DANGER]
DEPLOY_
DEPLOY_
DEPLOY_
DEPLOY_
[WARNING] STATE_PRE_ DEPLOY = 'pre-deploy' STATE_MIGRATING _DATA = 'migrating-data' STATE_PRE_ RESTORE = 'pre-restore' STATE_RESTORING = 'restoring'
DEPLOY_
DEPLOY_
DEPLOY_
DEPLOY_
[SUCCESS] STATE_INSTALLED = 'installed' STATE_MIGRATED = 'migrated'
DEPLOY_
DEPLOY_
Possible deploy states are obtained from distributedclou d/dcmanager/ common/ consts. py