Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-1288

Sample application single-group-v2 can not be deployed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.0 Alpha
    • 4.1.0 RC4
    • Stratos Samples
    • 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

          Activity

            People

              Unassigned Unassigned
              mariangela Mariangela Hills
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: