alibazlamit commented on this pull request.
> + logger.trace(">> provisioning complete for server. returned
> id='%s'", serverId);
+
+ } catch (Exception ex) {
+ logger.error(ex, ">> failed to provision server. rollbacking..");
+ destroyVolumes(volumeIds, dataCenterId);
+ throw Throwables.propagate(ex);
+ }
+
+ waitServerUntilAvailable.apply(ServerRef.create(dataCenterId, serverId));
+ waitDcUntilAvailable.apply(dataCenterId);
+
+ //attach bootVolume to Server
+ api.serverApi().attachVolume(Server.Request.attachVolumeBuilder()
+ .dataCenterId(dataCenterId)
+ .serverId(serverId)
+ .volumeId(bootVolume.id())
Sorry the comment below was supposed to be here :)
> It is true that's the case, for some reason doing that cause the live tests
> to fail, more specifically when trying to ssh into the servers and test
> operations, as if the server was not ready yet, i tried using long sleep's
> and checks nothing helped except for this approach, it does the job don't you
> agree?
--
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