Hi Martin,

On Thu, Jun 25, 2015 at 3:58 PM, Martin Eppel (meppel) <mep...@cisco.com>
wrote:

>  Hi Reka,
>
>
>
> I pulled the latest code today and  tested the following application [1a.,
> 1b.] for removal and, after all the instances were terminated the
> application still shows in the “Created” state  [1c.]  and maintains a
> reference to the cartridge groups, my expectation would be that it had been
> removed completely !
>

This is the expected behaviour. This is the status of the application
definition. I just verified it in the CLI. After the successful
undeployment, it shows as below for me.

Applications found:
+----------------+------------+---------+
| Application ID | Alias      | Status  |
+----------------+------------+---------+
| g-sc-G12-1     | g-sc-G12-1 | Created |
+----------------+------------+---------+

In order to check the runtime, you will have to invoke below command:

stratos> describe-application-runtime g-sc-G12-1
Application not found: g-sc-G12-1
stratos>

However there seems to be a small issue with this message as it says
applicaiton not found instead of application runtime. We will fix this ASAP
in the cli.

If you invoke rest endpoint, you will get the following message:

curl -X GET -H "Content-Type: application/json"  -k -v -u admin:admin
https://127.0.0.1:9443/api/applications/g-sc-G12-1/runtime

{"status":"error","message":"Application runtime not found"}

Please let me know if you still have any issues..

Thanks,
Reka


>
>
> The logs actually state that the application was successfully un-deployed
> !?  Logs are attached as usual, application json, group json are below
>
>
>
> TID: [0] [STRATOS] [2015-06-25 09:48:23,302]  INFO
> {org.apache.stratos.autoscaler.applications.topic.ApplicationBuilder} -
> Application un-deployed successfully: [application-id] sub-G1-G2-G3-1
>
>
>
> Please note that the screenshot was taken after the request to remove the
> application was done.
>
>
>
>
>
> [1a.]
>
>
>
> [1b]
>
>
>
> Cartridge-group:
>
>
>
> {"name": "sub-G1-G2-G3-1", "dependencies": {"terminationBehaviour":
> "terminate-none", "startupOrders": []}, "cartridges": [], "groups":
> [{"name": "multiple-groups-no-startup-G1-1", "dependencies":
> {"terminationBehaviour": "terminate-none", "startupOrders": []},
> "cartridges": ["c1", "c2"], "groups": []}, {"name":
> "multiple-groups-no-startup-G2-1", "dependencies": {"terminationBehaviour":
> "terminate-none", "startupOrders": []}, "cartridges": ["c3", "c4"],
> "groups": []}]}
>
>
>
>
>
> Application:
>
>
>
> {"alias": "sub-G1-G2-G3-1", "applicationId": "sub-G1-G2-G3-1",
> "components": {"cartridges": [], "groups": [{"name": "sub-G1-G2-G3-1",
> "groupMaxInstances": 1, "groupMinInstances": 1, "alias":
> "sub-G1-G2-G3-1-x0x", "cartridges": [], "groups": [{"name":
> "multiple-groups-no-startup-G1-1", "groupMaxInstances": 1,
> "groupMinInstances": 1, "alias": "multiple-groups-no-startup-G1-1-0x0",
> "cartridges": [{"cartridgeMin": 1, "cartridgeMax": 1, "type": "c1",
> "subscribableInfo": {"alias": "c1-1x0", "deploymentPolicy": "static-1",
> "artifactRepository": {"repoUsername": "user", "repoUrl": "
> http://octl.qmog.cisco.com:10080/git/default.git";, "privateRepo": true,
> "repoPassword": "c-policy"}, "autoscalingPolicy": "economyPolicy"}},
> {"cartridgeMin": 1, "cartridgeMax": 1, "type": "c2", "subscribableInfo":
> {"alias": "c2-1x0", "deploymentPolicy": "static-1", "artifactRepository":
> {"repoUsername": "user", "repoUrl": "
> http://octl.qmog.cisco.com:10080/git/default.git";, "privateRepo": true,
> "repoPassword": "c-policy"}, "autoscalingPolicy": "economyPolicy"}}],
> "groups": []}, {"name": "multiple-groups-no-startup-G2-1",
> "groupMaxInstances": 1, "groupMinInstances": 1, "alias":
> "multiple-groups-no-startup-G2-1-0x0", "cartridges": [{"cartridgeMin": 1,
> "cartridgeMax": 1, "type": "c3", "subscribableInfo": {"alias": "c3-1x1",
> "deploymentPolicy": "static-1", "artifactRepository": {"repoUsername":
> "user", "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git";,
> "privateRepo": true, "repoPassword": "c-policy"}, "autoscalingPolicy":
> "economyPolicy"}}, {"cartridgeMin": 1, "cartridgeMax": 1, "type": "c4",
> "subscribableInfo": {"alias": "c4-1x1", "deploymentPolicy": "static-1",
> "artifactRepository": {"repoUsername": "user", "repoUrl": "
> http://octl.qmog.cisco.com:10080/git/default.git";, "privateRepo": true,
> "repoPassword": "c-policy"}, "autoscalingPolicy": "economyPolicy"}}],
> "groups": []}]}]}}
>
>
>
>
>
> [1c.]
>
>
>
> stratos> list-applications
>
> Applications found:
>
> +----------------+----------------+---------+
>
> | Application ID | Alias          | Status  |
>
> +----------------+----------------+---------+
>
> | sub-G1-G2-G3-1 | sub-G1-G2-G3-1 | Created |
>
> +----------------+----------------+---------+
>
> stratos>
>
>
>



-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Reply via email to