Update version of node base image
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / Dispatcher-DG / APPC_StopApplication_VM_vSCP_2.0.0.json
1 [
2   {
3     "id": "45094e01.04b5",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 118,
8     "y": 60,
9     "z": "4469619c.5c5ce",
10     "wires": [
11       [
12         "2edc368c.b0f64a"
13       ]
14     ]
15   },
16   {
17     "id": "2edc368c.b0f64a",
18     "type": "service-logic",
19     "name": "APPC 2.0.0",
20     "module": "APPC",
21     "version": "2.0.0",
22     "comments": "",
23     "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='APPC' version='2.0.0'>",
24     "outputs": 1,
25     "x": 271.0000762939453,
26     "y": 59.566673278808594,
27     "z": "4469619c.5c5ce",
28     "wires": [
29       [
30         "65d6d2.3359293"
31       ]
32     ]
33   },
34   {
35     "id": "65d6d2.3359293",
36     "type": "method",
37     "name": "StopApplication_VM_VSCP",
38     "xml": "<method rpc='StopApplication_VM_vSCP' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 483.5000915527344,
42     "y": 59.56667232513428,
43     "z": "4469619c.5c5ce",
44     "wires": [
45       [
46         "a649fe4e.d578c"
47       ]
48     ]
49   },
50   {
51     "id": "a649fe4e.d578c",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic='true'>",
55     "atomic": "true",
56     "comments": "",
57     "outputs": 1,
58     "x": 172,
59     "y": 140,
60     "z": "4469619c.5c5ce",
61     "wires": [
62       [
63         "3befe32a.cda1ac",
64         "38e0f472.ba404c",
65         "bb87dbed.34a348",
66         "593a11f2.81bf1",
67         "d6d1b7f.22dce48"
68       ]
69     ]
70   },
71   {
72     "id": "3befe32a.cda1ac",
73     "type": "switchNode",
74     "name": "Connection details already exist ?",
75     "xml": "<switch test='`length($connection-details) == 0`'>\n\n\n",
76     "comments": "",
77     "outputs": 1,
78     "x": 455,
79     "y": 200,
80     "z": "4469619c.5c5ce",
81     "wires": [
82       [
83         "4e1f878a.293dd8"
84       ]
85     ]
86   },
87   {
88     "id": "4e1f878a.293dd8",
89     "type": "outcomeTrue",
90     "name": "none found",
91     "xml": "<outcome value='true'>\n",
92     "comments": "",
93     "outputs": 1,
94     "x": 704.5,
95     "y": 200,
96     "z": "4469619c.5c5ce",
97     "wires": [
98       [
99         "c48be551.f0b508"
100       ]
101     ]
102   },
103   {
104     "id": "631a6eca.08715",
105     "type": "outcome",
106     "name": "failure",
107     "xml": "<outcome value='failure'>\n",
108     "comments": "",
109     "outputs": 1,
110     "x": 690,
111     "y": 380,
112     "z": "4469619c.5c5ce",
113     "wires": [
114       [
115         "ba6732ad.5b2b7"
116       ]
117     ]
118   },
119   {
120     "id": "90519af5.3cf8f8",
121     "type": "not-found",
122     "name": "not-found",
123     "xml": "<outcome value='not-found'>\n",
124     "comments": "",
125     "outputs": 1,
126     "x": 699,
127     "y": 320,
128     "z": "4469619c.5c5ce",
129     "wires": [
130       [
131         "7bf6eaa2.0c00b4"
132       ]
133     ]
134   },
135   {
136     "id": "c48be551.f0b508",
137     "type": "execute",
138     "name": "Execute retrieve connection",
139     "xml": "<execute plugin='org.onap.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$vnf.type`\" />\n",
140     "comments": "",
141     "outputs": 1,
142     "x": 936.5,
143     "y": 200,
144     "z": "4469619c.5c5ce",
145     "wires": [
146       [
147         "c24e43e3.47358"
148       ]
149     ]
150   },
151   {
152     "id": "c24e43e3.47358",
153     "type": "failure",
154     "name": "failure",
155     "xml": "<outcome value='failure'>\n",
156     "comments": "",
157     "outputs": 1,
158     "x": 1130,
159     "y": 200,
160     "z": "4469619c.5c5ce",
161     "wires": [
162       [
163         "7000ea12.cc2c54"
164       ]
165     ]
166   },
167   {
168     "id": "cba91b7e.1a9828",
169     "type": "execute",
170     "name": "Execute stop node",
171     "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='stopNode'>\n<parameter name=\"node-name\" value=\"`$healthcheck.vm[0].nodeName`\" />\n<parameter name=\"node-status\" value=\"`$healthcheck.vm[0].status`\" />\n<parameter name=\"vm-url\" value=\"`$stop-vm-url`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />",
172     "comments": "",
173     "outputs": 1,
174     "x": 907.5,
175     "y": 440,
176     "z": "4469619c.5c5ce",
177     "wires": [
178       [
179         "3e771072.dff42",
180         "4c818d83.efdfa4"
181       ]
182     ]
183   },
184   {
185     "id": "7000ea12.cc2c54",
186     "type": "block",
187     "name": "block",
188     "xml": "<block>",
189     "atomic": "true",
190     "comments": "",
191     "outputs": 1,
192     "x": 1270,
193     "y": 200,
194     "z": "4469619c.5c5ce",
195     "wires": [
196       [
197         "9ed7e5c6.794218",
198         "625a967b.641258"
199       ]
200     ]
201   },
202   {
203     "id": "9ed7e5c6.794218",
204     "type": "set",
205     "name": "Set event message",
206     "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to retrieve connection details for vnfc : ' + $vnfcType`\"/> ",
207     "comments": "",
208     "x": 1609.5,
209     "y": 200,
210     "z": "4469619c.5c5ce",
211     "wires": []
212   },
213   {
214     "id": "2e18822.6fd057e",
215     "type": "set",
216     "name": "Set event message",
217     "xml": "<set>\n<parameter name='event-message' value=\"`'Stop failed for the node : ' + $healthcheck.vm[0].nodeName`\"/>",
218     "comments": "",
219     "x": 1609.5,
220     "y": 440,
221     "z": "4469619c.5c5ce",
222     "wires": []
223   },
224   {
225     "id": "3e771072.dff42",
226     "type": "other",
227     "name": "other",
228     "xml": "<outcome value='Other'>\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 1130,
232     "y": 440,
233     "z": "4469619c.5c5ce",
234     "wires": [
235       [
236         "87e9f084.dc614"
237       ]
238     ]
239   },
240   {
241     "id": "38e0f472.ba404c",
242     "type": "set",
243     "name": "init",
244     "xml": "<set>\n<parameter name='current-dg-name' value=\"StopApplication_VM_vSCP\"/>\n<parameter name=\"healthcheck.vmCount\" value=\"1\" />\n<parameter name=\"retry-healthcheck\" value=\"false\"/>\n<parameter name=\"exitLoop\" value=\"false\"/>\n<parameter name=\"stopSucceeded\" value=\"false\"/>\n<parameter name=\"healthcheck.vm[0].url\" value=\"`$stop-vm-url`\" />",
245     "comments": "",
246     "outputs": 1,
247     "x": 370,
248     "y": 140,
249     "z": "4469619c.5c5ce",
250     "wires": [
251       []
252     ]
253   },
254   {
255     "id": "bb87dbed.34a348",
256     "type": "execute",
257     "name": "Healthcheck to get Node Name",
258     "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='healthCheckVMs'>\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"retry-healthcheck\" value=\"`$retry-healthcheck`\"/>",
259     "comments": "",
260     "outputs": 1,
261     "x": 447.5,
262     "y": 320,
263     "z": "4469619c.5c5ce",
264     "wires": [
265       [
266         "90519af5.3cf8f8",
267         "631a6eca.08715"
268       ]
269     ]
270   },
271   {
272     "id": "593a11f2.81bf1",
273     "type": "switchNode",
274     "name": "Healthcheck status ?",
275     "xml": "<switch test=\"`$healthcheck.vm[0].status`\">\n",
276     "comments": "",
277     "outputs": 1,
278     "x": 414.5,
279     "y": 440,
280     "z": "4469619c.5c5ce",
281     "wires": [
282       [
283         "4c418f9c.9c0fb",
284         "13d3d83.6ec2928",
285         "1d8db4ea.ee850b"
286       ]
287     ]
288   },
289   {
290     "id": "4c418f9c.9c0fb",
291     "type": "other",
292     "name": "DOWN",
293     "xml": "<outcome value='DOWN'>\n",
294     "comments": "",
295     "outputs": 1,
296     "x": 690.5,
297     "y": 560,
298     "z": "4469619c.5c5ce",
299     "wires": [
300       [
301         "a188ecb2.2c019"
302       ]
303     ]
304   },
305   {
306     "id": "87e9f084.dc614",
307     "type": "block",
308     "name": "block",
309     "xml": "<block>",
310     "atomic": "true",
311     "comments": "",
312     "outputs": 1,
313     "x": 1272,
314     "y": 440,
315     "z": "4469619c.5c5ce",
316     "wires": [
317       [
318         "2e18822.6fd057e",
319         "625a967b.641258"
320       ]
321     ]
322   },
323   {
324     "id": "2572bd6f.e17262",
325     "type": "returnSuccess",
326     "name": "return success",
327     "xml": "<return status='success'>\n",
328     "comments": "",
329     "x": 1295,
330     "y": 500,
331     "z": "4469619c.5c5ce",
332     "wires": []
333   },
334   {
335     "id": "13d3d83.6ec2928",
336     "type": "other",
337     "name": "UP",
338     "xml": "<outcome value='UP'>\n",
339     "comments": "",
340     "outputs": 1,
341     "x": 690,
342     "y": 440,
343     "z": "4469619c.5c5ce",
344     "wires": [
345       [
346         "cba91b7e.1a9828"
347       ]
348     ]
349   },
350   {
351     "id": "4c818d83.efdfa4",
352     "type": "success",
353     "name": "success",
354     "xml": "<outcome value='success'>\n",
355     "comments": "",
356     "outputs": 1,
357     "x": 1134,
358     "y": 500,
359     "z": "4469619c.5c5ce",
360     "wires": [
361       [
362         "2572bd6f.e17262"
363       ]
364     ]
365   },
366   {
367     "id": "d6d1b7f.22dce48",
368     "type": "execute",
369     "name": "Select vnf-host-ip via connection test",
370     "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='selectActiveConnectionDetails'>\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"vnf-host-ip2-address\" value=\"`$vnf-host-ip2-address`\" />\n\n",
371     "comments": "",
372     "outputs": 1,
373     "x": 464.5,
374     "y": 260,
375     "z": "4469619c.5c5ce",
376     "wires": [
377       [
378         "d9e8802e.e0979"
379       ]
380     ]
381   },
382   {
383     "id": "d9e8802e.e0979",
384     "type": "failure",
385     "name": "failure",
386     "xml": "<outcome value='failure'>\n",
387     "comments": "",
388     "outputs": 1,
389     "x": 690,
390     "y": 260,
391     "z": "4469619c.5c5ce",
392     "wires": [
393       [
394         "960cbdd2.f45fa"
395       ]
396     ]
397   },
398   {
399     "id": "960cbdd2.f45fa",
400     "type": "block",
401     "name": "block",
402     "xml": "<block>",
403     "atomic": "true",
404     "comments": "",
405     "outputs": 1,
406     "x": 1270,
407     "y": 260,
408     "z": "4469619c.5c5ce",
409     "wires": [
410       [
411         "93f6e97f.86f498",
412         "625a967b.641258"
413       ]
414     ]
415   },
416   {
417     "id": "93f6e97f.86f498",
418     "type": "set",
419     "name": "Set event message",
420     "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to ssh to vnfc : ' + $vnfcType`\"/> ",
421     "comments": "",
422     "x": 1609.5,
423     "y": 260,
424     "z": "4469619c.5c5ce",
425     "wires": []
426   },
427   {
428     "id": "7bf6eaa2.0c00b4",
429     "type": "block",
430     "name": "block",
431     "xml": "<block>",
432     "atomic": "true",
433     "comments": "",
434     "outputs": 1,
435     "x": 1270,
436     "y": 320,
437     "z": "4469619c.5c5ce",
438     "wires": [
439       [
440         "fbbe6078.75537",
441         "625a967b.641258"
442       ]
443     ]
444   },
445   {
446     "id": "fbbe6078.75537",
447     "type": "set",
448     "name": "Set event message",
449     "xml": "<set>\n<parameter name=\"event-message\" value=\"Health Check not found\"/> ",
450     "comments": "",
451     "x": 1609.5,
452     "y": 320,
453     "z": "4469619c.5c5ce",
454     "wires": []
455   },
456   {
457     "id": "ba6732ad.5b2b7",
458     "type": "block",
459     "name": "block",
460     "xml": "<block>",
461     "atomic": "true",
462     "comments": "",
463     "outputs": 1,
464     "x": 1270,
465     "y": 380,
466     "z": "4469619c.5c5ce",
467     "wires": [
468       [
469         "5d6a8bd9.c4f1a4",
470         "625a967b.641258"
471       ]
472     ]
473   },
474   {
475     "id": "5d6a8bd9.c4f1a4",
476     "type": "set",
477     "name": "Set event message",
478     "xml": "<set>\n<parameter name=\"event-message\" value=\"Health Check failed\"/> ",
479     "comments": "",
480     "x": 1609.5,
481     "y": 380,
482     "z": "4469619c.5c5ce",
483     "wires": []
484   },
485   {
486     "id": "625a967b.641258",
487     "type": "returnFailure",
488     "name": "return failure",
489     "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n<parameter name='output.status.code' value='401'/>\n",
490     "comments": "",
491     "x": 1589,
492     "y": 500,
493     "z": "4469619c.5c5ce",
494     "wires": []
495   },
496   {
497     "id": "a188ecb2.2c019",
498     "type": "block",
499     "name": "block",
500     "xml": "<block>",
501     "atomic": "true",
502     "comments": "",
503     "outputs": 1,
504     "x": 870,
505     "y": 560,
506     "z": "4469619c.5c5ce",
507     "wires": [
508       [
509         "623a9eea.473fc",
510         "6b885833.1ca728"
511       ]
512     ]
513   },
514   {
515     "id": "623a9eea.473fc",
516     "type": "set",
517     "name": "Set success message",
518     "xml": "<set>\n<parameter name='success-message' value=\"`'Node already down: ' + $healthcheck.vm[0].nodeName`\"/>",
519     "comments": "",
520     "x": 1177.5,
521     "y": 560,
522     "z": "4469619c.5c5ce",
523     "wires": []
524   },
525   {
526     "id": "1d8db4ea.ee850b",
527     "type": "other",
528     "name": "UNKNOWN",
529     "xml": "<outcome value='UNKNOWN'>\n",
530     "comments": "",
531     "outputs": 1,
532     "x": 705,
533     "y": 620,
534     "z": "4469619c.5c5ce",
535     "wires": [
536       [
537         "5945a3dd.87e51c"
538       ]
539     ]
540   },
541   {
542     "id": "5945a3dd.87e51c",
543     "type": "block",
544     "name": "block",
545     "xml": "<block>",
546     "atomic": "true",
547     "comments": "",
548     "outputs": 1,
549     "x": 870,
550     "y": 620,
551     "z": "4469619c.5c5ce",
552     "wires": [
553       [
554         "4a02e5a3.cf7dcc",
555         "6b885833.1ca728"
556       ]
557     ]
558   },
559   {
560     "id": "4a02e5a3.cf7dcc",
561     "type": "set",
562     "name": "Set success message",
563     "xml": "<set>\n<parameter name='success-message' value=\"Application Shutdown unnessecary for node in state UNKNOWN.\"/>",
564     "comments": "",
565     "x": 1177.5,
566     "y": 620,
567     "z": "4469619c.5c5ce",
568     "wires": []
569   },
570   {
571     "id": "6b885833.1ca728",
572     "type": "returnSuccess",
573     "name": "return success",
574     "xml": "<return status='success'>\n",
575     "comments": "",
576     "x": 1157,
577     "y": 680,
578     "z": "4469619c.5c5ce",
579     "wires": []
580   }
581 ]