Skip to content

Commit fe76cf8

Browse files
Vijayendra BhamidipatiSheng Yang
authored andcommitted
CS-15241: static NAT is not working when provider is set to Juniper SRX
Description: Checking in fix for the exception seen due to the absence of the AsyncCommandQueued exception in the map of CSExceptionErrorCode which is used to look up the error code corresponding to a cloudstack exception. Also printing the stack trace in case an exception is not found in the map.
1 parent e5db0eb commit fe76cf8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎utils/src/com/cloud/utils/exception/CSExceptionErrorCode.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,15 @@ public class CSExceptionErrorCode {
9292
ExceptionErrorCodeMap.put("com.cloud.exception.ResourceUnavailableException", 4520);
9393
ExceptionErrorCodeMap.put("com.cloud.exception.StorageUnavailableException", 4525);
9494
ExceptionErrorCodeMap.put("com.cloud.exception.UnsupportedServiceException", 4530);
95-
ExceptionErrorCodeMap.put("com.cloud.exception.VirtualMachineMigrationException", 4535);
95+
ExceptionErrorCodeMap.put("com.cloud.exception.VirtualMachineMigrationException", 4535);
96+
ExceptionErrorCodeMap.put("com.cloud.async.AsyncCommandQueued", 4540);
9697

9798
// Have a special error code for ServerApiException when it is
9899
// thrown in a standalone manner when failing to detect any of the above
99100
// standard exceptions.
100101
ExceptionErrorCodeMap.put("com.cloud.api.ServerApiException", 9999);
101102
} catch (Exception e) {
103+
e.printStackTrace();
102104
throw new ExceptionInInitializerError(e);
103105
}
104106
}

0 commit comments

Comments
 (0)