aboutsummaryrefslogtreecommitdiffstats
path: root/appc-directed-graph/appc-dgraph
diff options
context:
space:
mode:
authorbeili.zhou <beili.zhou@amdocs.com>2017-09-22 11:12:11 -0400
committerbeili.zhou <beili.zhou@amdocs.com>2017-09-22 13:32:52 -0400
commitffc31862ae72d4d657cd5097e5fe9b3824e7c119 (patch)
treed67cc3b08f4c3f134c8df59796724847b8b06acc /appc-directed-graph/appc-dgraph
parent9647cc9074a6ba71cfad6e1ea4663f7fbdd947fe (diff)
Fix VM_Start(2.0.0) and VM_Stop(2.0.0) DG
VM_Start DG was submitted with Rebuild_VM DG content VM_Stop DG needs an extra block for success path Issue-Id: APPC-217 Change-Id: I69c43576f1e266383b98383879b936b8f4b9c9c4 Signed-off-by: beili.zhou <beili.zhou@amdocs.com>
Diffstat (limited to 'appc-directed-graph/appc-dgraph')
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Start.json538
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json177
2 files changed, 214 insertions, 501 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Start.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Start.json
index 39bc1bc9d..b01e97cf0 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Start.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Start.json
@@ -1,20 +1,20 @@
[
{
- "id": "40b86792.424e28",
+ "id": "4c12a5c8.90ab7c",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 118.88888549804688,
- "y": 77.88888549804688,
- "z": "d53a62cc.c8145",
+ "x": 179,
+ "y": 322,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "bc032b26.e89658"
+ "3f8e186b.788b58"
]
]
},
{
- "id": "bc032b26.e89658",
+ "id": "3f8e186b.788b58",
"type": "service-logic",
"name": "APPC 2.0.0",
"module": "APPC",
@@ -22,540 +22,236 @@
"comments": "",
"xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>",
"outputs": 1,
- "x": 295.88897705078125,
- "y": 77.45555877685547,
- "z": "d53a62cc.c8145",
+ "x": 362.0001220703125,
+ "y": 322.5666809082031,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "cd1bcdc.c4f313"
+ "e2b2f3.05197d1"
]
]
},
{
- "id": "cd1bcdc.c4f313",
+ "id": "e2b2f3.05197d1",
"type": "method",
- "name": "Rebuild_VM",
- "xml": "<method rpc='Rebuild_VM' mode='sync'>\n",
+ "name": "VM_Start",
+ "xml": "<method rpc='VM_Start' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 238.3532485961914,
- "y": 169.27698135375977,
- "z": "d53a62cc.c8145",
+ "x": 311.75006103515625,
+ "y": 406.816650390625,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "b74d1e6.3a22ce"
+ "9c797c4b.fc3f8"
]
]
},
{
- "id": "34f167f4.74fba8",
+ "id": "9c797c4b.fc3f8",
"type": "execute",
- "name": "Rebuild",
- "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$rebuild-vm-url`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$AICIdentity`\" />\n",
+ "name": "Start",
+ "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='startServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$start-vm-url`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$AICIdentity`\" />",
"comments": "",
"outputs": 1,
- "x": 786.5222053527832,
- "y": 474.9246606826782,
- "z": "d53a62cc.c8145",
+ "x": 496,
+ "y": 406,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "c389f8ca.0d8db8",
- "63bb4f30.2be92"
+ "8ec37e81.db48b",
+ "6a2f0d5b.f084e4"
]
]
},
{
- "id": "c389f8ca.0d8db8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 903.6770362854004,
- "y": 734.2462749481201,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "45b189ba.d7c4e8"
- ]
- ]
- },
- {
- "id": "63bb4f30.2be92",
+ "id": "6a2f0d5b.f084e4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 942.6393356323242,
- "y": 441.8532495498657,
- "z": "d53a62cc.c8145",
+ "x": 675.9735107421875,
+ "y": 407.2143859863281,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "96e74630.8df888"
+ "51fd4bef.090064"
]
]
},
{
- "id": "a546e205.8a738",
- "type": "block",
- "name": "block",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "8ec37e81.db48b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1582.3176345825195,
- "y": 724.8893241882324,
- "z": "d53a62cc.c8145",
+ "x": 670.6187744140625,
+ "y": 633.14306640625,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "17c11aa2.c734e5",
- "27d3846c.08be6c",
- "d38bac72.40eca"
+ "8ccb55ea.a7c328"
]
]
},
{
- "id": "17c11aa2.c734e5",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='event-message' value=\"`'Failure while rebuilding the server: ' + $rebuild-vm-url`\"/>\n",
- "comments": "",
- "x": 1843.6394386291504,
- "y": 676.8535795211792,
- "z": "d53a62cc.c8145",
- "wires": []
- },
- {
- "id": "27d3846c.08be6c",
- "type": "record",
- "name": "Log error",
- "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1836.0683631896973,
- "y": 717.043927192688,
- "z": "d53a62cc.c8145",
- "wires": [
- []
- ]
- },
- {
- "id": "de90dda7.71a4e",
- "type": "set",
- "name": "Set Success Message",
- "xml": "<set>\n<parameter name='success-message' value=\"`'Rebuild succeeded for the server : ' + $rebuild-vm-url`\"/>\n\n\n",
- "comments": "",
- "x": 1597.3530807495117,
- "y": 272.99626636505127,
- "z": "d53a62cc.c8145",
- "wires": []
- },
- {
- "id": "ee54bf93.e9baa",
- "type": "record",
- "name": "Log message",
- "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$success-message`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1587.2102661132812,
- "y": 324.5676784515381,
- "z": "d53a62cc.c8145",
- "wires": [
- []
- ]
- },
- {
- "id": "d7feb7b1.3b6cd8",
+ "id": "51fd4bef.090064",
"type": "switchNode",
- "name": "switch:Last Attempt",
- "xml": "<switch test='`$rebuildRetryCount == $retryIndex`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1232.3013343811035,
- "y": 730.460786819458,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "2cc28296.df8a6e",
- "9c67fa27.c3ff98"
- ]
- ]
- },
- {
- "id": "9c67fa27.c3ff98",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "name": "STATUS",
+ "xml": "<switch test='`$START_STATUS`'>\n",
"comments": "",
"outputs": 1,
- "x": 1441.1940994262695,
- "y": 722.7822074890137,
- "z": "d53a62cc.c8145",
+ "x": 823,
+ "y": 407.0000305175781,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "a546e205.8a738"
+ "8e71a1ab.2673b",
+ "9153a9b0.79c868"
]
]
},
{
- "id": "2cc28296.df8a6e",
- "type": "outcomeFalse",
- "name": "false",
- "xml": "<outcome value='false'>\n",
+ "id": "8e71a1ab.2673b",
+ "type": "other",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
"comments": "",
"outputs": 1,
- "x": 1426.5510845184326,
- "y": 835.4961585998535,
- "z": "d53a62cc.c8145",
+ "x": 997.7144775390625,
+ "y": 405.4286193847656,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "b3cb1d2b.62265"
+ "218c4c31.746404"
]
]
},
{
- "id": "87033bf0.a89218",
- "type": "for",
- "name": "Loop",
- "xml": "<for index=\"retryIndex\" start=\"1\" end=\"`$rebuildRetryCount + 1`\" >",
+ "id": "9153a9b0.79c868",
+ "type": "other",
+ "name": "ERROR",
+ "xml": "<outcome value='ERROR'>\n",
"comments": "",
"outputs": 1,
- "x": 295.7502975463867,
- "y": 479.8532304763794,
- "z": "d53a62cc.c8145",
+ "x": 998.28564453125,
+ "y": 474.71435546875,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "8f0dac95.828bd"
+ "d6c921e6.f062f"
]
]
},
{
- "id": "b3cb1d2b.62265",
- "type": "record",
- "name": "Log error",
- "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Rebuild attempt ' + $retryIndex + ' of ' + $rebuildRetryCount + ' failed for server : ' + $rebuild-vm-url + '. Retrying.'`\"/>\n",
+ "id": "91055b26.4540f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>",
"comments": "",
- "outputs": 1,
- "x": 1669.6347026824951,
- "y": 833.7461585998535,
- "z": "d53a62cc.c8145",
- "wires": [
- []
- ]
+ "x": 1355.6666259765625,
+ "y": 452,
+ "z": "3b333f3b.e62d",
+ "wires": []
},
{
- "id": "d38bac72.40eca",
+ "id": "be1d8c86.5510c",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n",
"comments": "",
- "x": 1852.0837440490723,
- "y": 766.282208442688,
- "z": "d53a62cc.c8145",
+ "x": 1364.8734130859375,
+ "y": 680.4286499023438,
+ "z": "3b333f3b.e62d",
"wires": []
},
{
- "id": "8187513d.589d1",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>",
+ "id": "55a5d83c.b56328",
+ "type": "set",
+ "name": "set success code and message",
+ "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n",
"comments": "",
- "x": 1595.4485092163086,
- "y": 449.1390333175659,
- "z": "d53a62cc.c8145",
+ "x": 1404,
+ "y": 408,
+ "z": "3b333f3b.e62d",
"wires": []
},
{
- "id": "96e74630.8df888",
- "type": "switchNode",
- "name": "switch STATUS",
- "xml": "<switch test='`$REBUILD_STATUS`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1103.4325485229492,
- "y": 443.4086961746216,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "ae2b10cb.cec5a",
- "cd52c85b.5249d8",
- "59307536.ee844c"
- ]
- ]
- },
- {
- "id": "ae2b10cb.cec5a",
- "type": "other",
- "name": "ERROR",
- "xml": "<outcome value='ERROR'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1184.9563446044922,
- "y": 529.3134174346924,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "45b189ba.d7c4e8"
- ]
- ]
- },
- {
- "id": "cd52c85b.5249d8",
- "type": "success",
- "name": "SUCCESS",
- "xml": "<outcome value='SUCCESS'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1350.3850173950195,
- "y": 412.3134517669678,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "f91485e2.798dc8"
- ]
- ]
- },
- {
- "id": "45b189ba.d7c4e8",
- "type": "block",
- "name": "block",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1064.6191062927246,
- "y": 731.3493366241455,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "d7feb7b1.3b6cd8"
- ]
- ]
- },
- {
- "id": "59307536.ee844c",
- "type": "other",
- "name": "CONTEXT_NOT_FOUND",
- "xml": "<outcome value='CONTEXT_NOT_FOUND'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1413.8692588806152,
- "y": 507.0785312652588,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "9a2a7a92.885b08"
- ]
- ]
- },
- {
- "id": "b74d1e6.3a22ce",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 297.7976417541504,
- "y": 386.36428356170654,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "8c5bde88.c0aee",
- "87033bf0.a89218",
- "2d98dcb5.d16b44"
- ]
- ]
- },
- {
- "id": "8c5bde88.c0aee",
- "type": "switchNode",
- "name": "switch : rebuildRetryCount >= 0",
- "xml": "<switch test='`$rebuildRetryCount >= 0`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 567.797679901123,
- "y": 317.7928533554077,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "2451c726.0ffbe8",
- "6a4082a3.a5778c"
- ]
- ]
- },
- {
- "id": "2451c726.0ffbe8",
- "type": "outcomeFalse",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 784.9404716491699,
- "y": 276.3643217086792,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "23f87454.807cfc"
- ]
- ]
- },
- {
- "id": "6a4082a3.a5778c",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 792.0833587646484,
- "y": 353.5072250366211,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "39be1fd1.165f6"
- ]
- ]
- },
- {
- "id": "39be1fd1.165f6",
+ "id": "11e66810.229818",
"type": "set",
- "name": "increment rebuildRetryCount",
- "xml": "<set>\n<parameter name=\"rebuildRetryCount\" value=\"`$rebuildRetryCount + 1`\" />\n",
+ "name": "set error code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Start VM failed' />\n",
"comments": "",
- "x": 974.9404563903809,
- "y": 352.0786123275757,
- "z": "d53a62cc.c8145",
+ "x": 1117,
+ "y": 602,
+ "z": "3b333f3b.e62d",
"wires": []
},
{
- "id": "23f87454.807cfc",
+ "id": "18420693.2d9f89",
"type": "set",
- "name": "set rebuildRetryCount",
- "xml": "<set>\n<parameter name='rebuildRetryCount' value='1' />\n",
+ "name": "set error code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Start VM status is error' />\n",
"comments": "",
- "x": 956.3690452575684,
- "y": 274.93574237823486,
- "z": "d53a62cc.c8145",
+ "x": 1398,
+ "y": 507,
+ "z": "3b333f3b.e62d",
"wires": []
},
{
- "id": "f91485e2.798dc8",
+ "id": "218c4c31.746404",
"type": "block",
- "name": "block",
+ "name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1372.6388702392578,
- "y": 319.85316371917725,
- "z": "d53a62cc.c8145",
+ "x": 1161,
+ "y": 407,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "de90dda7.71a4e",
- "ee54bf93.e9baa",
- "8187513d.589d1",
- "8fdfd6a.1692b28"
+ "55a5d83c.b56328",
+ "91055b26.4540f8"
]
]
},
{
- "id": "2d98dcb5.d16b44",
- "type": "set",
- "name": "initialize exitLoop",
- "xml": "<set>\n<parameter name='exitLoop' value='false' />\n",
- "comments": "",
- "x": 532.6389007568359,
- "y": 209.85318422317505,
- "z": "d53a62cc.c8145",
- "wires": []
- },
- {
- "id": "8fdfd6a.1692b28",
- "type": "set",
- "name": "set exitLoop",
- "xml": "<set>\n<parameter name='exitLoop' value='true' />\n",
- "comments": "",
- "x": 1602.6389770507812,
- "y": 384.1389150619507,
- "z": "d53a62cc.c8145",
- "wires": []
- },
- {
- "id": "8f0dac95.828bd",
- "type": "switchNode",
- "name": "switch exitLoop",
- "xml": "<switch test='`$exitLoop`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 462.63885498046875,
- "y": 478.4245901107788,
- "z": "d53a62cc.c8145",
- "wires": [
- [
- "82ddebcb.4c72e8",
- "e243de19.25b81"
- ]
- ]
- },
- {
- "id": "82ddebcb.4c72e8",
- "type": "outcomeFalse",
- "name": "false",
- "xml": "<outcome value='false'>\n",
+ "id": "d6c921e6.f062f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 631.2102127075195,
- "y": 479.853196144104,
- "z": "d53a62cc.c8145",
+ "x": 1154,
+ "y": 475,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "34f167f4.74fba8"
+ "18420693.2d9f89",
+ "be1d8c86.5510c"
]
]
},
{
- "id": "e243de19.25b81",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 628.3532104492188,
- "y": 545.5675039291382,
- "z": "d53a62cc.c8145",
- "wires": [
- []
- ]
- },
- {
- "id": "9a2a7a92.885b08",
+ "id": "8ccb55ea.a7c328",
"type": "block",
- "name": "block",
+ "name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1578.263916015625,
- "y": 657.8888959884644,
- "z": "d53a62cc.c8145",
+ "x": 873,
+ "y": 639,
+ "z": "3b333f3b.e62d",
"wires": [
[
- "63a3f95c.1a3338",
- "27d3846c.08be6c",
- "d38bac72.40eca"
+ "11e66810.229818",
+ "be1d8c86.5510c"
]
]
- },
- {
- "id": "63a3f95c.1a3338",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='event-message' value=\"`'Failure while rebuilding the server: ' + $rebuild-vm-url + ' due to Invalid AICIdentity or tenant or credentials. Skipping all other VMs'`\"/>\n",
- "comments": "",
- "x": 1837.0139465332031,
- "y": 611.6389179229736,
- "z": "d53a62cc.c8145",
- "wires": []
}
] \ No newline at end of file
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json
index d6064ff76..8dfc0321d 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json
@@ -1,20 +1,20 @@
[
{
- "id": "e9d1e072.fd636",
+ "id": "a36507bd.9411a8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 126,
- "y": 56.433326721191406,
- "z": "eee34efd.4b429",
+ "x": 129,
+ "y": 66,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "ec678412.e91ef8"
+ "c156b4fa.66d0a8"
]
]
},
{
- "id": "ec678412.e91ef8",
+ "id": "c156b4fa.66d0a8",
"type": "service-logic",
"name": "APPC 2.0.0",
"module": "APPC",
@@ -22,219 +22,236 @@
"comments": "",
"xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>",
"outputs": 1,
- "x": 303.0000915527344,
- "y": 56,
- "z": "eee34efd.4b429",
+ "x": 306.0000915527344,
+ "y": 65.5666732788086,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "54252adb.ab6fb4"
+ "6c3d7cf.b631784"
]
]
},
{
- "id": "54252adb.ab6fb4",
+ "id": "6c3d7cf.b631784",
"type": "method",
"name": "VM_Stop",
"xml": "<method rpc='VM_Stop' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 245.46435165405273,
- "y": 147.8214054107666,
- "z": "eee34efd.4b429",
+ "x": 248.46435165405273,
+ "y": 157.3880786895752,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "5e15afe4.93d5a"
+ "8896d091.49bc2"
]
]
},
{
- "id": "5e15afe4.93d5a",
+ "id": "8896d091.49bc2",
"type": "execute",
"name": "Stop",
"xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$stop-vm-url`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$AICIdentity`\" />\n",
"comments": "",
"outputs": 1,
- "x": 406,
- "y": 148.93333435058594,
- "z": "eee34efd.4b429",
+ "x": 409,
+ "y": 158.50000762939453,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "df0061bb.45c2f",
- "c924b983.5b11f8"
+ "985b942b.ec64e8",
+ "34939973.cf1fd6"
]
]
},
{
- "id": "c924b983.5b11f8",
+ "id": "34939973.cf1fd6",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 579.1170654296875,
- "y": 149.8619384765625,
- "z": "eee34efd.4b429",
+ "x": 582.1170654296875,
+ "y": 159.4286117553711,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "837fbfb0.87776"
+ "f35d3b53.86e768"
]
]
},
{
- "id": "837fbfb0.87776",
+ "id": "f35d3b53.86e768",
"type": "switchNode",
"name": "switch STATUS",
"xml": "<switch test='`$STOP_STATUS`'>\n",
"comments": "",
"outputs": 1,
- "x": 761.9102783203125,
- "y": 149.41738891601562,
- "z": "eee34efd.4b429",
+ "x": 764.9102783203125,
+ "y": 158.98406219482422,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "635b02f3.e20a7c",
- "7a07bcbd.8869d4"
+ "885dbd51.87507",
+ "10f2aa34.ea80d6"
]
]
},
{
- "id": "df0061bb.45c2f",
+ "id": "985b942b.ec64e8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 586.9047241210938,
- "y": 332.50494384765625,
- "z": "eee34efd.4b429",
+ "x": 589.9047241210938,
+ "y": 342.07161712646484,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "ab61e967.60ab08"
+ "28dfcdd7.ba3e32"
]
]
},
{
- "id": "ccbdc0a1.c9b6b",
+ "id": "9d1c57f6.77ce08",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n",
"comments": "",
- "x": 1312,
- "y": 399.183349609375,
- "z": "eee34efd.4b429",
+ "x": 1315,
+ "y": 408.7500228881836,
+ "z": "602aa70d.a192e8",
"wires": []
},
{
- "id": "635b02f3.e20a7c",
+ "id": "885dbd51.87507",
"type": "success",
"name": "SUCCESS",
"xml": "<outcome value='SUCCESS'>\n",
"comments": "",
"outputs": 1,
- "x": 955.5,
- "y": 123.9333267211914,
- "z": "eee34efd.4b429",
+ "x": 958.5,
+ "y": 133.5,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "91f7e1f.503b22",
- "dfaa331c.bcb22"
+ "8b1c6f1d.bf4c"
]
]
},
{
- "id": "7a07bcbd.8869d4",
+ "id": "10f2aa34.ea80d6",
"type": "other",
"name": "ERROR",
"xml": "<outcome value='ERROR'>\n",
"comments": "",
"outputs": 1,
- "x": 951.5713500976562,
- "y": 198.43336486816406,
- "z": "eee34efd.4b429",
+ "x": 947.5713500976562,
+ "y": 205.0000457763672,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "bdc692af.6a12d"
+ "149167fb.227158"
]
]
},
{
- "id": "91f7e1f.503b22",
+ "id": "ec5b4ab9.b62488",
"type": "set",
"name": "set success code and message",
"xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n",
"comments": "",
- "x": 1191,
- "y": 124,
- "z": "eee34efd.4b429",
+ "x": 1361,
+ "y": 109.5666732788086,
+ "z": "602aa70d.a192e8",
"wires": []
},
{
- "id": "dfaa331c.bcb22",
+ "id": "fdfee58d.d86908",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n",
"comments": "",
- "x": 1144,
- "y": 173,
- "z": "eee34efd.4b429",
+ "x": 1316,
+ "y": 173.56666564941406,
+ "z": "602aa70d.a192e8",
"wires": []
},
{
- "id": "bdc692af.6a12d",
+ "id": "149167fb.227158",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1107,
- "y": 231,
- "z": "eee34efd.4b429",
+ "x": 1119,
+ "y": 214.56666564941406,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "fba86d29.7638a",
- "ccbdc0a1.c9b6b"
+ "32f7f639.b0517a",
+ "9d1c57f6.77ce08"
]
]
},
{
- "id": "ab61e967.60ab08",
+ "id": "28dfcdd7.ba3e32",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 762,
- "y": 332,
- "z": "eee34efd.4b429",
+ "x": 765,
+ "y": 341.5666732788086,
+ "z": "602aa70d.a192e8",
"wires": [
[
- "37674e3c.40ea42",
- "ccbdc0a1.c9b6b"
+ "dcf150a2.8fa62",
+ "9d1c57f6.77ce08"
]
]
},
{
- "id": "fba86d29.7638a",
+ "id": "32f7f639.b0517a",
"type": "set",
"name": "set error code and message",
"xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM status is error' />\n",
"comments": "",
- "x": 1342,
- "y": 232,
- "z": "eee34efd.4b429",
+ "x": 1345,
+ "y": 241.5666732788086,
+ "z": "602aa70d.a192e8",
"wires": []
},
{
- "id": "37674e3c.40ea42",
+ "id": "dcf150a2.8fa62",
"type": "set",
"name": "set error code and message",
"xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM failed' />\n",
"comments": "",
- "x": 1053,
- "y": 300,
- "z": "eee34efd.4b429",
+ "x": 1056,
+ "y": 309.5666732788086,
+ "z": "602aa70d.a192e8",
"wires": []
+ },
+ {
+ "id": "8b1c6f1d.bf4c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1120,
+ "y": 142,
+ "z": "602aa70d.a192e8",
+ "wires": [
+ [
+ "ec5b4ab9.b62488",
+ "fdfee58d.d86908"
+ ]
+ ]
}
] \ No newline at end of file