...

In this case the orchestrator went down after the API call succeeded, but before the status was updated, status API will return error, but the instantiation will succeed after the orchestrator comes back up.


POST  --> URL: http://172.16.16.150:30415/v2/projects/gmsproj1/composite-apps/gms-collection-composite-app/v1/deployment-intent-groups/gms-collection-deployment-intent-group/instantiate

...

Connection refused message  

If the API call is made after the EMCO microservice goes down, API call fails with connection refused message ("connect: connection refused"). API call needs to be reissued after the microservice comes backup

...

API call can be reissued once the service comes backup and application instantiation termination should complete


Termination API call completes but status API fails

In this case the orchestrator went down after the API call succeeded, but before the status was updated, status API will return error, but the termination will succeed after the orchestrator comes back up.


POST --> URL: http://172.16.16.150:30415/v2/projects/gmsproj1/composite-apps/gms-collection-composite-app/v1/deployment-intent-groups/gms-collection-deployment-intent-group/terminate
Response Code: 202
API Response code 202. Waiting...
Deployment deletion in progress... Please Wait
pod "emco-services-orchestrator-7d46d6f888-vcbxf" deleted
parse error: Invalid numeric literal at line 1, column 6
Invalid delete status State.
Using config file: emco-cfg.yaml


Logical cloud Instantiation API call completes but status API fails

In this case the dcm went down after the API call succeeded, but before the status was updated, status API will return error, but the instantiation of logical cloud will succeed after the dcm comes back up.


POST --> URL: http://172.16.16.150:30477/v2/projects/gmsproj1/logical-clouds/default/instantiate
Response Code: 202
API Response code 202. Waiting...
Logical Cloud creation in progress... Please Wait
pod "emco-services-dcm-5f746d5db4-hpft7" deleted
parse error: Invalid numeric literal at line 1, column 6
Invalid apply status State.Using config file: emco-cfg.yaml


Logical cloud termination API call completes but status API fails

In this case the dcm went down after the API call succeeded, but before the status was updated, status API will return error, but the termination of logical cloud  will succeed after the dcm comes back up.


POST --> URL: http://172.16.16.150:30477/v2/projects/gmsproj1/logical-clouds/default/terminate
Response Code: 202
API Response code 202. Waiting...
Logical Cloud deletion in progress... Please Wait
pod "emco-services-dcm-5f746d5db4-5scl9" deleted
parse error: Invalid numeric literal at line 1, column 6
Invalid delete status State.


Logical cloud Termination API call in flight

If the termination API call is in flight and the dcm goes down, the API call will get the following error:


Post "http://172.16.16.
Using config file: emco-cfg.yaml150:30477/v2/projects/gmsproj1/logical-clouds/default/terminate": read tcp 172.16.16.1:56344->172.16.16.150:30477: read: connection reset by peer

Apply:  projects/gmsproj1/logical-clouds/default/terminate Error:  Post "http://172.16.16.150:30477/v2/projects/gmsproj1/logical-clouds/default/terminate": read tcp 172.16.16.1:56344->172.16.16.150:30477: read: connection reset by peer

Logical Cloud deletion in progress... Please Wait

parse error: Invalid numeric literal at line 1, column 6

Invalid delete status State.


API call can be reissued once the service comes backup and application termination should complete