aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--installation/src/main/properties/ansible-adapter.properties48
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json944
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json944
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-software.json944
-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
7 files changed, 2712 insertions, 2280 deletions
diff --git a/installation/src/main/properties/ansible-adapter.properties b/installation/src/main/properties/ansible-adapter.properties
new file mode 100644
index 00000000..761758bb
--- /dev/null
+++ b/installation/src/main/properties/ansible-adapter.properties
@@ -0,0 +1,48 @@
+###
+# ============LICENSE_START=======================================================
+# ONAP : APPC
+# ================================================================================
+# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Copyright (C) 2017 Amdocs
+# =============================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+# ============LICENSE_END=========================================================
+###
+
+#
+# Default properties for the APP-C TestService Adapter
+#
+# -------------------------------------------------------------------------------------------------
+#
+# Define the name and path of any user-provided configuration (bootstrap) file that can be loaded
+# to supply configuration options
+org.onap.appc.bootstrap.file=appc.properties
+org.onap.appc.bootstrap.path=${user.home},/opt/opendaylight/current/properties
+
+appc.application.name=APPC
+
+#
+# Define the message resource bundle name to be loaded
+org.onap.appc.resources=org.onap/appc/i18n/MessageResources
+#
+# The name of the adapter.
+org.onap.appc.provider.adaptor.name=org.onap.appc.appc_ansible_adapter
+
+
+# Default truststore path and password
+org.onap.appc.adapter.ansible.trustStore=/opt/opendaylight/tls-client/mykeystore.js
+org.onap.appc.adapter.ansible.trustStore.trustPasswd=changeit
+org.onap.appc.adapter.ansible.clientType=TRUST_ALL
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json b/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json
index 0224da20..b1447b20 100644
--- a/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json
@@ -1,466 +1,478 @@
-[
- {
- "id": "cc3bbded.3295a",
- "type": "method",
- "name": "upgrade-post-check",
- "xml": "<method rpc='upgrade-post-check' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 493,
- "y": 238,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "fcff5cd2.43b9c"
- ]
- ]
- },
- {
- "id": "5b46ba23.86b834",
- "type": "service-logic",
- "name": "LCM ${project.version}",
- "module": "LCM",
- "version": "${project.version}",
- "comments": "",
- "xml": "<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}'>",
- "outputs": 1,
- "x": 280.99993896484375,
- "y": 239,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "cc3bbded.3295a"
- ]
- ]
- },
- {
- "id": "6fe211bc.82848",
- "type": "execute",
- "name": "execute AnsibleA.reqExec",
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-post-check-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
- "comments": "",
- "outputs": 1,
- "x": 281.00001525878906,
- "y": 456,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "e2203f54.fc069",
- "d5304668.3a91b8",
- "705657c0.133f18"
- ]
- ]
- },
- {
- "id": "dca14761.9a3648",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test=\"`$org.onap.ccsdk.sli.adaptors.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 582,
- "y": 504,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "ea9accf8.5dfd1",
- "654c296d.357e98",
- "eedcb18f.2c47d"
- ]
- ]
- },
- {
- "id": "ea9accf8.5dfd1",
- "type": "other",
- "name": "outcome 500",
- "xml": "<outcome value='500'>\n",
- "comments": "",
- "outputs": 1,
- "x": 727,
- "y": 502.00000762939453,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "654c296d.357e98",
- "type": "other",
- "name": "outcome 100",
- "xml": "<outcome value='100'>\n",
- "comments": "",
- "outputs": 1,
- "x": 730,
- "y": 545.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "2682f050.3484a"
- ]
- ]
- },
- {
- "id": "2682f050.3484a",
- "type": "execute",
- "name": "execute reqExecResult",
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>\n\t\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 908.0000305175781,
- "y": 545.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "27413748.995628",
- "659b0cc2.3ae244"
- ]
- ]
- },
- {
- "id": "d5304668.3a91b8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 473,
- "y": 413.0000305175781,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "e2203f54.fc069",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 475,
- "y": 465,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "dca14761.9a3648"
- ]
- ]
- },
- {
- "id": "27413748.995628",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1069.0000610351562,
- "y": 522.0000076293945,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "eedcb18f.2c47d",
- "type": "other",
- "name": "outcome 101",
- "xml": "<outcome value='101'>\n",
- "comments": "",
- "outputs": 1,
- "x": 724,
- "y": 460.00003814697266,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "659b0cc2.3ae244",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1076.0000610351562,
- "y": 570.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "5f5e27ef.4861c8"
- ]
- ]
- },
- {
- "id": "6abf69d.1e7a698",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>",
- "comments": "",
- "x": 1358.9999389648438,
- "y": 622.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "6e2017a1.a01658",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 96,
- "y": 238,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "5b46ba23.86b834"
- ]
- ]
- },
- {
- "id": "fcff5cd2.43b9c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 91.91668701171875,
- "y": 419.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "6fe211bc.82848",
- "e705bf4e.0297b"
- ]
- ]
- },
- {
- "id": "e705bf4e.0297b",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 265.00001525878906,
- "y": 401.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- []
- ]
- },
- {
- "id": "82c6d132.b27fb",
- "type": "execute",
- "name": "execute DmaapMsg",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1076.0000610351562,
- "y": 366.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "ea1dad62.6b4"
- ]
- ]
- },
- {
- "id": "ea1dad62.6b4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1246,
- "y": 365.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "8f50a91b.8fa828"
- ]
- ]
- },
- {
- "id": "60a0cbe8.afc9c4",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 879,
- "y": 390.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "82c6d132.b27fb",
- "fd02a7ce.bf5098",
- "1f2da62a.28ed8a"
- ]
- ]
- },
- {
- "id": "28dc03a3.89af6c",
- "type": "execute",
- "name": "execute DmaapMsg",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1379.4999389648438,
- "y": 571.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "672eb6c5.9eeee8"
- ]
- ]
- },
- {
- "id": "672eb6c5.9eeee8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1539.4999389648438,
- "y": 571.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "ce572144.693dc"
- ]
- ]
- },
- {
- "id": "8f50a91b.8fa828",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
- "comments": "",
- "outputs": 1,
- "x": 1378,
- "y": 365.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- []
- ]
- },
- {
- "id": "fd02a7ce.bf5098",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />\n",
- "comments": "",
- "x": 1050.9166870117188,
- "y": 403.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "ce572144.693dc",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
- "comments": "",
- "outputs": 1,
- "x": 1660.9166870117188,
- "y": 572.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- []
- ]
- },
- {
- "id": "1f2da62a.28ed8a",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>\n",
- "comments": "",
- "x": 1028.0000610351562,
- "y": 313.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "5f5e27ef.4861c8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1208.9999389648438,
- "y": 570.0833206176758,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "28dc03a3.89af6c",
- "ef19c52d.bea5d8",
- "6abf69d.1e7a698"
- ]
- ]
- },
- {
- "id": "ef19c52d.bea5d8",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>\n",
- "comments": "",
- "x": 1339.1666870117188,
- "y": 523.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "705657c0.133f18",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 469,
- "y": 366,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "f066b8c5.507f48"
- ]
- ]
- },
- {
- "id": "545bbcea.978c14",
- "type": "set",
- "name": "set Defaults",
- "xml": "<set>\n<parameter name='$org.onap.ccsdk.sli.adaptors.ansible.result.code' value='200'/>\n<parameter name='org.onap.ccsdk.sli.adaptors.ansible.message' value='Ansible Adapter was not found'/>\n",
- "comments": "",
- "x": 853,
- "y": 313,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "f066b8c5.507f48",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 653,
- "y": 358,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "545bbcea.978c14",
- "60a0cbe8.afc9c4"
- ]
- ]
- }
-] \ No newline at end of file
+[
+ {
+ "comments": "",
+ "id": "e4e70092.b7662",
+ "name": "upgrade-post-check",
+ "outputs": 1,
+ "type": "method",
+ "wires": [
+ [
+ "bb888dbc.8c45a8"
+ ]
+ ],
+ "x": 521,
+ "xml": "<method rpc='upgrade-post-check' mode='sync'>\n",
+ "y": 182,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "8bfd5b63.3e5f4",
+ "module": "LCM",
+ "name": "LCM ${project.version}",
+ "outputs": 1,
+ "type": "service-logic",
+ "version": "${project.version}",
+ "wires": [
+ [
+ "e4e70092.b7662"
+ ]
+ ],
+ "x": 308.99993896484375,
+ "xml": "<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}'>",
+ "y": 183,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "5e5ee749.3bcc48",
+ "name": "execute AnsibleA.reqExec",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "1634a5a.ed4b85a",
+ "957f4d84.2df1f",
+ "46d7a6a2.66c73"
+ ]
+ ],
+ "x": 309.00001525878906,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-post-check-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
+ "y": 400,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "a6974c46.ebe7b8",
+ "name": "switch",
+ "outputs": 1,
+ "type": "switchNode",
+ "wires": [
+ [
+ "688b9000.f7d6e",
+ "6d4c7406.63e3a4",
+ "f9c039c.e2674c8"
+ ]
+ ],
+ "x": 610,
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "y": 448,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "688b9000.f7d6e",
+ "name": "outcome 500",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "31c18e01.31d712"
+ ]
+ ],
+ "x": 755,
+ "xml": "<outcome value='500'>\n",
+ "y": 446.00000762939453,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "6d4c7406.63e3a4",
+ "name": "outcome 100",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "49c00e3.94ec7f"
+ ]
+ ],
+ "x": 758,
+ "xml": "<outcome value='100'>\n",
+ "y": 489.00003814697266,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "49c00e3.94ec7f",
+ "name": "execute reqExecResult",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "23a74147.f18206",
+ "8fc99d96.bc351"
+ ]
+ ],
+ "x": 936.0000305175781,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>\n\t\n\n\n\n\n",
+ "y": 489.00003814697266,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "957f4d84.2df1f",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "31c18e01.31d712"
+ ]
+ ],
+ "x": 501,
+ "xml": "<outcome value='failure'>\n",
+ "y": 357.0000305175781,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "1634a5a.ed4b85a",
+ "name": "other",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "a6974c46.ebe7b8"
+ ]
+ ],
+ "x": 503,
+ "xml": "<outcome value='Other'>\n",
+ "y": 409,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "23a74147.f18206",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "31c18e01.31d712"
+ ]
+ ],
+ "x": 1097.0000610351562,
+ "xml": "<outcome value='failure'>\n",
+ "y": 466.00000762939453,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "f9c039c.e2674c8",
+ "name": "outcome 101",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "31c18e01.31d712"
+ ]
+ ],
+ "x": 752,
+ "xml": "<outcome value='101'>\n",
+ "y": 404.00003814697266,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "8fc99d96.bc351",
+ "name": "success",
+ "outputs": 1,
+ "type": "success",
+ "wires": [
+ [
+ "d1887396.9adf08"
+ ]
+ ],
+ "x": 1104.0000610351562,
+ "xml": "<outcome value='success'>\n",
+ "y": 514.0000381469727,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "6d18cbe4.797a4c",
+ "name": "return success",
+ "type": "returnSuccess",
+ "wires": [],
+ "x": 1386.9999389648438,
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
+ "y": 566.0000381469727,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "id": "12001730.eb4a51",
+ "name": "DGSTART",
+ "outputs": 1,
+ "type": "dgstart",
+ "wires": [
+ [
+ "8bfd5b63.3e5f4"
+ ]
+ ],
+ "x": 124,
+ "y": 182,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "bb888dbc.8c45a8",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "5e5ee749.3bcc48",
+ "a6d4fb87.681f68",
+ "b740ef3c.edfdc8"
+ ]
+ ],
+ "x": 119.91668701171875,
+ "xml": "<block>\n",
+ "y": 363.0833435058594,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "a6d4fb87.681f68",
+ "name": "execute Properties",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ []
+ ],
+ "x": 292.00001525878906,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "y": 321.0833435058594,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "cb67f90f.046f3",
+ "name": "execute DmaapMsg",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "875f0b0e.0e6f7"
+ ]
+ ],
+ "x": 1104.0000610351562,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "y": 310.0833435058594,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "875f0b0e.0e6f7",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "ffef3abf.fa3b28"
+ ]
+ ],
+ "x": 1274,
+ "xml": "<outcome value='failure'>\n",
+ "y": 309.0833435058594,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "31c18e01.31d712",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "cb67f90f.046f3",
+ "a0aa0de3.da3e58",
+ "ba94d9aa.311d58"
+ ]
+ ],
+ "x": 907,
+ "xml": "<block>\n",
+ "y": 334.0833435058594,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "49340dd8.256594",
+ "name": "execute DmaapMsg",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "2488d4ee.ca9d2c"
+ ]
+ ],
+ "x": 1407.4999389648438,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "y": 515.0833511352539,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "2488d4ee.ca9d2c",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "4d1cd7f3.31def8"
+ ]
+ ],
+ "x": 1567.4999389648438,
+ "xml": "<outcome value='failure'>\n",
+ "y": 515.0833511352539,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "ffef3abf.fa3b28",
+ "name": "record",
+ "outputs": 1,
+ "type": "record",
+ "wires": [
+ []
+ ],
+ "x": 1406,
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "y": 309.0833435058594,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "a0aa0de3.da3e58",
+ "name": "return failure",
+ "type": "returnFailure",
+ "wires": [],
+ "x": 1078.9166870117188,
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
+ "y": 347.0833435058594,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "4d1cd7f3.31def8",
+ "name": "record",
+ "outputs": 1,
+ "type": "record",
+ "wires": [
+ []
+ ],
+ "x": 1688.9166870117188,
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "y": 516.0833511352539,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "ba94d9aa.311d58",
+ "name": "set",
+ "type": "set",
+ "wires": [],
+ "x": 1056.0000610351562,
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
+ "y": 257.0833435058594,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "d1887396.9adf08",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "49340dd8.256594",
+ "2c76247f.67dc84",
+ "6d18cbe4.797a4c"
+ ]
+ ],
+ "x": 1236.9999389648438,
+ "xml": "<block>\n",
+ "y": 514.0833206176758,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "2c76247f.67dc84",
+ "name": "set",
+ "type": "set",
+ "wires": [],
+ "x": 1367.1666870117188,
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
+ "y": 467.0833511352539,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "46d7a6a2.66c73",
+ "name": "not-found",
+ "outputs": 1,
+ "type": "not-found",
+ "wires": [
+ [
+ "c55c0137.1972f8"
+ ]
+ ],
+ "x": 497,
+ "xml": "<outcome value='not-found'>\n",
+ "y": 310,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "5abbb598.ba8e2c",
+ "name": "set Defaults",
+ "type": "set",
+ "wires": [],
+ "x": 881,
+ "xml": "<set>\n<parameter name='$org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
+ "y": 257,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "c55c0137.1972f8",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "5abbb598.ba8e2c",
+ "31c18e01.31d712"
+ ]
+ ],
+ "x": 681,
+ "xml": "<block>\n",
+ "y": 302,
+ "z": "9bf3d460.112078"
+ },
+ {
+ "comments": "",
+ "id": "b740ef3c.edfdc8",
+ "name": "set default status value",
+ "type": "set",
+ "wires": [],
+ "x": 306,
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "y": 361,
+ "z": "9bf3d460.112078"
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json b/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json
index 6e9c568c..b54fbe49 100644
--- a/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json
@@ -1,466 +1,478 @@
-[
- {
- "id": "cc3bbded.3295a",
- "type": "method",
- "name": "upgrade-pre-check",
- "xml": "<method rpc='upgrade-pre-check' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 493,
- "y": 238,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "fcff5cd2.43b9c"
- ]
- ]
- },
- {
- "id": "5b46ba23.86b834",
- "type": "service-logic",
- "name": "LCM ${project.version}",
- "module": "LCM",
- "version": "${project.version}",
- "comments": "",
- "xml": "<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}'>",
- "outputs": 1,
- "x": 280.99993896484375,
- "y": 239,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "cc3bbded.3295a"
- ]
- ]
- },
- {
- "id": "6fe211bc.82848",
- "type": "execute",
- "name": "execute AnsibleA.reqExec",
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-pre-check-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>",
- "comments": "",
- "outputs": 1,
- "x": 281.00001525878906,
- "y": 456,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "e2203f54.fc069",
- "d5304668.3a91b8",
- "705657c0.133f18"
- ]
- ]
- },
- {
- "id": "dca14761.9a3648",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test=\"`$org.onap.ccsdk.sli.adaptors.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 582,
- "y": 504,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "ea9accf8.5dfd1",
- "654c296d.357e98",
- "eedcb18f.2c47d"
- ]
- ]
- },
- {
- "id": "ea9accf8.5dfd1",
- "type": "other",
- "name": "outcome 500",
- "xml": "<outcome value='500'>\n",
- "comments": "",
- "outputs": 1,
- "x": 727,
- "y": 502.00000762939453,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "654c296d.357e98",
- "type": "other",
- "name": "outcome 100",
- "xml": "<outcome value='100'>\n",
- "comments": "",
- "outputs": 1,
- "x": 730,
- "y": 545.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "2682f050.3484a"
- ]
- ]
- },
- {
- "id": "2682f050.3484a",
- "type": "execute",
- "name": "execute reqExecResult",
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>\n\t\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 908.0000305175781,
- "y": 545.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "27413748.995628",
- "659b0cc2.3ae244"
- ]
- ]
- },
- {
- "id": "d5304668.3a91b8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 473,
- "y": 413.0000305175781,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "e2203f54.fc069",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 475,
- "y": 465,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "dca14761.9a3648"
- ]
- ]
- },
- {
- "id": "27413748.995628",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1069.0000610351562,
- "y": 522.0000076293945,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "eedcb18f.2c47d",
- "type": "other",
- "name": "outcome 101",
- "xml": "<outcome value='101'>\n",
- "comments": "",
- "outputs": 1,
- "x": 724,
- "y": 460.00003814697266,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "659b0cc2.3ae244",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1076.0000610351562,
- "y": 570.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "5f5e27ef.4861c8"
- ]
- ]
- },
- {
- "id": "6abf69d.1e7a698",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>",
- "comments": "",
- "x": 1358.9999389648438,
- "y": 622.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "6e2017a1.a01658",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 96,
- "y": 238,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "5b46ba23.86b834"
- ]
- ]
- },
- {
- "id": "fcff5cd2.43b9c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 91.91668701171875,
- "y": 419.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "6fe211bc.82848",
- "e705bf4e.0297b"
- ]
- ]
- },
- {
- "id": "e705bf4e.0297b",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 265.00001525878906,
- "y": 401.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- []
- ]
- },
- {
- "id": "82c6d132.b27fb",
- "type": "execute",
- "name": "execute DmaapMsg",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1076.0000610351562,
- "y": 366.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "ea1dad62.6b4"
- ]
- ]
- },
- {
- "id": "ea1dad62.6b4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1246,
- "y": 365.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "8f50a91b.8fa828"
- ]
- ]
- },
- {
- "id": "60a0cbe8.afc9c4",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 879,
- "y": 390.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "82c6d132.b27fb",
- "fd02a7ce.bf5098",
- "1f2da62a.28ed8a"
- ]
- ]
- },
- {
- "id": "28dc03a3.89af6c",
- "type": "execute",
- "name": "execute DmaapMsg",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1379.4999389648438,
- "y": 571.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "672eb6c5.9eeee8"
- ]
- ]
- },
- {
- "id": "672eb6c5.9eeee8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1539.4999389648438,
- "y": 571.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "ce572144.693dc"
- ]
- ]
- },
- {
- "id": "8f50a91b.8fa828",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
- "comments": "",
- "outputs": 1,
- "x": 1378,
- "y": 365.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- []
- ]
- },
- {
- "id": "fd02a7ce.bf5098",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />\n",
- "comments": "",
- "x": 1050.9166870117188,
- "y": 403.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "ce572144.693dc",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
- "comments": "",
- "outputs": 1,
- "x": 1660.9166870117188,
- "y": 572.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- []
- ]
- },
- {
- "id": "1f2da62a.28ed8a",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>\n",
- "comments": "",
- "x": 1028.0000610351562,
- "y": 313.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "5f5e27ef.4861c8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1208.9999389648438,
- "y": 570.0833206176758,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "28dc03a3.89af6c",
- "ef19c52d.bea5d8",
- "6abf69d.1e7a698"
- ]
- ]
- },
- {
- "id": "ef19c52d.bea5d8",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>\n",
- "comments": "",
- "x": 1339.1666870117188,
- "y": 523.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "705657c0.133f18",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 469,
- "y": 366,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "f066b8c5.507f48"
- ]
- ]
- },
- {
- "id": "545bbcea.978c14",
- "type": "set",
- "name": "set Defaults",
- "xml": "<set>\n<parameter name='$org.onap.ccsdk.sli.adaptors.ansible.result.code' value='200'/>\n<parameter name='org.onap.ccsdk.sli.adaptors.ansible.message' value='Ansible Adapter was not found'/>\n",
- "comments": "",
- "x": 853,
- "y": 313,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "f066b8c5.507f48",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 653,
- "y": 358,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "545bbcea.978c14",
- "60a0cbe8.afc9c4"
- ]
- ]
- }
-] \ No newline at end of file
+[
+ {
+ "comments": "",
+ "id": "7018ec36.4cc5ec",
+ "name": "upgrade-pre-check",
+ "outputs": 1,
+ "type": "method",
+ "wires": [
+ [
+ "7b5d3338.9d34a4"
+ ]
+ ],
+ "x": 531,
+ "xml": "<method rpc='upgrade-pre-check' mode='sync'>\n",
+ "y": 159,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "761735d6.a3ecec",
+ "module": "LCM",
+ "name": "LCM ${project.version}",
+ "outputs": 1,
+ "type": "service-logic",
+ "version": "${project.version}",
+ "wires": [
+ [
+ "7018ec36.4cc5ec"
+ ]
+ ],
+ "x": 318.99993896484375,
+ "xml": "<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}'>",
+ "y": 160,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "df87797d.9a6da8",
+ "name": "execute AnsibleA.reqExec",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "1f9baab1.f667bd",
+ "4dcb875e.05025",
+ "98923780.210838"
+ ]
+ ],
+ "x": 319.00001525878906,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-pre-check-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>",
+ "y": 377,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "be5a404c.df63b",
+ "name": "switch",
+ "outputs": 1,
+ "type": "switchNode",
+ "wires": [
+ [
+ "a0717baa.0ad7c8",
+ "76b22e49.42c978",
+ "9040169.c537f68"
+ ]
+ ],
+ "x": 620,
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "y": 425,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "a0717baa.0ad7c8",
+ "name": "outcome 500",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "ea274695.4ed0a"
+ ]
+ ],
+ "x": 765,
+ "xml": "<outcome value='500'>\n",
+ "y": 423.00000762939453,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "76b22e49.42c978",
+ "name": "outcome 100",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "f49ca07a.b8928"
+ ]
+ ],
+ "x": 768,
+ "xml": "<outcome value='100'>\n",
+ "y": 466.00003814697266,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "f49ca07a.b8928",
+ "name": "execute reqExecResult",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "49baafab.739d7",
+ "225528dc.01ae88"
+ ]
+ ],
+ "x": 946.0000305175781,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>\n\t\n\n\n\n\n",
+ "y": 466.00003814697266,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "4dcb875e.05025",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "ea274695.4ed0a"
+ ]
+ ],
+ "x": 511,
+ "xml": "<outcome value='failure'>\n",
+ "y": 334.0000305175781,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "1f9baab1.f667bd",
+ "name": "other",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "be5a404c.df63b"
+ ]
+ ],
+ "x": 513,
+ "xml": "<outcome value='Other'>\n",
+ "y": 386,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "49baafab.739d7",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "ea274695.4ed0a"
+ ]
+ ],
+ "x": 1107.0000610351562,
+ "xml": "<outcome value='failure'>\n",
+ "y": 443.00000762939453,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "9040169.c537f68",
+ "name": "outcome 101",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "ea274695.4ed0a"
+ ]
+ ],
+ "x": 762,
+ "xml": "<outcome value='101'>\n",
+ "y": 381.00003814697266,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "225528dc.01ae88",
+ "name": "success",
+ "outputs": 1,
+ "type": "success",
+ "wires": [
+ [
+ "6714b2b5.d30774"
+ ]
+ ],
+ "x": 1114.0000610351562,
+ "xml": "<outcome value='success'>\n",
+ "y": 491.00003814697266,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "a635bf9c.d50128",
+ "name": "return success",
+ "type": "returnSuccess",
+ "wires": [],
+ "x": 1396.9999389648438,
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
+ "y": 543.0000381469727,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "id": "cfce7550.eb4e38",
+ "name": "DGSTART",
+ "outputs": 1,
+ "type": "dgstart",
+ "wires": [
+ [
+ "761735d6.a3ecec"
+ ]
+ ],
+ "x": 134,
+ "y": 159,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "7b5d3338.9d34a4",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "df87797d.9a6da8",
+ "61c92510.8e1f44",
+ "88ad34a4.11ef"
+ ]
+ ],
+ "x": 129.91668701171875,
+ "xml": "<block>\n",
+ "y": 340.0833435058594,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "61c92510.8e1f44",
+ "name": "execute Properties",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ []
+ ],
+ "x": 303.00001525878906,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "y": 293.0833435058594,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "1b10ccd4.98611b",
+ "name": "execute DmaapMsg",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "41a315d2.219cbc"
+ ]
+ ],
+ "x": 1114.0000610351562,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "y": 287.0833435058594,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "41a315d2.219cbc",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "8cd3938a.e26c48"
+ ]
+ ],
+ "x": 1284,
+ "xml": "<outcome value='failure'>\n",
+ "y": 286.0833435058594,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "ea274695.4ed0a",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "1b10ccd4.98611b",
+ "bccd0081.01b13",
+ "7a021bb.f1ec464"
+ ]
+ ],
+ "x": 917,
+ "xml": "<block>\n",
+ "y": 311.0833435058594,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "bdd486fa.e9a568",
+ "name": "execute DmaapMsg",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "9f6ebc1e.f5d92"
+ ]
+ ],
+ "x": 1417.4999389648438,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "y": 492.0833511352539,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "9f6ebc1e.f5d92",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "570d9c94.41a1c4"
+ ]
+ ],
+ "x": 1577.4999389648438,
+ "xml": "<outcome value='failure'>\n",
+ "y": 492.0833511352539,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "8cd3938a.e26c48",
+ "name": "record",
+ "outputs": 1,
+ "type": "record",
+ "wires": [
+ []
+ ],
+ "x": 1416,
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "y": 286.0833435058594,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "bccd0081.01b13",
+ "name": "return failure",
+ "type": "returnFailure",
+ "wires": [],
+ "x": 1088.9166870117188,
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
+ "y": 324.0833435058594,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "570d9c94.41a1c4",
+ "name": "record",
+ "outputs": 1,
+ "type": "record",
+ "wires": [
+ []
+ ],
+ "x": 1698.9166870117188,
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "y": 493.0833511352539,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "7a021bb.f1ec464",
+ "name": "set",
+ "type": "set",
+ "wires": [],
+ "x": 1066.0000610351562,
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
+ "y": 234.08334350585938,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "6714b2b5.d30774",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "bdd486fa.e9a568",
+ "a28655e0.def7f8",
+ "a635bf9c.d50128"
+ ]
+ ],
+ "x": 1246.9999389648438,
+ "xml": "<block>\n",
+ "y": 491.0833206176758,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "a28655e0.def7f8",
+ "name": "set",
+ "type": "set",
+ "wires": [],
+ "x": 1377.1666870117188,
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
+ "y": 444.0833511352539,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "98923780.210838",
+ "name": "not-found",
+ "outputs": 1,
+ "type": "not-found",
+ "wires": [
+ [
+ "504babef.4c020c"
+ ]
+ ],
+ "x": 507,
+ "xml": "<outcome value='not-found'>\n",
+ "y": 287,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "4ab0c40.39584bc",
+ "name": "set Defaults",
+ "type": "set",
+ "wires": [],
+ "x": 891,
+ "xml": "<set>\n<parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
+ "y": 234,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "504babef.4c020c",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "4ab0c40.39584bc",
+ "ea274695.4ed0a"
+ ]
+ ],
+ "x": 691,
+ "xml": "<block>\n",
+ "y": 279,
+ "z": "c751ea25.6a3e48"
+ },
+ {
+ "comments": "",
+ "id": "88ad34a4.11ef",
+ "name": "set default status value",
+ "type": "set",
+ "wires": [],
+ "x": 312,
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "y": 337,
+ "z": "c751ea25.6a3e48"
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
index 7d373b07..7c351bd7 100644
--- a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
@@ -1,466 +1,478 @@
-[
- {
- "id": "cc3bbded.3295a",
- "type": "method",
- "name": "upgrade-software",
- "xml": "<method rpc='upgrade-software' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 493,
- "y": 238,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "fcff5cd2.43b9c"
- ]
- ]
- },
- {
- "id": "5b46ba23.86b834",
- "type": "service-logic",
- "name": "LCM ${project.version}",
- "module": "LCM",
- "version": "${project.version}",
- "comments": "",
- "xml": "<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}'>",
- "outputs": 1,
- "x": 280.99993896484375,
- "y": 239,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "cc3bbded.3295a"
- ]
- ]
- },
- {
- "id": "6fe211bc.82848",
- "type": "execute",
- "name": "execute AnsibleA.reqExec",
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-software-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>",
- "comments": "",
- "outputs": 1,
- "x": 281.00001525878906,
- "y": 456,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "e2203f54.fc069",
- "d5304668.3a91b8",
- "705657c0.133f18"
- ]
- ]
- },
- {
- "id": "dca14761.9a3648",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test=\"`$org.onap.ccsdk.sli.adaptors.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 582,
- "y": 504,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "ea9accf8.5dfd1",
- "654c296d.357e98",
- "eedcb18f.2c47d"
- ]
- ]
- },
- {
- "id": "ea9accf8.5dfd1",
- "type": "other",
- "name": "outcome 500",
- "xml": "<outcome value='500'>\n",
- "comments": "",
- "outputs": 1,
- "x": 727,
- "y": 502.00000762939453,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "654c296d.357e98",
- "type": "other",
- "name": "outcome 100",
- "xml": "<outcome value='100'>\n",
- "comments": "",
- "outputs": 1,
- "x": 730,
- "y": 545.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "2682f050.3484a"
- ]
- ]
- },
- {
- "id": "2682f050.3484a",
- "type": "execute",
- "name": "execute reqExecResult",
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>\n\t\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 908.0000305175781,
- "y": 545.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "27413748.995628",
- "659b0cc2.3ae244"
- ]
- ]
- },
- {
- "id": "d5304668.3a91b8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 473,
- "y": 413.0000305175781,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "e2203f54.fc069",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 475,
- "y": 465,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "dca14761.9a3648"
- ]
- ]
- },
- {
- "id": "27413748.995628",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1069.0000610351562,
- "y": 522.0000076293945,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "eedcb18f.2c47d",
- "type": "other",
- "name": "outcome 101",
- "xml": "<outcome value='101'>\n",
- "comments": "",
- "outputs": 1,
- "x": 724,
- "y": 460.00003814697266,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "60a0cbe8.afc9c4"
- ]
- ]
- },
- {
- "id": "659b0cc2.3ae244",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1076.0000610351562,
- "y": 570.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "5f5e27ef.4861c8"
- ]
- ]
- },
- {
- "id": "6abf69d.1e7a698",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>",
- "comments": "",
- "x": 1358.9999389648438,
- "y": 622.0000381469727,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "6e2017a1.a01658",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 96,
- "y": 238,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "5b46ba23.86b834"
- ]
- ]
- },
- {
- "id": "fcff5cd2.43b9c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 91.91668701171875,
- "y": 419.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "6fe211bc.82848",
- "e705bf4e.0297b"
- ]
- ]
- },
- {
- "id": "e705bf4e.0297b",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 265.00001525878906,
- "y": 401.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- []
- ]
- },
- {
- "id": "82c6d132.b27fb",
- "type": "execute",
- "name": "execute DmaapMsg",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1076.0000610351562,
- "y": 366.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "ea1dad62.6b4"
- ]
- ]
- },
- {
- "id": "ea1dad62.6b4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1246,
- "y": 365.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "8f50a91b.8fa828"
- ]
- ]
- },
- {
- "id": "60a0cbe8.afc9c4",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 879,
- "y": 390.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "82c6d132.b27fb",
- "fd02a7ce.bf5098",
- "1f2da62a.28ed8a"
- ]
- ]
- },
- {
- "id": "28dc03a3.89af6c",
- "type": "execute",
- "name": "execute DmaapMsg",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1379.4999389648438,
- "y": 571.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "672eb6c5.9eeee8"
- ]
- ]
- },
- {
- "id": "672eb6c5.9eeee8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1539.4999389648438,
- "y": 571.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "ce572144.693dc"
- ]
- ]
- },
- {
- "id": "8f50a91b.8fa828",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
- "comments": "",
- "outputs": 1,
- "x": 1378,
- "y": 365.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- []
- ]
- },
- {
- "id": "fd02a7ce.bf5098",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`' />\n",
- "comments": "",
- "x": 1050.9166870117188,
- "y": 403.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "ce572144.693dc",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
- "comments": "",
- "outputs": 1,
- "x": 1660.9166870117188,
- "y": 572.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- []
- ]
- },
- {
- "id": "1f2da62a.28ed8a",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>\n",
- "comments": "",
- "x": 1028.0000610351562,
- "y": 313.0833435058594,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "5f5e27ef.4861c8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1208.9999389648438,
- "y": 570.0833206176758,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "28dc03a3.89af6c",
- "ef19c52d.bea5d8",
- "6abf69d.1e7a698"
- ]
- ]
- },
- {
- "id": "ef19c52d.bea5d8",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.ccsdk.sli.adaptors.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.ccsdk.sli.adaptors.ansible.message`'/>\n",
- "comments": "",
- "x": 1339.1666870117188,
- "y": 523.0833511352539,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "705657c0.133f18",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 469,
- "y": 366,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "f066b8c5.507f48"
- ]
- ]
- },
- {
- "id": "545bbcea.978c14",
- "type": "set",
- "name": "set Defaults",
- "xml": "<set>\n<parameter name='$org.onap.ccsdk.sli.adaptors.ansible.result.code' value='200'/>\n<parameter name='org.onap.ccsdk.sli.adaptors.ansible.message' value='Ansible Adapter was not found'/>\n",
- "comments": "",
- "x": 853,
- "y": 313,
- "z": "7a7e6b0a.b892b4",
- "wires": []
- },
- {
- "id": "f066b8c5.507f48",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 653,
- "y": 358,
- "z": "7a7e6b0a.b892b4",
- "wires": [
- [
- "545bbcea.978c14",
- "60a0cbe8.afc9c4"
- ]
- ]
- }
-] \ No newline at end of file
+[
+ {
+ "comments": "",
+ "id": "e3957e37.35361",
+ "name": "upgrade-software",
+ "outputs": 1,
+ "type": "method",
+ "wires": [
+ [
+ "c5d4c45f.4457e"
+ ]
+ ],
+ "x": 506,
+ "xml": "<method rpc='upgrade-software' mode='sync'>\n",
+ "y": 196,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "5f2faaca.f39734",
+ "module": "LCM",
+ "name": "LCM ${project.version}",
+ "outputs": 1,
+ "type": "service-logic",
+ "version": "${project.version}",
+ "wires": [
+ [
+ "e3957e37.35361"
+ ]
+ ],
+ "x": 293.99993896484375,
+ "xml": "<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}'>",
+ "y": 197,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "70dc7b0c.2f14e4",
+ "name": "execute AnsibleA.reqExec",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "bc899025.fa2868",
+ "f27679b0.21ec",
+ "704e725e.7e874c"
+ ]
+ ],
+ "x": 294.00001525878906,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-software-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>",
+ "y": 414,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "e3dc71b8.c785c8",
+ "name": "switch",
+ "outputs": 1,
+ "type": "switchNode",
+ "wires": [
+ [
+ "86baeda9.1ff078",
+ "195ba453.c1b374",
+ "931e0cc5.50a74"
+ ]
+ ],
+ "x": 595,
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "y": 462,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "86baeda9.1ff078",
+ "name": "outcome 500",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "d1ce272a.df817"
+ ]
+ ],
+ "x": 740,
+ "xml": "<outcome value='500'>\n",
+ "y": 460.00000762939453,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "195ba453.c1b374",
+ "name": "outcome 100",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "245ca838.b01f4"
+ ]
+ ],
+ "x": 743,
+ "xml": "<outcome value='100'>\n",
+ "y": 503.00003814697266,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "245ca838.b01f4",
+ "name": "execute reqExecResult",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "b1d260a0.f027c8",
+ "7c135a2c.b77b1c"
+ ]
+ ],
+ "x": 921.0000305175781,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>\n\t\n\n\n\n\n",
+ "y": 503.00003814697266,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "f27679b0.21ec",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "d1ce272a.df817"
+ ]
+ ],
+ "x": 486,
+ "xml": "<outcome value='failure'>\n",
+ "y": 371.0000305175781,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "bc899025.fa2868",
+ "name": "other",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "e3dc71b8.c785c8"
+ ]
+ ],
+ "x": 488,
+ "xml": "<outcome value='Other'>\n",
+ "y": 423,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "b1d260a0.f027c8",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "d1ce272a.df817"
+ ]
+ ],
+ "x": 1082.0000610351562,
+ "xml": "<outcome value='failure'>\n",
+ "y": 480.00000762939453,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "931e0cc5.50a74",
+ "name": "outcome 101",
+ "outputs": 1,
+ "type": "other",
+ "wires": [
+ [
+ "d1ce272a.df817"
+ ]
+ ],
+ "x": 737,
+ "xml": "<outcome value='101'>\n",
+ "y": 418.00003814697266,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "7c135a2c.b77b1c",
+ "name": "success",
+ "outputs": 1,
+ "type": "success",
+ "wires": [
+ [
+ "a9adb7fd.3d4988"
+ ]
+ ],
+ "x": 1089.0000610351562,
+ "xml": "<outcome value='success'>\n",
+ "y": 528.0000381469727,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "6546fdb6.d892ac",
+ "name": "return success",
+ "type": "returnSuccess",
+ "wires": [],
+ "x": 1371.9999389648438,
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
+ "y": 580.0000381469727,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "id": "c7222a65.c32fa",
+ "name": "DGSTART",
+ "outputs": 1,
+ "type": "dgstart",
+ "wires": [
+ [
+ "5f2faaca.f39734"
+ ]
+ ],
+ "x": 109,
+ "y": 196,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "c5d4c45f.4457e",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "70dc7b0c.2f14e4",
+ "2144c479.557abc",
+ "2dcfb067.346e98"
+ ]
+ ],
+ "x": 104.91668701171875,
+ "xml": "<block>\n",
+ "y": 377.0833435058594,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "2144c479.557abc",
+ "name": "execute Properties",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ []
+ ],
+ "x": 279.00001525878906,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "y": 319.0833435058594,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "3ab47119.0770ce",
+ "name": "execute DmaapMsg",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "29d7b192.efbf56"
+ ]
+ ],
+ "x": 1089.0000610351562,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "y": 324.0833435058594,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "29d7b192.efbf56",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "3b3f2df3.e75202"
+ ]
+ ],
+ "x": 1259,
+ "xml": "<outcome value='failure'>\n",
+ "y": 323.0833435058594,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "d1ce272a.df817",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "3ab47119.0770ce",
+ "be81ce81.d8751",
+ "e34055b3.f4fc"
+ ]
+ ],
+ "x": 892,
+ "xml": "<block>\n",
+ "y": 348.0833435058594,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "d0e97f8b.a0a97",
+ "name": "execute DmaapMsg",
+ "outputs": 1,
+ "type": "execute",
+ "wires": [
+ [
+ "f13ad0f8.38e418"
+ ]
+ ],
+ "x": 1392.4999389648438,
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "y": 529.0833511352539,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "f13ad0f8.38e418",
+ "name": "failure",
+ "outputs": 1,
+ "type": "failure",
+ "wires": [
+ [
+ "8b1d7157.857a38"
+ ]
+ ],
+ "x": 1552.4999389648438,
+ "xml": "<outcome value='failure'>\n",
+ "y": 529.0833511352539,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "3b3f2df3.e75202",
+ "name": "record",
+ "outputs": 1,
+ "type": "record",
+ "wires": [
+ []
+ ],
+ "x": 1391,
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "y": 323.0833435058594,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "be81ce81.d8751",
+ "name": "return failure",
+ "type": "returnFailure",
+ "wires": [],
+ "x": 1063.9166870117188,
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
+ "y": 361.0833435058594,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "8b1d7157.857a38",
+ "name": "record",
+ "outputs": 1,
+ "type": "record",
+ "wires": [
+ []
+ ],
+ "x": 1673.9166870117188,
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "y": 530.0833511352539,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "e34055b3.f4fc",
+ "name": "set",
+ "type": "set",
+ "wires": [],
+ "x": 1041.0000610351562,
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
+ "y": 271.0833435058594,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "a9adb7fd.3d4988",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "d0e97f8b.a0a97",
+ "c5897c80.8110a",
+ "6546fdb6.d892ac"
+ ]
+ ],
+ "x": 1221.9999389648438,
+ "xml": "<block>\n",
+ "y": 528.0833206176758,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "c5897c80.8110a",
+ "name": "set",
+ "type": "set",
+ "wires": [],
+ "x": 1352.1666870117188,
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
+ "y": 481.0833511352539,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "704e725e.7e874c",
+ "name": "not-found",
+ "outputs": 1,
+ "type": "not-found",
+ "wires": [
+ [
+ "28042a17.b7aa2e"
+ ]
+ ],
+ "x": 482,
+ "xml": "<outcome value='not-found'>\n",
+ "y": 324,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "e7d4edd8.d7f83",
+ "name": "set Defaults",
+ "type": "set",
+ "wires": [],
+ "x": 866,
+ "xml": "<set>\n<parameter name='$org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
+ "y": 271,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "atomic": "false",
+ "comments": "",
+ "id": "28042a17.b7aa2e",
+ "name": "block",
+ "outputs": 1,
+ "type": "block",
+ "wires": [
+ [
+ "e7d4edd8.d7f83",
+ "d1ce272a.df817"
+ ]
+ ],
+ "x": 666,
+ "xml": "<block>\n",
+ "y": 316,
+ "z": "455a25b6.fcbc5c"
+ },
+ {
+ "comments": "",
+ "id": "2dcfb067.346e98",
+ "name": "set default status value",
+ "type": "set",
+ "wires": [],
+ "x": 293,
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "y": 363,
+ "z": "455a25b6.fcbc5c"
+ }
+]
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