GoogleCloudPlatform / application-integration-management-toolkit

This tool lets you interact with Application Integration, Integration Connectors or Apigee Integration/Connector APIs. The tool lets you manage (create, del, get, list) integrations, connections etc.
Apache License 2.0
22 stars 16 forks source link

Integration creation failing with an error "Integration cannot be run/published with connector task associated with different project. #147

Closed kondurure closed 8 months ago

kondurure commented 1 year ago

Integration creation failing with an error "Integration cannot be run/published with connector task associated with different project.

{ "error": { "code": 400, "message": "Integration cannot be run/published with connector task associated with different project. Expected connector from project g-qa-1-s5-herbalife1-proj", "status": "INVALID_ARGUMENT" } }

Error: Bad Request - malformed request syntax: { "error": { "code": 400, "message": "Integration cannot be run/published with connector task associated with different project. Expected connector from project g-qa-1-s5-herbalife1-proj", "status": "INVALID_ARGUMENT" } }

INTEGRATIONCLI_VERSION=v0.70 Script:

      export INTEGRATIONCLI_VERSION=v0.70
      curl -L https://raw.githubusercontent.com/GoogleCloudPlatform/application-integration-management-toolkit/main/downloadLatest.sh | sh -
      /home/runner/.integrationcli/bin/integrationcli -v
      /home/runner/.integrationcli/bin/integrationcli token cache -t $token > /tmp/logs.txt
      /home/runner/.integrationcli/bin/integrationcli prefs set --proj=${{ inputs.organization }} 
      if [ "${{ inputs.region }}" == "europe-west1" ]; then
        echo "Integration deploy in ${{ inputs.region }}"
        /home/runner/.integrationcli/bin/integrationcli integrations create -n ${{ inputs.integration_name }} -f ${{ github.workspace }}/src/${{ inputs.integration_name }}.json -u $SHORT_SHA -o ${{ github.workspace }}/overrides/${{ inputs.deploy_environment }}/overrides-weu.json -r ${{ inputs.region }} > /tmp/response
      else
        echo "Integration deploy in ${{ inputs.region }}"
        /home/runner/.integrationcli/bin/integrationcli integrations create -n ${{ inputs.integration_name }} -f ${{ github.workspace }}/src/${{ inputs.integration_name }}.json -u $SHORT_SHA -o ${{ github.workspace }}/overrides/${{ inputs.deploy_environment }}/overrides.json -r ${{ inputs.region }} -v > /tmp/response
      fi 
      echo "integration creation"
      echo "integration response: " $(cat /tmp/response)
      basename $(cat /tmp/response | jq -r .name) > /tmp/version
      echo "integration version: " $(cat /tmp/version)

      /home/runner/.integrationcli/bin/integrationcli integrations versions publish -n ${{ inputs.integration_name }} -v $(cat /tmp/version)
ssvaidyanathan commented 9 months ago

@kondurure - can this be closed?

ssvaidyanathan commented 8 months ago

Closing this as there are no activity