aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/lcm/src/main/xml
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dt5972@att.com>2018-05-10 18:10:01 -0400
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-05-11 10:59:16 -0400
commit355b437c3a4416f3b5c03dd2adeff3c2cefdb036 (patch)
tree0db07cfe4fd9013b7a51b92e7d20fa226060386c /platform-logic/lcm/src/main/xml
parent7c44b8c2d6bb3d45b59309c87529f3630427fa2e (diff)
Add missing ansible-adapter properties
Add missing ansible-adapter.properties file, and fixed property references in LCM directed graphs. Change-Id: Iaad014ffe3e88f76545879a79a4073160ea31853 Issue-ID: SDNC-309 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com> Former-commit-id: 15fe108140e0d885f4cfe68ce6a1cc649cd437fd
Diffstat (limited to 'platform-logic/lcm/src/main/xml')
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml704
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml704
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml704
3 files changed, 1230 insertions, 882 deletions
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml
index 9569433d..0cea28f3 100644
--- a/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml
+++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml
@@ -1,295 +1,411 @@
-<service-logic
- xmlns='http://www.onap.org/sdnc/svclogic'
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>
- <method rpc='upgrade-post-check' mode='sync'>
- <block>
- <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
- <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
- <parameter name='contextPrefix' value='prop' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >
- <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
- <parameter name='User' value='`$prop.ansible.user`'/>
- <parameter name='Password' value='`prop.ansible.password`'/>
- <parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>
- <parameter name='EnvParameters' value='`$upgrade-post-check-input.payload`'/>
- <parameter name='NodeList' value='`$prop.ansible.nodelist`'/>
- <parameter name='Timeout' value='`$prop.ansible.timeout`'/>
- <parameter name='Version' value='`$prop.ansible.version`'/>
- <parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>
- <outcome value='not-found'>
- <block>
- <set>
- <parameter name='$org.onap.ccsdk.sli.adaptors.ansible.result.code' value='200'/>
- <parameter name='org.onap.ccsdk.sli.adaptors.ansible.message' value='Ansible Adapter was not found'/>
- </set>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </block>
- </outcome>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.ccsdk.sli.adaptors.ansible.result.code`">
- <outcome value='101'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='500'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='100'>
- <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >
- <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
- <parameter name='User' value='`$prop.ansible.user`'/>
- <parameter name='Password' value='`$prop.ansible.password`'/>
- <parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </return>
- </block>
- </outcome>
- </execute>
- </outcome>
- </switch>
- </outcome>
- </execute>
- </block>
- </method>
+<service-logic xmlns='http://www.onap.org/sdnc/svclogic'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+ xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd'
+ module='LCM' version='${project.version}'>
+ <method rpc='upgrade-post-check' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode'
+ method='readProperties'>
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
+ method='reqExec'>
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`' />
+ <parameter name='User' value='`$prop.ansible.user`' />
+ <parameter name='Password' value='`prop.ansible.password`' />
+ <parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`' />
+ <parameter name='EnvParameters' value='`$upgrade-post-check-input.payload`' />
+ <parameter name='NodeList' value='`$prop.ansible.nodelist`' />
+ <parameter name='Timeout' value='`$prop.ansible.timeout`' />
+ <parameter name='Version' value='`$prop.ansible.version`' />
+ <parameter name='Id'
+ value='`$upgrade-post-check-input.common-header.request-id`' />
+ <parameter name='PlaybookName'
+ value='`$prop.lcm.upgrade-post-check.playbookname`' />
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='$org.onap.appc.adapter.ansible.result.code'
+ value='401' />
+ <parameter name='org.onap.appc.adapter.ansible.message'
+ value='Ansible Adapter was not found' />
+ </set>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-post-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-post-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-post-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-post-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-post-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-post-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-post-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-post-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-post-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-post-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='101'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-post-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-post-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-post-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-post-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-post-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='500'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-post-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-post-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-post-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-post-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-post-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='100'>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
+ method='reqExecResult'>
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`' />
+ <parameter name='User' value='`$prop.ansible.user`' />
+ <parameter name='Password' value='`$prop.ansible.password`' />
+ <parameter name='Id'
+ value='`$upgrade-post-check-input.common-header.request-id`' />
+ <parameter name='PlaybookName'
+ value='`$prop.lcm.upgrade-post-check.playbookname`' />
+
+
+
+
+
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-post-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-post-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-post-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-post-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-post-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record
+ plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-post-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-post-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-post-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-post-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-post-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-post-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-post-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record
+ plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ </outcome>
+ </switch>
+ </outcome>
+ </execute>
+ </block>
+ </method>
</service-logic> \ No newline at end of file
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml
index da83a54d..9eed5056 100644
--- a/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml
+++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml
@@ -1,295 +1,411 @@
-<service-logic
- xmlns='http://www.onap.org/sdnc/svclogic'
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>
- <method rpc='upgrade-pre-check' mode='sync'>
- <block>
- <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
- <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
- <parameter name='contextPrefix' value='prop' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >
- <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
- <parameter name='User' value='`$prop.ansible.user`'/>
- <parameter name='Password' value='`prop.ansible.password`'/>
- <parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>
- <parameter name='EnvParameters' value='`$upgrade-pre-check-input.payload`'/>
- <parameter name='NodeList' value='`$prop.ansible.nodelist`'/>
- <parameter name='Timeout' value='`$prop.ansible.timeout`'/>
- <parameter name='Version' value='`$prop.ansible.version`'/>
- <parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>
- <outcome value='not-found'>
- <block>
- <set>
- <parameter name='$org.onap.ccsdk.sli.adaptors.ansible.result.code' value='200'/>
- <parameter name='org.onap.ccsdk.sli.adaptors.ansible.message' value='Ansible Adapter was not found'/>
- </set>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </block>
- </outcome>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.ccsdk.sli.adaptors.ansible.result.code`">
- <outcome value='101'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='500'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='100'>
- <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >
- <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
- <parameter name='User' value='`$prop.ansible.user`'/>
- <parameter name='Password' value='`$prop.ansible.password`'/>
- <parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </return>
- </block>
- </outcome>
- </execute>
- </outcome>
- </switch>
- </outcome>
- </execute>
- </block>
- </method>
+<service-logic xmlns='http://www.onap.org/sdnc/svclogic'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+ xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd'
+ module='LCM' version='${project.version}'>
+ <method rpc='upgrade-pre-check' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode'
+ method='readProperties'>
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
+ method='reqExec'>
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`' />
+ <parameter name='User' value='`$prop.ansible.user`' />
+ <parameter name='Password' value='`prop.ansible.password`' />
+ <parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`' />
+ <parameter name='EnvParameters' value='`$upgrade-pre-check-input.payload`' />
+ <parameter name='NodeList' value='`$prop.ansible.nodelist`' />
+ <parameter name='Timeout' value='`$prop.ansible.timeout`' />
+ <parameter name='Version' value='`$prop.ansible.version`' />
+ <parameter name='Id'
+ value='`$upgrade-pre-check-input.common-header.request-id`' />
+ <parameter name='PlaybookName'
+ value='`$prop.lcm.upgrade-pre-check.playbookname`' />
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='org.onap.appc.adapter.ansible.result.code'
+ value='401' />
+ <parameter name='org.onap.appc.adapter.ansible.message'
+ value='Ansible Adapter was not found' />
+ </set>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-pre-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-pre-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-pre-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-pre-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-pre-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-pre-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-pre-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-pre-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-pre-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-pre-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='101'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-pre-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-pre-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-pre-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-pre-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-pre-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='500'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-pre-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-pre-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-pre-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-pre-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-pre-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='100'>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
+ method='reqExecResult'>
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`' />
+ <parameter name='User' value='`$prop.ansible.user`' />
+ <parameter name='Password' value='`$prop.ansible.password`' />
+ <parameter name='Id'
+ value='`$upgrade-pre-check-input.common-header.request-id`' />
+ <parameter name='PlaybookName'
+ value='`$prop.lcm.upgrade-pre-check.playbookname`' />
+
+
+
+
+
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-pre-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-pre-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-pre-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-pre-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-pre-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record
+ plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-pre-check-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-pre-check-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-pre-check-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-pre-check-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-pre-check-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-pre-check-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-pre-check-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record
+ plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ </outcome>
+ </switch>
+ </outcome>
+ </execute>
+ </block>
+ </method>
</service-logic> \ No newline at end of file
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml
index e3ce5afb..96267890 100644
--- a/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml
+++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml
@@ -1,295 +1,411 @@
-<service-logic
- xmlns='http://www.onap.org/sdnc/svclogic'
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>
- <method rpc='upgrade-software' mode='sync'>
- <block>
- <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
- <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
- <parameter name='contextPrefix' value='prop' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >
- <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
- <parameter name='User' value='`$prop.ansible.user`'/>
- <parameter name='Password' value='`prop.ansible.password`'/>
- <parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>
- <parameter name='EnvParameters' value='`$upgrade-software-input.payload`'/>
- <parameter name='NodeList' value='`$prop.ansible.nodelist`'/>
- <parameter name='Timeout' value='`$prop.ansible.timeout`'/>
- <parameter name='Version' value='`$prop.ansible.version`'/>
- <parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>
- <parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>
- <outcome value='not-found'>
- <block>
- <set>
- <parameter name='$org.onap.ccsdk.sli.adaptors.ansible.result.code' value='200'/>
- <parameter name='org.onap.ccsdk.sli.adaptors.ansible.message' value='Ansible Adapter was not found'/>
- </set>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </block>
- </outcome>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.ccsdk.sli.adaptors.ansible.result.code`">
- <outcome value='101'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='500'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='100'>
- <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >
- <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
- <parameter name='User' value='`$prop.ansible.user`'/>
- <parameter name='Password' value='`$prop.ansible.password`'/>
- <parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>
- <parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
- <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
- <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value='Failed to Publish to DMaap'/>
- </record>
- </outcome>
- </execute>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>
- </return>
- </block>
- </outcome>
- </execute>
- </outcome>
- </switch>
- </outcome>
- </execute>
- </block>
- </method>
+<service-logic xmlns='http://www.onap.org/sdnc/svclogic'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+ xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd'
+ module='LCM' version='${project.version}'>
+ <method rpc='upgrade-software' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode'
+ method='readProperties'>
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
+ method='reqExec'>
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`' />
+ <parameter name='User' value='`$prop.ansible.user`' />
+ <parameter name='Password' value='`prop.ansible.password`' />
+ <parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`' />
+ <parameter name='EnvParameters' value='`$upgrade-software-input.payload`' />
+ <parameter name='NodeList' value='`$prop.ansible.nodelist`' />
+ <parameter name='Timeout' value='`$prop.ansible.timeout`' />
+ <parameter name='Version' value='`$prop.ansible.version`' />
+ <parameter name='Id'
+ value='`$upgrade-software-input.common-header.request-id`' />
+ <parameter name='PlaybookName'
+ value='`$prop.lcm.upgrade-software.playbookname`' />
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='$org.onap.appc.adapter.ansible.result.code'
+ value='401' />
+ <parameter name='org.onap.appc.adapter.ansible.message'
+ value='Ansible Adapter was not found' />
+ </set>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-software-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-software-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-software-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-software-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-software-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-software-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-software-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-software-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-software-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-software-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='101'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-software-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-software-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-software-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-software-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-software-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='500'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-software-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-software-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-software-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-software-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-software-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='100'>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
+ method='reqExecResult'>
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`' />
+ <parameter name='User' value='`$prop.ansible.user`' />
+ <parameter name='Password' value='`$prop.ansible.password`' />
+ <parameter name='Id'
+ value='`$upgrade-software-input.common-header.request-id`' />
+ <parameter name='PlaybookName'
+ value='`$prop.lcm.upgrade-software.playbookname`' />
+
+
+
+
+
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-software-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-software-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-software-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-software-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-software-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record
+ plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`' />
+ <parameter name='lcm-dmaap.correlation-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`' />
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software' />
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`' />
+ <parameter name='lcm-dmaap.timestamp'
+ value='`$upgrade-software-input.common-header.timestamp`' />
+ <parameter name='lcm-dmaap.api-ver'
+ value='`$upgrade-software-input.common-header.api-ver`' />
+ <parameter name='lcm-dmaap.originator-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.request-id'
+ value='`$upgrade-software-input.common-header.originator-id`' />
+ <parameter name='lcm-dmaap.sub-request-id'
+ value='`$upgrade-software-input.common-header.sub-request-id`' />
+ <parameter name='lcm-dmaap.flags.mode'
+ value='`$upgrade-software-input.common-header.flags.mode`' />
+ <parameter name='lcm-dmaap.flags.force'
+ value='`$upgrade-software-input.common-header.flags.force`' />
+ <parameter name='lcm-dmaap.flags.ttl'
+ value='`$upgrade-software-input.common-header.flags.ttl`' />
+ <parameter name='lcm-dmaap.payload'
+ value='`$org.onap.appc.adapter.ansible.results`' />
+ <parameter name='lcm-dmaap.status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </set>
+ <execute
+ plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode'
+ method='sendRequest'>
+ <parameter name='templateFileName'
+ value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record
+ plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="field1" value='Failed to Publish to DMaap' />
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code'
+ value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message'
+ value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ </outcome>
+ </switch>
+ </outcome>
+ </execute>
+ </block>
+ </method>
</service-logic> \ No newline at end of file