Hi,

I am trying to define the application shown below, but am getting this 
exception:

TID: [0] [STRATOS] [2015-03-17 10:09:21,282] ERROR 
{org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver} -  Cartridge group 
not found: [group-name] blade-0x0
java.lang.RuntimeException: Cartridge group not found: [group-name] blade-0x0
        at 
org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.parseGroups(DefaultApplicationParser.java:563)
        at 
org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.buildCompositeAppStructure(DefaultApplicationParser.java:315)
        ...

I'd not heard of a cartridge group, so I Iooked in  
https://docs.google.com/document/d/1AYLAAXySvh24JZw0NQixlKg4yX8jqD3Vtc_Pz-zmHaw,
 only to see a (new?) reference to such an object, with no data. I eventually 
found 
https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Sample+Cartridge+Group+Definition.
 However, ignoring the obvious errors/obsolete items, this seems completely 
redundant w.r.t to the Application definition. So what is this object for? How 
do I get rid of the error?

Thanks, Shaheed

P.S. This is the Application, note that "blade-0x0" is in the outermost group, 
and the output is sorted by key:

{
    "application_template_id": "system",
    "components": {
        "cartridges": [],
        "groups": [
            {
                "alias": "blade-0x0",
                "cartridges": [
                    {
                        "cartridgeMax": 10,
                        "cartridgeMin": 1,
                        "subscribableInfo": {
                            "alias": "cartridge1-1x0",
                            "artifactRepository": {
                                "privateRepo": true,
                                "repoPassword": "c-policy-2",
                                "repoUrl": "http://xxx:10080/git/default.git";,
                                "repoUsername": "user"
                            },
                            "autoscalingPolicy": "economyPolicy",
                            "deploymentPolicy": "static-1"
                        },
                        "type": "cartridge1"
                    },
                    {
                        "cartridgeMax": 10,
                        "cartridgeMin": 1,
                        "subscribableInfo": {
                            "alias": "cartridge2-1x0",
                            "artifactRepository": {
                                "privateRepo": true,
                                "repoPassword": "c-policy-2",
                                "repoUrl": "http://xxx:10080/git/default.git";,
                                "repoUsername": "user"
                            },
                            "autoscalingPolicy": "economyPolicy",
                            "deploymentPolicy": "static-1"
                        },
                        "type": "cartridge2"
                    }
                ],
                "groups": [
                    {
                        "alias": "slice-1x0",
                        "cartridges": [
                            {
                                "cartridgeMax": 10,
                                "cartridgeMin": 1,
                                "subscribableInfo": {
                                    "alias": "cartridge-proxy-2x0",
                                    "artifactRepository": {
                                        "privateRepo": true,
                                        "repoPassword": "c-policy-1a",
                                        "repoUrl": 
"http://xxx:10080/git/default.git";,
                                        "repoUsername": "user"
                                    },
                                    "autoscalingPolicy": "economyPolicy",
                                    "deploymentPolicy": "static-1"
                                },
                                "type": "cartridge-proxy"
                            },
                            {
                                "cartridgeMax": 10,
                                "cartridgeMin": 1,
                                "subscribableInfo": {
                                    "alias": "cisco-sample-vm-2x0",
                                    "artifactRepository": {
                                        "privateRepo": true,
                                        "repoPassword": "c-policy-1b",
                                        "repoUrl": 
"http://xxx:10080/git/default.git";,
                                        "repoUsername": "user"
                                    },
                                    "autoscalingPolicy": "economyPolicy",
                                    "deploymentPolicy": "static-1"
                                },
                                "type": "cisco-sample-vm"
                            }
                        ],
                        "groups": [],
                        "max": 1,
                        "min": 1,
                        "name": "slice-1x0"
                    }
                ],
                "max": 2,
                "min": 1,
                "name": "blade-0x0"
            }
        ]
    }
}


Reply via email to