nova.getClient().servers() .detachVolume(server.getId(), entry.getValue()) .execute();
if (status.equals(Server.Status.RUNNING) || status.equals(Server.Status.READY)) { try { nova.getClient().servers().detachVolume(server.getId(), volume.getId()).execute(); } catch (OpenStackBaseException ex) { ExceptionMapper.mapException(ex);
try { nova.getClient().servers() .detachVolume(server.getId(), volume.getId()).execute(); } catch (OpenStackBaseException ex) { ExceptionMapper.mapException(ex);
for (Map.Entry<String, String> entry : attachments.entrySet()) { if (entry.getKey().equals(deviceName)) { nova.getClient().servers().detachVolume(server.getId(), entry.getValue()).execute();
public DetachVolume detachVolume(String serverId, String volumeId) { return new DetachVolume(serverId, volumeId); }
public DetachVolume detachVolume(String serverId, String volumeId) { return new DetachVolume(serverId, volumeId); }