Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.1.0 Alpha
-
None
Description
When running the deploy.sh, which is in the <STRATOS_SOURCE_HOME>/samples/applications/single-group-v2/scripts/mock directory, the application policy does not get added and the single-group-v2 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-v2/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
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_v2/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_v2/deploy/application-policy-2
Attachments
Issue Links
- is a clone of
-
STRATOS-1287 Sample application single-group-v1 can not be deployed
- Resolved