Wrong id used to retrieve status
[sdnc/oam.git] / platform-logic / lcm / src / main / json / LCM_upgrade-pre-check.json
1 [
2     {
3         "comments": "",
4         "id": "7018ec36.4cc5ec",
5         "name": "upgrade-pre-check",
6         "outputs": 1,
7         "type": "method",
8         "wires": [
9             [
10                 "7b5d3338.9d34a4"
11             ]
12         ],
13         "x": 531,
14         "xml": "<method rpc='upgrade-pre-check' mode='sync'>\n",
15         "y": 159,
16         "z": "c751ea25.6a3e48"
17     },
18     {
19         "comments": "",
20         "id": "761735d6.a3ecec",
21         "module": "LCM",
22         "name": "LCM ${project.version}",
23         "outputs": 1,
24         "type": "service-logic",
25         "version": "${project.version}",
26         "wires": [
27             [
28                 "7018ec36.4cc5ec"
29             ]
30         ],
31         "x": 318.99993896484375,
32         "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}'>",
33         "y": 160,
34         "z": "c751ea25.6a3e48"
35     },
36     {
37         "comments": "",
38         "id": "df87797d.9a6da8",
39         "name": "execute AnsibleA.reqExec",
40         "outputs": 1,
41         "type": "execute",
42         "wires": [
43             [
44                 "1f9baab1.f667bd",
45                 "4dcb875e.05025",
46                 "98923780.210838"
47             ]
48         ],
49         "x": 319.00001525878906,
50         "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`'/>",
51         "y": 377,
52         "z": "c751ea25.6a3e48"
53     },
54     {
55         "comments": "",
56         "id": "be5a404c.df63b",
57         "name": "switch",
58         "outputs": 1,
59         "type": "switchNode",
60         "wires": [
61             [
62                 "a0717baa.0ad7c8",
63                 "76b22e49.42c978",
64                 "9040169.c537f68"
65             ]
66         ],
67         "x": 620,
68         "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
69         "y": 425,
70         "z": "c751ea25.6a3e48"
71     },
72     {
73         "comments": "",
74         "id": "a0717baa.0ad7c8",
75         "name": "outcome 500",
76         "outputs": 1,
77         "type": "other",
78         "wires": [
79             [
80                 "ea274695.4ed0a"
81             ]
82         ],
83         "x": 765,
84         "xml": "<outcome value='500'>\n",
85         "y": 423.00000762939453,
86         "z": "c751ea25.6a3e48"
87     },
88     {
89         "comments": "",
90         "id": "76b22e49.42c978",
91         "name": "outcome 100",
92         "outputs": 1,
93         "type": "other",
94         "wires": [
95             [
96                 "f49ca07a.b8928"
97             ]
98         ],
99         "x": 768,
100         "xml": "<outcome value='100'>\n",
101         "y": 466.00003814697266,
102         "z": "c751ea25.6a3e48"
103     },
104     {
105         "comments": "",
106         "id": "f49ca07a.b8928",
107         "name": "execute reqExecResult",
108         "outputs": 1,
109         "type": "execute",
110         "wires": [
111             [
112                 "49baafab.739d7",
113                 "225528dc.01ae88"
114             ]
115         ],
116         "x": 946.0000305175781,
117         "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='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>\n\t\n\n\n\n\n",
118         "y": 466.00003814697266,
119         "z": "c751ea25.6a3e48"
120     },
121     {
122         "comments": "",
123         "id": "4dcb875e.05025",
124         "name": "failure",
125         "outputs": 1,
126         "type": "failure",
127         "wires": [
128             [
129                 "ea274695.4ed0a"
130             ]
131         ],
132         "x": 511,
133         "xml": "<outcome value='failure'>\n",
134         "y": 334.0000305175781,
135         "z": "c751ea25.6a3e48"
136     },
137     {
138         "comments": "",
139         "id": "1f9baab1.f667bd",
140         "name": "other",
141         "outputs": 1,
142         "type": "other",
143         "wires": [
144             [
145                 "be5a404c.df63b"
146             ]
147         ],
148         "x": 513,
149         "xml": "<outcome value='Other'>\n",
150         "y": 386,
151         "z": "c751ea25.6a3e48"
152     },
153     {
154         "comments": "",
155         "id": "49baafab.739d7",
156         "name": "failure",
157         "outputs": 1,
158         "type": "failure",
159         "wires": [
160             [
161                 "ea274695.4ed0a"
162             ]
163         ],
164         "x": 1107.0000610351562,
165         "xml": "<outcome value='failure'>\n",
166         "y": 443.00000762939453,
167         "z": "c751ea25.6a3e48"
168     },
169     {
170         "comments": "",
171         "id": "9040169.c537f68",
172         "name": "outcome 101",
173         "outputs": 1,
174         "type": "other",
175         "wires": [
176             [
177                 "ea274695.4ed0a"
178             ]
179         ],
180         "x": 762,
181         "xml": "<outcome value='101'>\n",
182         "y": 381.00003814697266,
183         "z": "c751ea25.6a3e48"
184     },
185     {
186         "comments": "",
187         "id": "225528dc.01ae88",
188         "name": "success",
189         "outputs": 1,
190         "type": "success",
191         "wires": [
192             [
193                 "6714b2b5.d30774"
194             ]
195         ],
196         "x": 1114.0000610351562,
197         "xml": "<outcome value='success'>\n",
198         "y": 491.00003814697266,
199         "z": "c751ea25.6a3e48"
200     },
201     {
202         "comments": "",
203         "id": "a635bf9c.d50128",
204         "name": "return success",
205         "type": "returnSuccess",
206         "wires": [],
207         "x": 1396.9999389648438,
208         "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`'/>",
209         "y": 543.0000381469727,
210         "z": "c751ea25.6a3e48"
211     },
212     {
213         "id": "cfce7550.eb4e38",
214         "name": "DGSTART",
215         "outputs": 1,
216         "type": "dgstart",
217         "wires": [
218             [
219                 "761735d6.a3ecec"
220             ]
221         ],
222         "x": 134,
223         "y": 159,
224         "z": "c751ea25.6a3e48"
225     },
226     {
227         "atomic": "false",
228         "comments": "",
229         "id": "7b5d3338.9d34a4",
230         "name": "block",
231         "outputs": 1,
232         "type": "block",
233         "wires": [
234             [
235                 "df87797d.9a6da8",
236                 "61c92510.8e1f44",
237                 "88ad34a4.11ef"
238             ]
239         ],
240         "x": 129.91668701171875,
241         "xml": "<block>\n",
242         "y": 340.0833435058594,
243         "z": "c751ea25.6a3e48"
244     },
245     {
246         "comments": "",
247         "id": "61c92510.8e1f44",
248         "name": "execute Properties",
249         "outputs": 1,
250         "type": "execute",
251         "wires": [
252             []
253         ],
254         "x": 303.00001525878906,
255         "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",
256         "y": 293.0833435058594,
257         "z": "c751ea25.6a3e48"
258     },
259     {
260         "comments": "",
261         "id": "1b10ccd4.98611b",
262         "name": "execute DmaapMsg",
263         "outputs": 1,
264         "type": "execute",
265         "wires": [
266             [
267                 "41a315d2.219cbc"
268             ]
269         ],
270         "x": 1114.0000610351562,
271         "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",
272         "y": 287.0833435058594,
273         "z": "c751ea25.6a3e48"
274     },
275     {
276         "comments": "",
277         "id": "41a315d2.219cbc",
278         "name": "failure",
279         "outputs": 1,
280         "type": "failure",
281         "wires": [
282             [
283                 "8cd3938a.e26c48"
284             ]
285         ],
286         "x": 1284,
287         "xml": "<outcome value='failure'>\n",
288         "y": 286.0833435058594,
289         "z": "c751ea25.6a3e48"
290     },
291     {
292         "atomic": "false",
293         "comments": "",
294         "id": "ea274695.4ed0a",
295         "name": "block",
296         "outputs": 1,
297         "type": "block",
298         "wires": [
299             [
300                 "1b10ccd4.98611b",
301                 "bccd0081.01b13",
302                 "7a021bb.f1ec464"
303             ]
304         ],
305         "x": 917,
306         "xml": "<block>\n",
307         "y": 311.0833435058594,
308         "z": "c751ea25.6a3e48"
309     },
310     {
311         "comments": "",
312         "id": "bdd486fa.e9a568",
313         "name": "execute DmaapMsg",
314         "outputs": 1,
315         "type": "execute",
316         "wires": [
317             [
318                 "9f6ebc1e.f5d92"
319             ]
320         ],
321         "x": 1417.4999389648438,
322         "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",
323         "y": 492.0833511352539,
324         "z": "c751ea25.6a3e48"
325     },
326     {
327         "comments": "",
328         "id": "9f6ebc1e.f5d92",
329         "name": "failure",
330         "outputs": 1,
331         "type": "failure",
332         "wires": [
333             [
334                 "570d9c94.41a1c4"
335             ]
336         ],
337         "x": 1577.4999389648438,
338         "xml": "<outcome value='failure'>\n",
339         "y": 492.0833511352539,
340         "z": "c751ea25.6a3e48"
341     },
342     {
343         "comments": "",
344         "id": "8cd3938a.e26c48",
345         "name": "record",
346         "outputs": 1,
347         "type": "record",
348         "wires": [
349             []
350         ],
351         "x": 1416,
352         "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'/>",
353         "y": 286.0833435058594,
354         "z": "c751ea25.6a3e48"
355     },
356     {
357         "comments": "",
358         "id": "bccd0081.01b13",
359         "name": "return failure",
360         "type": "returnFailure",
361         "wires": [],
362         "x": 1088.9166870117188,
363         "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
364         "y": 324.0833435058594,
365         "z": "c751ea25.6a3e48"
366     },
367     {
368         "comments": "",
369         "id": "570d9c94.41a1c4",
370         "name": "record",
371         "outputs": 1,
372         "type": "record",
373         "wires": [
374             []
375         ],
376         "x": 1698.9166870117188,
377         "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'/>",
378         "y": 493.0833511352539,
379         "z": "c751ea25.6a3e48"
380     },
381     {
382         "comments": "",
383         "id": "7a021bb.f1ec464",
384         "name": "set",
385         "type": "set",
386         "wires": [],
387         "x": 1066.0000610351562,
388         "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",
389         "y": 234.08334350585938,
390         "z": "c751ea25.6a3e48"
391     },
392     {
393         "atomic": "false",
394         "comments": "",
395         "id": "6714b2b5.d30774",
396         "name": "block",
397         "outputs": 1,
398         "type": "block",
399         "wires": [
400             [
401                 "bdd486fa.e9a568",
402                 "a28655e0.def7f8",
403                 "a635bf9c.d50128"
404             ]
405         ],
406         "x": 1246.9999389648438,
407         "xml": "<block>\n",
408         "y": 491.0833206176758,
409         "z": "c751ea25.6a3e48"
410     },
411     {
412         "comments": "",
413         "id": "a28655e0.def7f8",
414         "name": "set",
415         "type": "set",
416         "wires": [],
417         "x": 1377.1666870117188,
418         "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",
419         "y": 444.0833511352539,
420         "z": "c751ea25.6a3e48"
421     },
422     {
423         "comments": "",
424         "id": "98923780.210838",
425         "name": "not-found",
426         "outputs": 1,
427         "type": "not-found",
428         "wires": [
429             [
430                 "504babef.4c020c"
431             ]
432         ],
433         "x": 507,
434         "xml": "<outcome value='not-found'>\n",
435         "y": 287,
436         "z": "c751ea25.6a3e48"
437     },
438     {
439         "comments": "",
440         "id": "4ab0c40.39584bc",
441         "name": "set Defaults",
442         "type": "set",
443         "wires": [],
444         "x": 891,
445         "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",
446         "y": 234,
447         "z": "c751ea25.6a3e48"
448     },
449     {
450         "atomic": "false",
451         "comments": "",
452         "id": "504babef.4c020c",
453         "name": "block",
454         "outputs": 1,
455         "type": "block",
456         "wires": [
457             [
458                 "4ab0c40.39584bc",
459                 "ea274695.4ed0a"
460             ]
461         ],
462         "x": 691,
463         "xml": "<block>\n",
464         "y": 279,
465         "z": "c751ea25.6a3e48"
466     },
467     {
468         "comments": "",
469         "id": "88ad34a4.11ef",
470         "name": "set default status value",
471         "type": "set",
472         "wires": [],
473         "x": 312,
474         "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
475         "y": 337,
476         "z": "c751ea25.6a3e48"
477     }
478 ]