Skip to content

Commit b6db18f

Browse files
committed
Slightly improve the error message to make it clean what the problem actually is
1 parent bac2c1e commit b6db18f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
import javax.inject.Inject;
4343
import javax.naming.ConfigurationException;
4444

45+
import org.apache.log4j.Logger;
46+
4547
import org.apache.cloudstack.api.command.admin.router.RebootRouterCmd;
4648
import org.apache.cloudstack.api.command.admin.router.UpgradeRouterCmd;
4749
import org.apache.cloudstack.api.command.admin.router.UpgradeRouterTemplateCmd;
@@ -56,7 +58,6 @@
5658
import org.apache.cloudstack.framework.jobs.impl.AsyncJobVO;
5759
import org.apache.cloudstack.managed.context.ManagedContextRunnable;
5860
import org.apache.cloudstack.utils.identity.ManagementServerNode;
59-
import org.apache.log4j.Logger;
6061

6162
import com.cloud.agent.AgentManager;
6263
import com.cloud.agent.Listener;
@@ -2795,7 +2796,7 @@ private DomainRouterVO start(DomainRouterVO router, final User user, final Accou
27952796

27962797
@Override
27972798
public DomainRouterVO stop(final VirtualRouter router, final boolean forced, final User user, final Account caller) throws ConcurrentOperationException,
2798-
ResourceUnavailableException {
2799+
ResourceUnavailableException {
27992800
s_logger.debug("Stopping router " + router);
28002801
try {
28012802
_itMgr.advanceStop(router.getUuid(), forced);
@@ -3535,7 +3536,8 @@ private void createDhcpEntryCommandsForVMs(final DomainRouterVO router, final Co
35353536

35363537
protected boolean sendCommandsToRouter(final VirtualRouter router, final Commands cmds) throws AgentUnavailableException {
35373538
if(!checkRouterVersion(router)){
3538-
s_logger.debug("Router requires upgrade. Unable to send command to router:" + router.getId());
3539+
s_logger.debug("Router requires upgrade. Unable to send command to router:" + router.getId() + ", router template version : " + router.getTemplateVersion()
3540+
+ ", minimal required version : " + MinVRVersion);
35393541
throw new CloudRuntimeException("Unable to send command. Upgrade in progress. Please contact administrator.");
35403542
}
35413543
Answer[] answers = null;

0 commit comments

Comments
 (0)