Search in sources :

Example 1 with DissociateLunCmdResponse

use of com.cloud.server.api.response.netapp.DissociateLunCmdResponse in project cloudstack by apache.

the class DissociateLunCmd method execute.

@Override
public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException {
    try {
        netappMgr.disassociateLun(guestIQN, path);
        DissociateLunCmdResponse response = new DissociateLunCmdResponse();
        response.setResponseName(getCommandName());
        this.setResponseObject(response);
    } catch (InvalidParameterValueException e) {
        throw new ServerApiException(ApiErrorCode.PARAM_ERROR, e.toString());
    } catch (ServerException e) {
        throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, e.toString());
    }
}
Also used : ServerException(java.rmi.ServerException) ServerApiException(org.apache.cloudstack.api.ServerApiException) InvalidParameterValueException(com.cloud.exception.InvalidParameterValueException) DissociateLunCmdResponse(com.cloud.server.api.response.netapp.DissociateLunCmdResponse)

Aggregations

InvalidParameterValueException (com.cloud.exception.InvalidParameterValueException)1 DissociateLunCmdResponse (com.cloud.server.api.response.netapp.DissociateLunCmdResponse)1 ServerException (java.rmi.ServerException)1 ServerApiException (org.apache.cloudstack.api.ServerApiException)1