Add more debug info

This commit is contained in:
Sheng Yang 2011-08-23 17:59:05 -07:00
parent a5d7d5a02f
commit 4bdd56a63e
1 changed files with 2 additions and 1 deletions

View File

@ -989,7 +989,8 @@ 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()
throw new ResourceUnavailableException("Try to start router " + router.getInstanceName() + "(" + router.getId() + ")"
+ ", but there are already two redundant routers with IP " + router.getPublicIpAddress()
+ ", they are " + rrouter.getInstanceName() + "(" + rrouter.getId() + ") and "
+ routerToBeAvoid.getInstanceName() + "(" + routerToBeAvoid.getId() + ")",
this.getClass(), 0);