You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Shavindri Dissanayake (JIRA)" <ji...@apache.org> on 2015/07/21 11:07:05 UTC
[jira] [Commented] (STRATOS-1287) Sample application
single-group-v1 can not be deployed
[ https://issues.apache.org/jira/browse/STRATOS-1287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14634813#comment-14634813 ]
Shavindri Dissanayake commented on STRATOS-1287:
------------------------------------------------
This sample has been removed when refining the samples [1]. Please resolve.
[1] mail subject- Refining Application Samples
> Sample application single-group-v1 can not be deployed
> ------------------------------------------------------
>
> Key: STRATOS-1287
> URL: https://issues.apache.org/jira/browse/STRATOS-1287
> Project: Stratos
> Issue Type: Bug
> Components: Stratos Samples
> Affects Versions: 4.1.0 Alpha
> Reporter: Mariangela Hills
>
> When running the deploy.sh, which is in the <STRATOS_SOURCE_HOME>/samples/applications/single-group-v1/scripts/mock directory, the application policy does not get added and the single-group-v1 application does not get deployed.
> The reason for this is that the wrong application policy has been added and the wrong application policy ID has been added when deploying an application in the deploy.sh file.
> This needs to be fixed by updating the following two entries in the <STRATOS_SOURCE_HOME>/samples/applications/single-group-v1/scripts/common/deploy.sh as follows:
> [1] Incorrect
> echo "Adding application policy..."
> curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
> [1] Correct
> sleep 1
> echo "Adding application policy..."
> curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-2.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
> -------------
> [2] Incorrect
> echo "Deploying application..."
> curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/single-group-v1/deploy/application-policy-1
> [2] Correct
> echo "Deploying application..."
> curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/single-group-v1/deploy/application-policy-2
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)