Add more detail log for startVirtualRouter

This commit is contained in:
Sheng Yang 2011-08-09 11:16:33 -07:00
parent 980c4b9120
commit 8249c072ee
1 changed files with 4 additions and 1 deletions

View File

@ -962,7 +962,10 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
for (DomainRouterVO rrouter : routerList) {
if (rrouter.getHostId() != null && rrouter.getIsRedundantRouter() && rrouter.getState() == State.Running) {
if (routerToBeAvoid != null) {
throw new ResourceUnavailableException("There are already two redundant routers with IP " + router.getPublicIpAddress(), this.getClass(), 0);
throw new ResourceUnavailableException("There are already two redundant routers with IP " + router.getPublicIpAddress()
+ ", they are " + rrouter.getInstanceName() + "(" + rrouter.getId() + ") and "
+ routerToBeAvoid.getInstanceName() + "(" + routerToBeAvoid.getId() + ")",
this.getClass(), 0);
}
routerToBeAvoid = rrouter;
}