Udara Liyanage created STRATOS-942: -------------------------------------- Summary: Spinup instances even when application in undeployed Key: STRATOS-942 URL: https://issues.apache.org/jira/browse/STRATOS-942 Project: Stratos Issue Type: Bug Reporter: Udara Liyanage
[2014-11-07 15:49:11,109] INFO {org.apache.stratos.autoscaler.applications.topic.ApplicationBuilder} - Un-deploying the [application] mysql-only-app2by marking it as terminating.. [2014-11-07 15:49:11,110] INFO {org.apache.stratos.autoscaler.applications.topic.ApplicationBuilder} - Applicationmysql-only-app2 updated as terminating [2014-11-07 15:49:11,110] INFO {org.apache.stratos.autoscaler.monitor.application.ApplicationMonitor} - [ApplicationMonitor] mysql-only-app2 state changes from Terminating to Terminating [2014-11-07 15:49:11,110] INFO {org.apache.stratos.autoscaler.event.publisher.ClusterStatusEventPublisher} - Publishing Cluster Terminating event for [application]: null [cluster]: mymysql.mysql.domain [2014-11-07 15:49:11,131] INFO {org.apache.stratos.autoscaler.applications.topic.ApplicationsEventPublisher} - Publishing Application terminated event for [application]: mysql-only-app2 [2014-11-07 15:49:11,181] INFO {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher} - Publishing Cluster terminating event: [appId] null [cluster id] mymysql.mysql.domain [2014-11-07 15:49:11,190] INFO {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver} - [ClusterTerminatingEvent] Received: class org.apache.stratos.messaging.event.topology.ClusterTerminatingEvent [2014-11-07 15:49:11,190] INFO {org.apache.stratos.autoscaler.monitor.cluster.AbstractClusterMonitor} - [Cluster] mymysql.mysql.domain is not notifying the parent, since it is in Terminating State [2014-11-07 15:49:11,191] INFO {org.apache.stratos.autoscaler.monitor.cluster.VMClusterMonitor} - Starting to terminate all members in Network Partition [ ec2 ], Partition [ p1 ] [2014-11-07 15:49:11,191] INFO {org.apache.stratos.autoscaler.monitor.cluster.VMClusterMonitor} - Terminating pending member [member id] mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8 [2014-11-07 15:49:11,192] INFO {org.apache.stratos.autoscaler.client.CloudControllerClient} - Terminating instance via cloud controller: [member] mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8 [2014-11-07 15:49:11,203] INFO {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - Starting to terminate an instance with member id : mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8 in partition id: p1 of cluster id: mymysql.mysql.domain and of cartridge type: mysql [2014-11-07 15:49:52,341] INFO {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - Member is terminated: MemberContext [memberId=mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8, nodeId=ap-southeast-1/i-8bba7ca0, instanceId=null, clusterId=mymysql.mysql.domain, partition=Partition [id=p1, description=null, isPublic=false, provider=ec2, partitionMin=1, partitionMax=3, properties=Properties [properties=[Lorg.apache.stratos.common.Property;@109e24d3]], cartridgeType=mysql, privateIpAddress=10.142.215.15, publicIpAddress=54.254.94.241, allocatedIpAddress=null, initTime=1415355432679, lbClusterId=null, networkPartitionId=ec2, properties=Properties [properties=[Lorg.apache.stratos.common.Property;@7e83a12a]] [2014-11-07 15:49:52,438] INFO {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher} - Publishing member terminated event: [service] mysql [cluster] mymysql.mysql.domain [network-partition] ec2 [partition] p1 [member] mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8 [groupId] null [2014-11-07 15:49:52,454] INFO {org.apache.stratos.manager.topology.receiver.StratosManagerTopologyEventReceiver} - [MemberTerminatedEventListener] Received: class org.apache.stratos.messaging.event.topology.MemberTerminatedEvent [2014-11-07 15:49:52,455] INFO {org.apache.stratos.messaging.message.processor.topology.MemberTerminatedMessageProcessor} - Member terminated: [service] mysql [cluster] mymysql.mysql.domain [member] mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8 [2014-11-07 15:49:52,456] INFO {org.apache.stratos.cep.extension.CEPTopologyEventReceiver} - Member [member id] mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8 was removed from the time stamp map. [2014-11-07 15:49:52,456] WARN {org.apache.stratos.messaging.message.processor.topology.MemberTerminatedMessageProcessor} - Member already terminated: [service] mysql [cluster] mymysql.mysql.domain [member] mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8 [2014-11-07 15:49:52,465] INFO {org.apache.stratos.autoscaler.monitor.cluster.VMClusterMonitor} - Member stat context has been removed successfully: [member] mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8 [2014-11-07 15:49:52,475] WARN {org.apache.stratos.messaging.message.processor.topology.MemberTerminatedMessageProcessor} - Member already terminated: [service] mysql [cluster] mymysql.mysql.domain [member] mymysql.mysql.domain730868e2-3d39-467d-86a5-619ee9746bd8 Exception in thread "Thread-62" java.lang.NullPointerException at org.apache.stratos.autoscaler.status.checker.StatusChecker$2.run(StatusChecker.java:115) at java.lang.Thread.run(Thread.java:662) [2014-11-07 15:50:12,745] INFO {org.apache.stratos.autoscaler.client.CloudControllerClient} - Trying to spawn an instance via cloud controller: [cluster] mymysql.mysql.domain [partition] p1 [lb-cluster] null [network-partition-id] ec2 [2014-11-07 15:50:12,770] INFO {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - Instance is successfully starting up. MemberContext [memberId=mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897, nodeId=null, instanceId=null, clusterId=mymysql.mysql.domain, partition=Partition [id=p1, description=null, isPublic=false, provider=ec2, partitionMin=1, partitionMax=3, properties=Properties [properties=[Lorg.apache.stratos.common.Property;@442535f4]], cartridgeType=mysql, privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null, initTime=1415355612745, lbClusterId=null, networkPartitionId=ec2, properties=Properties [properties=[Lorg.apache.stratos.common.Property;@66f9491f]] [2014-11-07 15:50:32,206] INFO {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - Retrieving Public IP Address : MemberContext [memberId=mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897, nodeId=ap-southeast-1/i-5abd7b71, instanceId=null, clusterId=mymysql.mysql.domain, partition=Partition [id=p1, description=null, isPublic=false, provider=ec2, partitionMin=1, partitionMax=3, properties=Properties [properties=[Lorg.apache.stratos.common.Property;@62f0926b]], cartridgeType=mysql, privateIpAddress=null, publicIpAddress=54.179.111.223, allocatedIpAddress=null, initTime=1415355612745, lbClusterId=null, networkPartitionId=ec2, properties=Properties [properties=[Lorg.apache.stratos.common.Property;@201ce18c]] [2014-11-07 15:50:32,207] INFO {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - Retrieving Private IP Address. MemberContext [memberId=mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897, nodeId=ap-southeast-1/i-5abd7b71, instanceId=null, clusterId=mymysql.mysql.domain, partition=Partition [id=p1, description=null, isPublic=false, provider=ec2, partitionMin=1, partitionMax=3, properties=Properties [properties=[Lorg.apache.stratos.common.Property;@735cfd7c]], cartridgeType=mysql, privateIpAddress=10.142.49.166, publicIpAddress=54.179.111.223, allocatedIpAddress=null, initTime=1415355612745, lbClusterId=null, networkPartitionId=ec2, properties=Properties [properties=[Lorg.apache.stratos.common.Property;@5e06130f]] [2014-11-07 15:50:32,303] INFO {org.apache.stratos.messaging.domain.topology.lifecycle.LifeCycleStateManager} - Life Cycle State Manager started for Topology element [ mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897 ], initial state: Created [2014-11-07 15:50:32,303] WARN {org.apache.stratos.cloud.controller.topology.TopologyBuilder} - Kubernetes service host port not found for member: [member-id] mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897 [2014-11-07 15:50:32,353] INFO {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher} - Publishing instance spawned event: [service] mysql [cluster] mymysql.mysql.domain [network-partition] ec2 [partition] p1 [member]mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897[lb-cluster-id] null [2014-11-07 15:50:32,367] INFO {org.apache.stratos.messaging.domain.topology.lifecycle.LifeCycleStateManager} - Life Cycle State Manager started for Topology element [ mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897 ], initial state: Created [2014-11-07 15:50:32,368] INFO {org.apache.stratos.messaging.message.processor.topology.InstanceSpawnedMessageProcessor} - Member created: [service] mysql [cluster] mymysql.mysql.domain [member] mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897 [2014-11-07 15:50:32,369] WARN {org.apache.stratos.messaging.message.processor.topology.InstanceSpawnedMessageProcessor} - Member already exists: [service] mysql [cluster] mymysql.mysql.domain [member] mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897 [2014-11-07 15:50:32,369] INFO {org.apache.stratos.manager.topology.receiver.StratosManagerTopologyEventReceiver} - [InstanceSpawnedEventListener] Received: class org.apache.stratos.messaging.event.topology.InstanceSpawnedEvent [2014-11-07 15:50:32,370] WARN {org.apache.stratos.messaging.message.processor.topology.InstanceSpawnedMessageProcessor} - Member already exists: [service] mysql [cluster] mymysql.mysql.domain [member] mymysql.mysql.domaina3883ce8-403d-4a2f-8877-fc249b975897 -- This message was sent by Atlassian JIRA (v6.3.4#6332)