Merge "Document Security section of the Release Notes"
[sdnc/oam.git] / platform-logic / lcm / src / main / json / LCM_upgrade-pre-check.json
1 [
2     {
3         "id": "8794d455.5cce5",
4         "type": "method",
5         "name": "upgrade-pre-check",
6         "xml": "<method rpc='upgrade-pre-check' mode='sync'>\n",
7         "comments": "",
8         "outputs": 1,
9         "x": 520,
10         "y": 133,
11         "z": "7da5048.3ddb5fc",
12         "wires": [
13             [
14                 "ff45289b.166bd8"
15             ]
16         ]
17     },
18     {
19         "id": "80857f67.984b6",
20         "type": "service-logic",
21         "name": "LCM ${project.version}",
22         "module": "LCM",
23         "version": "${project.version}",
24         "comments": "",
25         "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}'>",
26         "outputs": 1,
27         "x": 307.99993896484375,
28         "y": 134,
29         "z": "7da5048.3ddb5fc",
30         "wires": [
31             [
32                 "8794d455.5cce5"
33             ]
34         ]
35     },
36     {
37         "id": "d102dc2d.41fe",
38         "type": "execute",
39         "name": "execute AnsibleA.reqExec",
40         "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`'/>",
41         "comments": "",
42         "outputs": 1,
43         "x": 308.00001525878906,
44         "y": 351,
45         "z": "7da5048.3ddb5fc",
46         "wires": [
47             [
48                 "dde77b94.93ef18",
49                 "ed53398e.b83e6",
50                 "f5081dcd.9b7118"
51             ]
52         ]
53     },
54     {
55         "id": "fe62b59e.3e5e2",
56         "type": "switchNode",
57         "name": "switch",
58         "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
59         "comments": "",
60         "outputs": 1,
61         "x": 609,
62         "y": 399,
63         "z": "7da5048.3ddb5fc",
64         "wires": [
65             [
66                 "1521e2ba.c5b60d",
67                 "c92b8968.b6598",
68                 "1549489f.79a4df"
69             ]
70         ]
71     },
72     {
73         "id": "1521e2ba.c5b60d",
74         "type": "other",
75         "name": "outcome 500",
76         "xml": "<outcome value='500'>\n",
77         "comments": "",
78         "outputs": 1,
79         "x": 754,
80         "y": 397.00000762939453,
81         "z": "7da5048.3ddb5fc",
82         "wires": [
83             [
84                 "6680d59e.022b5c"
85             ]
86         ]
87     },
88     {
89         "id": "c92b8968.b6598",
90         "type": "other",
91         "name": "outcome 100",
92         "xml": "<outcome value='100'>\n",
93         "comments": "",
94         "outputs": 1,
95         "x": 757,
96         "y": 440.00003814697266,
97         "z": "7da5048.3ddb5fc",
98         "wires": [
99             [
100                 "a515c0c.2a1774"
101             ]
102         ]
103     },
104     {
105         "id": "a515c0c.2a1774",
106         "type": "execute",
107         "name": "execute reqExecResult",
108         "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",
109         "comments": "",
110         "outputs": 1,
111         "x": 935.0000305175781,
112         "y": 440.00003814697266,
113         "z": "7da5048.3ddb5fc",
114         "wires": [
115             [
116                 "aafd18f3.e67588",
117                 "12d7ff4a.4dff39"
118             ]
119         ]
120     },
121     {
122         "id": "ed53398e.b83e6",
123         "type": "failure",
124         "name": "failure",
125         "xml": "<outcome value='failure'>\n",
126         "comments": "",
127         "outputs": 1,
128         "x": 500,
129         "y": 308.0000305175781,
130         "z": "7da5048.3ddb5fc",
131         "wires": [
132             [
133                 "6680d59e.022b5c"
134             ]
135         ]
136     },
137     {
138         "id": "dde77b94.93ef18",
139         "type": "other",
140         "name": "other",
141         "xml": "<outcome value='Other'>\n",
142         "comments": "",
143         "outputs": 1,
144         "x": 502,
145         "y": 360,
146         "z": "7da5048.3ddb5fc",
147         "wires": [
148             [
149                 "fe62b59e.3e5e2"
150             ]
151         ]
152     },
153     {
154         "id": "aafd18f3.e67588",
155         "type": "failure",
156         "name": "failure",
157         "xml": "<outcome value='failure'>\n",
158         "comments": "",
159         "outputs": 1,
160         "x": 1096.0000610351562,
161         "y": 417.00000762939453,
162         "z": "7da5048.3ddb5fc",
163         "wires": [
164             [
165                 "6680d59e.022b5c"
166             ]
167         ]
168     },
169     {
170         "id": "1549489f.79a4df",
171         "type": "other",
172         "name": "outcome 101",
173         "xml": "<outcome value='101'>\n",
174         "comments": "",
175         "outputs": 1,
176         "x": 751,
177         "y": 355.00003814697266,
178         "z": "7da5048.3ddb5fc",
179         "wires": [
180             [
181                 "6680d59e.022b5c"
182             ]
183         ]
184     },
185     {
186         "id": "12d7ff4a.4dff39",
187         "type": "success",
188         "name": "success",
189         "xml": "<outcome value='success'>\n",
190         "comments": "",
191         "outputs": 1,
192         "x": 1103.0000610351562,
193         "y": 465.00003814697266,
194         "z": "7da5048.3ddb5fc",
195         "wires": [
196             [
197                 "db47df98.2c4588"
198             ]
199         ]
200     },
201     {
202         "id": "cdc8f332.5e3cb8",
203         "type": "returnSuccess",
204         "name": "return success",
205         "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`'/>",
206         "comments": "",
207         "x": 1385.9999389648438,
208         "y": 517.0000381469727,
209         "z": "7da5048.3ddb5fc",
210         "wires": []
211     },
212     {
213         "id": "35025675.c3eb3a",
214         "type": "dgstart",
215         "name": "DGSTART",
216         "outputs": 1,
217         "x": 123,
218         "y": 133,
219         "z": "7da5048.3ddb5fc",
220         "wires": [
221             [
222                 "80857f67.984b6"
223             ]
224         ]
225     },
226     {
227         "id": "ff45289b.166bd8",
228         "type": "block",
229         "name": "block",
230         "xml": "<block>\n",
231         "atomic": "false",
232         "comments": "",
233         "outputs": 1,
234         "x": 118.91668701171875,
235         "y": 314.0833435058594,
236         "z": "7da5048.3ddb5fc",
237         "wires": [
238             [
239                 "d102dc2d.41fe",
240                 "8c1fb722.e712a8",
241                 "d66534d5.e238c"
242             ]
243         ]
244     },
245     {
246         "id": "8c1fb722.e712a8",
247         "type": "execute",
248         "name": "execute Properties",
249         "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",
250         "comments": "",
251         "outputs": 1,
252         "x": 292.00001525878906,
253         "y": 267.0833435058594,
254         "z": "7da5048.3ddb5fc",
255         "wires": [
256             []
257         ]
258     },
259     {
260         "id": "5aa80cdf.0a7ab4",
261         "type": "execute",
262         "name": "execute DmaapMsg",
263         "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",
264         "comments": "",
265         "outputs": 1,
266         "x": 1103.0000610351562,
267         "y": 261.0833435058594,
268         "z": "7da5048.3ddb5fc",
269         "wires": [
270             [
271                 "33950e88.f14ed2"
272             ]
273         ]
274     },
275     {
276         "id": "33950e88.f14ed2",
277         "type": "failure",
278         "name": "failure",
279         "xml": "<outcome value='failure'>\n",
280         "comments": "",
281         "outputs": 1,
282         "x": 1273,
283         "y": 260.0833435058594,
284         "z": "7da5048.3ddb5fc",
285         "wires": [
286             [
287                 "d29bb160.8e2c18"
288             ]
289         ]
290     },
291     {
292         "id": "6680d59e.022b5c",
293         "type": "block",
294         "name": "block",
295         "xml": "<block>\n",
296         "atomic": "false",
297         "comments": "",
298         "outputs": 1,
299         "x": 906,
300         "y": 285.0833435058594,
301         "z": "7da5048.3ddb5fc",
302         "wires": [
303             [
304                 "5aa80cdf.0a7ab4",
305                 "b116f2bd.6d187",
306                 "3c43772b.4e0da8"
307             ]
308         ]
309     },
310     {
311         "id": "ee44a647.c4fff",
312         "type": "execute",
313         "name": "execute DmaapMsg",
314         "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",
315         "comments": "",
316         "outputs": 1,
317         "x": 1406.4999389648438,
318         "y": 466.0833511352539,
319         "z": "7da5048.3ddb5fc",
320         "wires": [
321             [
322                 "96654ac9.0d28b8"
323             ]
324         ]
325     },
326     {
327         "id": "96654ac9.0d28b8",
328         "type": "failure",
329         "name": "failure",
330         "xml": "<outcome value='failure'>\n",
331         "comments": "",
332         "outputs": 1,
333         "x": 1566.4999389648438,
334         "y": 466.0833511352539,
335         "z": "7da5048.3ddb5fc",
336         "wires": [
337             [
338                 "8e468697.9f9a2"
339             ]
340         ]
341     },
342     {
343         "id": "d29bb160.8e2c18",
344         "type": "record",
345         "name": "record",
346         "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'/>",
347         "comments": "",
348         "outputs": 1,
349         "x": 1405,
350         "y": 260.0833435058594,
351         "z": "7da5048.3ddb5fc",
352         "wires": [
353             []
354         ]
355     },
356     {
357         "id": "b116f2bd.6d187",
358         "type": "returnFailure",
359         "name": "return failure",
360         "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
361         "comments": "",
362         "x": 1077.9166870117188,
363         "y": 298.0833435058594,
364         "z": "7da5048.3ddb5fc",
365         "wires": []
366     },
367     {
368         "id": "8e468697.9f9a2",
369         "type": "record",
370         "name": "record",
371         "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'/>",
372         "comments": "",
373         "outputs": 1,
374         "x": 1687.9166870117188,
375         "y": 467.0833511352539,
376         "z": "7da5048.3ddb5fc",
377         "wires": [
378             []
379         ]
380     },
381     {
382         "id": "3c43772b.4e0da8",
383         "type": "set",
384         "name": "set",
385         "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.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`\"/>\n\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.request-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.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",
386         "comments": "",
387         "x": 1055.0000610351562,
388         "y": 208.08334350585938,
389         "z": "7da5048.3ddb5fc",
390         "wires": []
391     },
392     {
393         "id": "db47df98.2c4588",
394         "type": "block",
395         "name": "block",
396         "xml": "<block>\n",
397         "atomic": "false",
398         "comments": "",
399         "outputs": 1,
400         "x": 1235.9999389648438,
401         "y": 465.0833206176758,
402         "z": "7da5048.3ddb5fc",
403         "wires": [
404             [
405                 "ee44a647.c4fff",
406                 "61a3bf4.bcdb3c",
407                 "cdc8f332.5e3cb8"
408             ]
409         ]
410     },
411     {
412         "id": "61a3bf4.bcdb3c",
413         "type": "set",
414         "name": "set",
415         "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.request-id + '-' + $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.request-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.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",
416         "comments": "",
417         "x": 1366.1666870117188,
418         "y": 418.0833511352539,
419         "z": "7da5048.3ddb5fc",
420         "wires": []
421     },
422     {
423         "id": "f5081dcd.9b7118",
424         "type": "not-found",
425         "name": "not-found",
426         "xml": "<outcome value='not-found'>\n",
427         "comments": "",
428         "outputs": 1,
429         "x": 496,
430         "y": 261,
431         "z": "7da5048.3ddb5fc",
432         "wires": [
433             [
434                 "ce8b68f1.22b2d8"
435             ]
436         ]
437     },
438     {
439         "id": "e7918964.c04f3",
440         "type": "set",
441         "name": "set Defaults",
442         "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",
443         "comments": "",
444         "x": 880,
445         "y": 208,
446         "z": "7da5048.3ddb5fc",
447         "wires": []
448     },
449     {
450         "id": "ce8b68f1.22b2d8",
451         "type": "block",
452         "name": "block",
453         "xml": "<block>\n",
454         "atomic": "false",
455         "comments": "",
456         "outputs": 1,
457         "x": 680,
458         "y": 253,
459         "z": "7da5048.3ddb5fc",
460         "wires": [
461             [
462                 "e7918964.c04f3",
463                 "6680d59e.022b5c"
464             ]
465         ]
466     },
467     {
468         "id": "d66534d5.e238c",
469         "type": "set",
470         "name": "set default status value",
471         "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
472         "comments": "",
473         "x": 301,
474         "y": 311,
475         "z": "7da5048.3ddb5fc",
476         "wires": []
477     }
478 ]