Просмотр исходного кода

AMBARI-18980. Add manual confirm task before finalizing host-ordered upgrade (Duc Le via ncole)

Nate Cole 8 лет назад
Родитель
Сommit
aba9640623

+ 9 - 2
ambari-server/src/main/resources/stacks/HDP/2.5/upgrades/host-upgrade-2.5.xml

@@ -117,14 +117,21 @@
     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
       <skippable>true</skippable>
       <skippable>true</skippable>
       <supports-auto-skip-failure>false</supports-auto-skip-failure>
       <supports-auto-skip-failure>false</supports-auto-skip-failure>
-      
+
+      <execute-stage title="Confirm Finalize">
+        <direction>UPGRADE</direction>
+        <task xsi:type="manual">
+          <message>Please confirm you are ready to finalize.</message>
+        </task>
+      </execute-stage>
+
       <execute-stage service="HDFS" component="NAMENODE" title="Execute HDFS Finalize">
       <execute-stage service="HDFS" component="NAMENODE" title="Execute HDFS Finalize">
         <task xsi:type="execute" hosts="master">
         <task xsi:type="execute" hosts="master">
           <script>scripts/namenode.py</script>
           <script>scripts/namenode.py</script>
           <function>finalize_rolling_upgrade</function>
           <function>finalize_rolling_upgrade</function>
         </task>
         </task>
       </execute-stage>
       </execute-stage>
-      
+
       <execute-stage title="Save Cluster State">
       <execute-stage title="Save Cluster State">
         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction">
         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction">
         </task>
         </task>