fixed a transient status bug in openstack-nova (working on hpcloud)

This commit is contained in:
David Ribeiro Alves 2012-05-10 19:31:50 +01:00
parent fe7d426e2e
commit f71e1d5780
2 changed files with 4 additions and 8 deletions

View File

@ -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;
} }
} }

View File

@ -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;
}
} }