b1447b20815c7624bbc866c4362edb4cab03f6e3
[sdnc/oam.git] / platform-logic / lcm / src / main / json / LCM_upgrade-post-check.json
1 [
2     {
3         "comments": "",
4         "id": "e4e70092.b7662",
5         "name": "upgrade-post-check",
6         "outputs": 1,
7         "type": "method",
8         "wires": [
9             [
10                 "bb888dbc.8c45a8"
11             ]
12         ],
13         "x": 521,
14         "xml": "<method rpc='upgrade-post-check' mode='sync'>\n",
15         "y": 182,
16         "z": "9bf3d460.112078"
17     },
18     {
19         "comments": "",
20         "id": "8bfd5b63.3e5f4",
21         "module": "LCM",
22         "name": "LCM ${project.version}",
23         "outputs": 1,
24         "type": "service-logic",
25         "version": "${project.version}",
26         "wires": [
27             [
28                 "e4e70092.b7662"
29             ]
30         ],
31         "x": 308.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": 183,
34         "z": "9bf3d460.112078"
35     },
36     {
37         "comments": "",
38         "id": "5e5ee749.3bcc48",
39         "name": "execute AnsibleA.reqExec",
40         "outputs": 1,
41         "type": "execute",
42         "wires": [
43             [
44                 "1634a5a.ed4b85a",
45                 "957f4d84.2df1f",
46                 "46d7a6a2.66c73"
47             ]
48         ],
49         "x": 309.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-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`'/>",
51         "y": 400,
52         "z": "9bf3d460.112078"
53     },
54     {
55         "comments": "",
56         "id": "a6974c46.ebe7b8",
57         "name": "switch",
58         "outputs": 1,
59         "type": "switchNode",
60         "wires": [
61             [
62                 "688b9000.f7d6e",
63                 "6d4c7406.63e3a4",
64                 "f9c039c.e2674c8"
65             ]
66         ],
67         "x": 610,
68         "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
69         "y": 448,
70         "z": "9bf3d460.112078"
71     },
72     {
73         "comments": "",
74         "id": "688b9000.f7d6e",
75         "name": "outcome 500",
76         "outputs": 1,
77         "type": "other",
78         "wires": [
79             [
80                 "31c18e01.31d712"
81             ]
82         ],
83         "x": 755,
84         "xml": "<outcome value='500'>\n",
85         "y": 446.00000762939453,
86         "z": "9bf3d460.112078"
87     },
88     {
89         "comments": "",
90         "id": "6d4c7406.63e3a4",
91         "name": "outcome 100",
92         "outputs": 1,
93         "type": "other",
94         "wires": [
95             [
96                 "49c00e3.94ec7f"
97             ]
98         ],
99         "x": 758,
100         "xml": "<outcome value='100'>\n",
101         "y": 489.00003814697266,
102         "z": "9bf3d460.112078"
103     },
104     {
105         "comments": "",
106         "id": "49c00e3.94ec7f",
107         "name": "execute reqExecResult",
108         "outputs": 1,
109         "type": "execute",
110         "wires": [
111             [
112                 "23a74147.f18206",
113                 "8fc99d96.bc351"
114             ]
115         ],
116         "x": 936.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='`$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",
118         "y": 489.00003814697266,
119         "z": "9bf3d460.112078"
120     },
121     {
122         "comments": "",
123         "id": "957f4d84.2df1f",
124         "name": "failure",
125         "outputs": 1,
126         "type": "failure",
127         "wires": [
128             [
129                 "31c18e01.31d712"
130             ]
131         ],
132         "x": 501,
133         "xml": "<outcome value='failure'>\n",
134         "y": 357.0000305175781,
135         "z": "9bf3d460.112078"
136     },
137     {
138         "comments": "",
139         "id": "1634a5a.ed4b85a",
140         "name": "other",
141         "outputs": 1,
142         "type": "other",
143         "wires": [
144             [
145                 "a6974c46.ebe7b8"
146             ]
147         ],
148         "x": 503,
149         "xml": "<outcome value='Other'>\n",
150         "y": 409,
151         "z": "9bf3d460.112078"
152     },
153     {
154         "comments": "",
155         "id": "23a74147.f18206",
156         "name": "failure",
157         "outputs": 1,
158         "type": "failure",
159         "wires": [
160             [
161                 "31c18e01.31d712"
162             ]
163         ],
164         "x": 1097.0000610351562,
165         "xml": "<outcome value='failure'>\n",
166         "y": 466.00000762939453,
167         "z": "9bf3d460.112078"
168     },
169     {
170         "comments": "",
171         "id": "f9c039c.e2674c8",
172         "name": "outcome 101",
173         "outputs": 1,
174         "type": "other",
175         "wires": [
176             [
177                 "31c18e01.31d712"
178             ]
179         ],
180         "x": 752,
181         "xml": "<outcome value='101'>\n",
182         "y": 404.00003814697266,
183         "z": "9bf3d460.112078"
184     },
185     {
186         "comments": "",
187         "id": "8fc99d96.bc351",
188         "name": "success",
189         "outputs": 1,
190         "type": "success",
191         "wires": [
192             [
193                 "d1887396.9adf08"
194             ]
195         ],
196         "x": 1104.0000610351562,
197         "xml": "<outcome value='success'>\n",
198         "y": 514.0000381469727,
199         "z": "9bf3d460.112078"
200     },
201     {
202         "comments": "",
203         "id": "6d18cbe4.797a4c",
204         "name": "return success",
205         "type": "returnSuccess",
206         "wires": [],
207         "x": 1386.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": 566.0000381469727,
210         "z": "9bf3d460.112078"
211     },
212     {
213         "id": "12001730.eb4a51",
214         "name": "DGSTART",
215         "outputs": 1,
216         "type": "dgstart",
217         "wires": [
218             [
219                 "8bfd5b63.3e5f4"
220             ]
221         ],
222         "x": 124,
223         "y": 182,
224         "z": "9bf3d460.112078"
225     },
226     {
227         "atomic": "false",
228         "comments": "",
229         "id": "bb888dbc.8c45a8",
230         "name": "block",
231         "outputs": 1,
232         "type": "block",
233         "wires": [
234             [
235                 "5e5ee749.3bcc48",
236                 "a6d4fb87.681f68",
237                 "b740ef3c.edfdc8"
238             ]
239         ],
240         "x": 119.91668701171875,
241         "xml": "<block>\n",
242         "y": 363.0833435058594,
243         "z": "9bf3d460.112078"
244     },
245     {
246         "comments": "",
247         "id": "a6d4fb87.681f68",
248         "name": "execute Properties",
249         "outputs": 1,
250         "type": "execute",
251         "wires": [
252             []
253         ],
254         "x": 292.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": 321.0833435058594,
257         "z": "9bf3d460.112078"
258     },
259     {
260         "comments": "",
261         "id": "cb67f90f.046f3",
262         "name": "execute DmaapMsg",
263         "outputs": 1,
264         "type": "execute",
265         "wires": [
266             [
267                 "875f0b0e.0e6f7"
268             ]
269         ],
270         "x": 1104.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": 310.0833435058594,
273         "z": "9bf3d460.112078"
274     },
275     {
276         "comments": "",
277         "id": "875f0b0e.0e6f7",
278         "name": "failure",
279         "outputs": 1,
280         "type": "failure",
281         "wires": [
282             [
283                 "ffef3abf.fa3b28"
284             ]
285         ],
286         "x": 1274,
287         "xml": "<outcome value='failure'>\n",
288         "y": 309.0833435058594,
289         "z": "9bf3d460.112078"
290     },
291     {
292         "atomic": "false",
293         "comments": "",
294         "id": "31c18e01.31d712",
295         "name": "block",
296         "outputs": 1,
297         "type": "block",
298         "wires": [
299             [
300                 "cb67f90f.046f3",
301                 "a0aa0de3.da3e58",
302                 "ba94d9aa.311d58"
303             ]
304         ],
305         "x": 907,
306         "xml": "<block>\n",
307         "y": 334.0833435058594,
308         "z": "9bf3d460.112078"
309     },
310     {
311         "comments": "",
312         "id": "49340dd8.256594",
313         "name": "execute DmaapMsg",
314         "outputs": 1,
315         "type": "execute",
316         "wires": [
317             [
318                 "2488d4ee.ca9d2c"
319             ]
320         ],
321         "x": 1407.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": 515.0833511352539,
324         "z": "9bf3d460.112078"
325     },
326     {
327         "comments": "",
328         "id": "2488d4ee.ca9d2c",
329         "name": "failure",
330         "outputs": 1,
331         "type": "failure",
332         "wires": [
333             [
334                 "4d1cd7f3.31def8"
335             ]
336         ],
337         "x": 1567.4999389648438,
338         "xml": "<outcome value='failure'>\n",
339         "y": 515.0833511352539,
340         "z": "9bf3d460.112078"
341     },
342     {
343         "comments": "",
344         "id": "ffef3abf.fa3b28",
345         "name": "record",
346         "outputs": 1,
347         "type": "record",
348         "wires": [
349             []
350         ],
351         "x": 1406,
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": 309.0833435058594,
354         "z": "9bf3d460.112078"
355     },
356     {
357         "comments": "",
358         "id": "a0aa0de3.da3e58",
359         "name": "return failure",
360         "type": "returnFailure",
361         "wires": [],
362         "x": 1078.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": 347.0833435058594,
365         "z": "9bf3d460.112078"
366     },
367     {
368         "comments": "",
369         "id": "4d1cd7f3.31def8",
370         "name": "record",
371         "outputs": 1,
372         "type": "record",
373         "wires": [
374             []
375         ],
376         "x": 1688.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": 516.0833511352539,
379         "z": "9bf3d460.112078"
380     },
381     {
382         "comments": "",
383         "id": "ba94d9aa.311d58",
384         "name": "set",
385         "type": "set",
386         "wires": [],
387         "x": 1056.0000610351562,
388         "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",
389         "y": 257.0833435058594,
390         "z": "9bf3d460.112078"
391     },
392     {
393         "atomic": "false",
394         "comments": "",
395         "id": "d1887396.9adf08",
396         "name": "block",
397         "outputs": 1,
398         "type": "block",
399         "wires": [
400             [
401                 "49340dd8.256594",
402                 "2c76247f.67dc84",
403                 "6d18cbe4.797a4c"
404             ]
405         ],
406         "x": 1236.9999389648438,
407         "xml": "<block>\n",
408         "y": 514.0833206176758,
409         "z": "9bf3d460.112078"
410     },
411     {
412         "comments": "",
413         "id": "2c76247f.67dc84",
414         "name": "set",
415         "type": "set",
416         "wires": [],
417         "x": 1367.1666870117188,
418         "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",
419         "y": 467.0833511352539,
420         "z": "9bf3d460.112078"
421     },
422     {
423         "comments": "",
424         "id": "46d7a6a2.66c73",
425         "name": "not-found",
426         "outputs": 1,
427         "type": "not-found",
428         "wires": [
429             [
430                 "c55c0137.1972f8"
431             ]
432         ],
433         "x": 497,
434         "xml": "<outcome value='not-found'>\n",
435         "y": 310,
436         "z": "9bf3d460.112078"
437     },
438     {
439         "comments": "",
440         "id": "5abbb598.ba8e2c",
441         "name": "set Defaults",
442         "type": "set",
443         "wires": [],
444         "x": 881,
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": 257,
447         "z": "9bf3d460.112078"
448     },
449     {
450         "atomic": "false",
451         "comments": "",
452         "id": "c55c0137.1972f8",
453         "name": "block",
454         "outputs": 1,
455         "type": "block",
456         "wires": [
457             [
458                 "5abbb598.ba8e2c",
459                 "31c18e01.31d712"
460             ]
461         ],
462         "x": 681,
463         "xml": "<block>\n",
464         "y": 302,
465         "z": "9bf3d460.112078"
466     },
467     {
468         "comments": "",
469         "id": "b740ef3c.edfdc8",
470         "name": "set default status value",
471         "type": "set",
472         "wires": [],
473         "x": 306,
474         "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
475         "y": 361,
476         "z": "9bf3d460.112078"
477     }
478 ]