cluster_check_dialog.hbs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div id="pre-upgrade-check">
  19. {{#if view.isAllPassed}}
  20. <i class="icon-ok"></i>&nbsp;<span>{{t admin.stackVersions.version.upgrade.upgradeOptions.preCheck.allPassed.msg}}</span>
  21. {{/if}}
  22. {{#if view.fails.length}}
  23. {{#if view.failTitle}}
  24. <h4>{{view.failTitle}}</h4>
  25. {{/if}}
  26. {{#if view.failAlert}}
  27. <div class="alert alert-warning">
  28. {{view.failAlert}}
  29. </div>
  30. {{/if}}
  31. <div class="limited-height-2">
  32. {{#each item in view.fails}}
  33. <i class="icon-remove"></i>&nbsp;<span>{{item.UpgradeChecks.check}}</span>
  34. <pre>{{t popup.clusterCheck.reason}}{{item.UpgradeChecks.reason}}<br/>{{t popup.clusterCheck.failedOn}}{{item.UpgradeChecks.failed_on}}</pre>
  35. {{/each}}
  36. </div>
  37. {{/if}}
  38. <!-- Errors that can by bypassed. -->
  39. {{#if view.bypass.length}}
  40. {{#if view.failTitle}}
  41. <h4>{{view.failTitle}}</h4>
  42. {{/if}}
  43. {{#if view.failAlert}}
  44. <div class="alert alert-warning">
  45. {{view.failAlert}}
  46. </div>
  47. {{/if}}
  48. <div class="limited-height-2">
  49. {{#each item in view.bypass}}
  50. <i class="icon-remove"></i>&nbsp;<span>{{item.UpgradeChecks.check}}</span>
  51. <pre>{{t popup.clusterCheck.reason}}{{item.UpgradeChecks.reason}}<br/>{{t popup.clusterCheck.failedOn}}{{item.UpgradeChecks.failed_on}}</pre>
  52. {{/each}}
  53. </div>
  54. {{/if}}
  55. {{#if view.warnings.length}}
  56. {{#if view.warningTitle}}
  57. <h4>{{view.warningTitle}}</h4>
  58. {{/if}}
  59. {{#if view.warningAlert}}
  60. <div class="alert alert-warning">
  61. {{view.warningAlert}}
  62. </div>
  63. {{/if}}
  64. <div class="limited-height-2">
  65. {{#each item in view.warnings}}
  66. <i class="icon-warning-sign"></i>&nbsp;<span>{{item.UpgradeChecks.check}}</span>
  67. <pre>{{t popup.clusterCheck.reason}}{{item.UpgradeChecks.reason}}<br/>{{t popup.clusterCheck.failedOn}}{{item.UpgradeChecks.failed_on}}</pre>
  68. {{/each}}
  69. </div>
  70. {{/if}}
  71. {{#if view.hasConfigsMergeConflicts}}
  72. {{view view.configsMergeTable}}
  73. {{/if}}
  74. </div>