You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Sajith Kariyawasam (JIRA)" <ji...@apache.org> on 2015/01/14 09:50:34 UTC

[jira] [Created] (STRATOS-1070) Cartridges outside of groups in complex application structure, is not getting started

Sajith Kariyawasam created STRATOS-1070:
-------------------------------------------

             Summary: Cartridges outside of groups in complex application structure, is not getting started
                 Key: STRATOS-1070
                 URL: https://issues.apache.org/jira/browse/STRATOS-1070
             Project: Stratos
          Issue Type: Bug
            Reporter: Sajith Kariyawasam
            Assignee: Sajith Kariyawasam
             Fix For: 4.1.0 Alpha


Application json
---------------------
{
    "applicationId": "app_boo",
    "alias": "app_boo_r2",
    "components": {
        "groups": [
            {
                "name": "group6",
                "alias": "mygroup6",
                "groupMinInstances": 1,
                "groupMaxInstances": 1,
                "groups": [
                    {
                        "name": "group7",
                        "alias": "mygroup7",
                        "groupMinInstances": 1,
                        "groupMaxInstances": 1,
                        "cartridges": [
                            {
                                "type": "tomcat1",
                                "cartridgeMin": 1,
                                "cartridgeMax": 2,
                                "subscribableInfo": {
                                    "alias": "group7tom",
                                    "autoscalingPolicy": "autoscale_policy_1"
                                }
                            }
                        ]
                    }
                ],
                "cartridges": [
                    {
                        "type": "tomcat2",
                        "cartridgeMin": 1,
                        "cartridgeMax": 2,
                        "subscribableInfo": {
                            "alias": "group6tom",
                            "autoscalingPolicy": "autoscale_policy_1"
                        }
                    }
                ]
            },
            {
                "name": "group8",
                "alias": "mygroup8",
                "groupMinInstances": 1,
                "groupMaxInstances": 1,
                "groups": [
                    {
                        "name": "group9",
                        "alias": "mygroup9",
                        "groupMinInstances": 1,
                        "groupMaxInstances": 1,
                        "cartridges": [
                            {
                                "type": "tomcat1",
                                "cartridgeMin": 1,
                                "cartridgeMax": 2,
                                "subscribableInfo": {
                                    "alias": "group9tom",
                                    "autoscalingPolicy": "autoscale_policy_1"
                                }
                            }
                        ]
                    }
                ],
                "cartridges": [
                    {
                        "type": "tomcat2",
                        "cartridgeMin": 1,
                        "cartridgeMax": 2,
                        "subscribableInfo": {
                            "alias": "group8tom",
                            "autoscalingPolicy": "autoscale_policy_1"
                        }
                    }
                ]
            }
        ],
        "cartridges": [
            {
                "type": "tomcat",
                "cartridgeMin": 1,
                "cartridgeMax": 2,
                "subscribableInfo": {
                    "alias": "mytomcat",
                    "autoscalingPolicy": "autoscale_policy_1"
                }
            }
        ],
        "dependencies": {
            "startupOrders": [
                "group.group8,group.group6,cartridge.tomcat"
            ],
            "terminationBehaviour": "terminate-all"
        }
    }
}

Application clusters are getting created 
==============================
Application Cluster group8tom.tomcat2.domain created in CC topology
Application Cluster group6tom.tomcat2.domain created in CC topology
Application Cluster group9tom.tomcat1.domain created in CC topology
Application Cluster group7tom.tomcat1.domain created in CC topology
Application Cluster mytomcat.tomcat.domain created in CC topology
  
However, there is no instance spawn for cluster mytomcat.tomcat.domain (Seems the cluster monitor has not created)

Also, in the logs I can see the instance spawned up in following order, group6tom, group7tom, group8tom, group9tom, but according to the startup order defined, it should be group9tom, group8tom, group7tom, group6tom, mytomcat, can someone verify this is the order that instances should be spawned?

[2015-01-14 08:55:29,187]  INFO {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Trying to spawn an instance via cloud controller: [cluster] group6tom.tomcat2.domain [partition] P1 [network-partition-id] openstack_R1

[2015-01-14 08:55:29,268]  INFO {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Trying to spawn an instance via cloud controller: [cluster] group7tom.tomcat1.domain [partition] P1 [network-partition-id] openstack_R1

[2015-01-14 08:55:29,318]  INFO {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Trying to spawn an instance via cloud controller: [cluster] group8tom.tomcat2.domain [partition] P1 [network-partition-id] openstack_R1

[2015-01-14 08:55:29,367]  INFO {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Trying to spawn an instance via cloud controller: [cluster] group9tom.tomcat1.domain [partition] P1 [network-partition-id] openstack_R1




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)