You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Di Li (JIRA)" <ji...@apache.org> on 2017/11/17 20:49:00 UTC

[jira] [Commented] (AMBARI-22136) Enable server_action tasks defined in EU/RU upgrade pack xml files to take parameters

    [ https://issues.apache.org/jira/browse/AMBARI-22136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16257538#comment-16257538 ] 

Di Li commented on AMBARI-22136:
--------------------------------

pushed to branch-2.6 as https://git-wip-us.apache.org/repos/asf?p=ambari.git;a=commit;h=fb65aab92ea3024728b2e100b0a90a8f6bbf13d9

> Enable server_action tasks defined in EU/RU upgrade pack xml files to take parameters
> -------------------------------------------------------------------------------------
>
>                 Key: AMBARI-22136
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22136
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-server
>    Affects Versions: trunk
>            Reporter: Di Li
>            Assignee: Di Li
>             Fix For: trunk
>
>         Attachments: AMBARI-22136.patch
>
>
> xsi:type="server_action"  tasks defined in EU/RU upgrade pack xml files currently can only take impClass name, message, scope and summary as parameters.  Since no custom parameters can pass in, each server_action is basically a special case where all stack/service information must be hardcoded in the Java logic.
> This JIRA proposes a way to pass in custom parameters as shown below (multiple "parameter" elements). This will allow developers to create general cased server_action that behaves accordingly to parameters passed in.
> <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.VerifyExtensionLinkAction">
>           <parameter name='a'>a</parameter>
>           <parameter name='b'>b</parameter>
>           <parameter name='target_stack'>MyStack</parameter>
>           <parameter name='target_stack_version'>1.2</parameter>
>         </task>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)