jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs] CloudSigma2 ComputeService and SecurityGroupExtension (#70)
Date Sun, 21 Sep 2014 15:08:18 GMT
> +               .cpu((int) hardware.getProcessors().get(0).getSpeed())
> +               .memory(BigInteger.valueOf(hardware.getRam()).multiply(BigInteger.valueOf(1024
* 1024)))
> +               .drives(ImmutableList.of(drive.toServerDrive(1, "0:1", options.getDeviceEmulationType())))
> +               .nics(nics)
> +               .meta(metadata)
> +               .tags(tagIds)
> +               .vncPassword(Optional.fromNullable(options.getVncPassword()).or(defaultVncPassword)).build());
> +
> +         api.startServer(serverInfo.getUuid());
> +
> +         return new NodeAndInitialCredentials<ServerInfo>(serverInfo, serverInfo.getUuid(),
LoginCredentials.builder()
> +               .build());
> +      } catch (Exception ex) {
> +         if (serverInfo != null) {
> +            logger.debug(">> rolling back the server...");
> +            api.deleteServer(serverInfo.getUuid());

If this blows up, you will not be able to destroy the cloned drives?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/70/files#r17826024
Mime
View raw message