> + return api.serverApi().attachVolume(
> + Server.Request.attachVolumeBuilder()
> + .dataCenterId(dataCenterId)
> + .serverId(serverId)
> + .volumeId(volumeId)
> + .build()
> + );
> + }
> + }));
> +
> + logger.trace(">> volume connected.");
> + } catch (Exception ex) {
> + // delete unconnected volume
> + logger.warn(ex, ">> failed to connect volume '%s'.
> deleting..", volumeId);
> + destroyVolume(volumeId, dataCenterId);
> + }
Shouldn't the entire process be rolled-back if we fail to create a volume?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/292/files/9251ab7434bcafb1dcbec5a718acc3c24517c94d#r73311451