mirror of https://github.com/apache/jclouds.git
fixed a transient status bug in openstack-nova (working on hpcloud)
This commit is contained in:
parent
fe7d426e2e
commit
f71e1d5780
|
@ -66,13 +66,14 @@ public final class GetImageWhenImageInZoneHasActiveStatusPredicateWithResult imp
|
||||||
resultZoneAndId = input;
|
resultZoneAndId = input;
|
||||||
switch (result.getStatus()) {
|
switch (result.getStatus()) {
|
||||||
case ACTIVE:
|
case ACTIVE:
|
||||||
logger.info("<< Image %s is available for use.", input.getId());
|
logger.info("<< Image %s is available for use. %s", input.getId(), result);
|
||||||
return true;
|
return true;
|
||||||
|
case UNRECOGNIZED:
|
||||||
case SAVING:
|
case SAVING:
|
||||||
logger.debug("<< Image %s is not available yet.", input.getId());
|
logger.debug("<< Image %s is not available yet. %s", input.getId(), result);
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
lastFailure = new IllegalStateException("Image was not created: " + input.getId());
|
lastFailure = new IllegalStateException("Image " + input.getId() + " was not created. " + result);
|
||||||
throw lastFailure;
|
throw lastFailure;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,9 +41,4 @@ public class HPCloudComputeImageExtensionLivetest extends BaseImageExtensionLive
|
||||||
protected Module getSshModule() {
|
protected Module getSshModule() {
|
||||||
return new SshjSshClientModule();
|
return new SshjSshClientModule();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public long getSpawnNodeMaxWait() {
|
|
||||||
return 2400L;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue