Symptoms

It is not possible to provision Cloud Infrastructure VE. Billing order fails with error:

"The last error - "Service Creation Failed: Parallels Operations Automation error #error_code #0, extype_id #1, module_id #Common, Internal error: APSC: [IM] VE already exists.. Service Creation Failed: Parallels Operations Automation error #error_code #0, extype_id #1, module_id #Common, Internal error: APSC: [IM] VE already exists.."."

In Cloud infrastructure Instance Manager in vps.log the following events could be found:

2018-03-06 08:52:01,880 (web_b87f774d-61e4-4b61-a698-e6c1c2d4990c_36112) INFO  CustomLoggingFilter [Grizzly-worker(2)] - 49428 * Server in-bound request
49428 > POST http://192.168.31.125:4465/paci/v1.0/of/1001214/ve
49428 > authorization: <hidden>
49428 > x-paci-request-id: web_b87f774d-61e4-4b61-a698-e6c1c2d4990c_36112
49428 > biz-desc: {"template":"Creating Server","attributes":{"name":"$VENAME"},"error":""}
49428 > initiator: 67493a43-275c-408b-848f-0b342135eda9
49428 > group-id: c70e5210-34b6-463c-be99-33cfe70610ad
49428 > x-callback-url: http://192.168.30.19:4477/5c475128-1c28-4da6-92a1-d39b39b3999c
49428 > accept: application/xml
49428 > content-type: application/xml
49428 > user-agent: Java/1.8.0_112
49428 > host: 192.168.31.125:4465
49428 > connection: keep-alive
49428 > content-length: 540
49428 > 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ve><user-uuid>0453143e-2fd4-4ec8-86c6-b3014836ddb7</user-uuid><customer-id>1001214</customer-id><name>mailway</name><hostname>mailway</hostname><description></description><subscription-id>1036216</subscription-id><cpu number="2" power="2000"/><ram-size>2048</ram-size><bandwidth>100000</bandwidth><no-of-public-ip>1</no-of-public-ip><no-of-public-ipv6>1</no-of-public-ipv6><ve-disk type="local" primary="true" size="125"/><platform><template-info name="Windows-2016"/></platform></ve>

2018-03-06 08:52:01,882 (web_b87f774d-61e4-4b61-a698-e6c1c2d4990c_36112) INFO  ClusterImpl [Grizzly-worker(2)] - CheckIn VeId[1001214.$VENAME] - com.parallels.c2u.im.resources.impl.VeResourceImpl.createVe_(VeResourceImpl.java:343)
2018-03-06 08:52:01,886 (web_b87f774d-61e4-4b61-a698-e6c1c2d4990c_36112) INFO  ClusterImpl [Grizzly-worker(2)] - CheckOut Ve VeId[1001214.$VENAME]
2018-03-06 08:52:01,886 (web_b87f774d-61e4-4b61-a698-e6c1c2d4990c_36112) INFO  CustomLoggingFilter [Grizzly-worker(2)] - 49428 * Server out-bound response
49428 < 409
49428 < Content-Type: text/plain
49428 < x-callback: false
49428 < x-paci-request-id: web_b87f774d-61e4-4b61-a698-e6c1c2d4990c_36112
49428 < 
VE already exists

Cause

Customer ordered second VE with the same hostname "$VENAME" while provisioning of the first subscription was not completed yet.

Resolution

Cancel failed order and create another with different hostname

Internal content