[ https://issues.apache.org/jira/browse/CLOUDSTACK-6239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajesh Battala updated CLOUDSTACK-6239: --------------------------------------- Assignee: Amogh Vasekar (was: Rajesh Battala) > [Automation] jasypt decryption error is thrown after restarting console proxy > VM > -------------------------------------------------------------------------------- > > Key: CLOUDSTACK-6239 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6239 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.4.0 > Reporter: Srikanteswararao Talluri > Assignee: Amogh Vasekar > Priority: Blocker > Fix For: 4.4.0 > > Attachments: log.zip > > > STEPS TO REPRODUCE: > ==================== > 1. create a zone and let SSVM and CPVM come up. > 2. restart CPVM. > i am hitting the following error while CPVM is being restarted. > 2014-03-14 05:48:55,917 DEBUG [cloud.resource.ResourceState] > (AgentConnectTaskPool-11423:ctx-abee3e50) Resource state update: [id = 8; > name = v-6-VM; old state = Creating; event = InternalCreated; new state = > Enabled] > 2014-03-14 05:48:55,917 DEBUG [cloud.host.Status] > (AgentConnectTaskPool-11423:ctx-abee3e50) Transition:[Resource state = > Enabled, Agent event = AgentConnected, Host id = 8, name = v-6-VM] > 2014-03-14 05:48:55,922 DEBUG [cloud.host.Status] > (AgentConnectTaskPool-11423:ctx-abee3e50) Agent status update: [id = 8; name > = v-6-VM; old status = Creating; event = AgentConnected; new status = > Connecting; old update count = 0; new update count = 1] > 2014-03-14 05:48:55,922 DEBUG [agent.manager.ClusteredAgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) create ClusteredAgentAttache for 8 > 2014-03-14 05:48:55,923 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > XcpServerDiscoverer > 2014-03-14 05:48:55,923 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > HypervServerDiscoverer > 2014-03-14 05:48:55,923 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > DeploymentPlanningManagerImpl > 2014-03-14 05:48:55,923 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > ClusteredVirtualMachineManagerImpl > 2014-03-14 05:48:55,924 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > NetworkOrchestrator > 2014-03-14 05:48:55,924 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > StoragePoolMonitor > 2014-03-14 05:48:55,924 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > SecurityGroupListener > 2014-03-14 05:48:55,924 INFO [network.security.SecurityGroupListener] > (AgentConnectTaskPool-11423:ctx-abee3e50) Received a host startup notification > 2014-03-14 05:48:55,924 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > SecondaryStorageListener > 2014-03-14 05:48:55,924 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > UploadListener > 2014-03-14 05:48:55,924 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > BehindOnPingListener > 2014-03-14 05:48:55,924 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > DirectNetworkStatsListener > 2014-03-14 05:48:55,924 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Sending Connect to listener: > ConsoleProxyListener > 2014-03-14 05:48:55,928 DEBUG [utils.crypt.DBEncryptionUtil] > (AgentConnectTaskPool-11423:ctx-abee3e50) Error while decrypting: > A1i0Flrc5LPgCsx3V7cOVQ > 2014-03-14 05:48:55,929 ERROR [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Monitor ConsoleProxyListener says > there is an error in the connect process for 8 due to null > org.jasypt.exceptions.EncryptionOperationNotPossibleException > at > org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:981) > at > org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725) > at > com.cloud.utils.crypt.DBEncryptionUtil.decrypt(DBEncryptionUtil.java:63) > at > org.apache.cloudstack.framework.config.impl.ConfigurationVO.getValue(ConfigurationVO.java:125) > at > org.apache.cloudstack.framework.config.ConfigKey.value(ConfigKey.java:136) > at > org.apache.cloudstack.framework.security.keys.KeysManagerImpl.getEncryptionKey(KeysManagerImpl.java:72) > at > com.cloud.consoleproxy.AgentHookBase.getEncryptorPassword(AgentHookBase.java:232) > at > com.cloud.consoleproxy.AgentHookBase.startAgentHttpHandlerInVM(AgentHookBase.java:198) > at > com.cloud.consoleproxy.ConsoleProxyListener.processConnect(ConsoleProxyListener.java:71) > at > com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:498) > at > com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:1005) > at > com.cloud.agent.manager.AgentManagerImpl.access$000(AgentManagerImpl.java:117) > at > com.cloud.agent.manager.AgentManagerImpl$HandleAgentConnectTask.runInContext(AgentManagerImpl.java:1089) > at > org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49) > at > org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56) > at > org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) > at > org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) > at > org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > 2014-03-14 05:48:55,929 INFO [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Host 8 is disconnecting with event > AgentDisconnected > 2014-03-14 05:48:55,931 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) The next status of agent 8is Alert, > current status is Connecting > 2014-03-14 05:48:55,931 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Deregistering link for 8 with state > Alert > 2014-03-14 05:48:55,931 DEBUG [agent.manager.AgentManagerImpl] > (AgentConnectTaskPool-11423:ctx-abee3e50) Remove Agent : 8 -- This message was sent by Atlassian JIRA (v6.2#6252)