Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix to restoring address mappings; enforce match w/ instance state

  • Loading branch information...
commit 53b4ecd94be4267d49e9d4c831a141e5f69e14ce 2 parents 87a92d9 + f4e8a0b
chris grzegorczyk grze authored
2  clc/modules/cluster-manager/src/main/java/com/eucalyptus/address/AbstractSystemAddressManager.java
View
@@ -285,7 +285,7 @@ private static VmInstance maybeFindVm( final String instanceId, final String pub
Logs.extreme( ).error( ex );
}
}
- if ( vm != null && VmState.RUNNING.equals( vm.getState( ) ) ) {
+ if ( vm != null && VmState.RUNNING.equals( vm.getState( ) ) && publicIp.equals( vm.getPublicAddress( ) ) ) {
Logs.extreme( ).debug( "Candidate vm which claims this address: " + vm.getInstanceId( ) + " " + vm.getState( ) + " " + publicIp );
if ( publicIp.equals( vm.getPublicAddress( ) ) ) {
Logs.extreme( ).debug( "Found vm which claims this address: " + vm.getInstanceId( ) + " " + vm.getState( ) + " " + publicIp );
Please sign in to comment.
Something went wrong with that request. Please try again.