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

Error when deploying an application on Google Compute Engine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.1.2
    • None
    • None

    Description

      When deploying an application on GCE IaaS the following error is thrown.

      [2015-08-19 23:07:20,412] ERROR

      {org.apache.stratos.cloud.controller.iaases.JcloudsIaas}

      - Failed to start an instance. MemberContext [applicationId=39578a3c-dd8e-2d0b-99ae-a928c97749ab, cartridgeType=php, clusterId=39578a3c-dd8e-2d0b-99ae-a928c97749ab.alias2.php.domain, memberId=39578a3c-dd8e-2d0b-99ae-a928c97749ab.alias2.php.domain1df0c8d0-f1cc-463c-8493-5034a16b5347, instanceId=null, partition=Partition [id=partition-1, description=null, isPublic=false, provider=gce, properties=Properties [properties=[Property [name=region, value=asia-east1]]]], defaultPrivateIP=null, defaultPublicIP=null, allocatedIPs=null, publicIPs=null, privateIPs=null, initTime=1440005827341, lbClusterId=null, networkPartitionId=network-partition-1, kubernetesPodId=null, kubernetesPodLabel=null, loadBalancingIPType=Private, instanceMetadata=null, properties=Properties [properties=[Property [name=MIN_COUNT, value=1]]]] Cause: command: POST https://www.googleapis.com/compute/v1/projects/xz-fluent-cable-w/global/firewalls HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [{
      "error": {
      "errors": [

      { "domain": "global", "reason": "invalid", "message": "Invalid value for field 'resource.allowed': ''. Must specify at least one allowed rule." }

      ],
      "code": 400,
      "message": "Invalid value for field 'resource.allowed': ''. Must specify at least one allowed rule."
      }
      }
      ]
      org.jclouds.http.HttpResponseException: command: POST https://www.googleapis.com/compute/v1/projects/xz-fluent-cable-w/global/firewalls HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [{
      "error": {
      "errors": [

      { "domain": "global", "reason": "invalid", "message": "Invalid value for field 'resource.allowed': ''. Must specify at least one allowed rule." }

      ],
      "code": 400,
      "message": "Invalid value for field 'resource.allowed': ''. Must specify at least one allowed rule."
      }
      }
      ]
      at org.jclouds.googlecomputeengine.handlers.GoogleComputeEngineErrorHandler.handleError(GoogleComputeEngineErrorHandler.java:37)
      at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:65)
      at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:136)
      at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:105)
      at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90)
      at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73)
      at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44)
      at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
      at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)
      at com.sun.proxy.$Proxy145.createInNetwork(Unknown Source)
      at org.jclouds.googlecomputeengine.compute.strategy.CreateNodesWithGroupEncodedIntoNameThenAddToSet.getOrCreateFirewalls(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:169)
      at org.jclouds.googlecomputeengine.compute.strategy.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:113)
      at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:210)
      at org.apache.stratos.cloud.controller.iaases.JcloudsIaas.startInstance(JcloudsIaas.java:133)
      at org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
      at org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      [2015-08-19 23:07:20,416] ERROR

      {org.apache.stratos.cloud.controller.services.impl.InstanceCreator}

      - Could not start instance: [cartridge-type] php [cluster-id] 39578a3c-dd8e-2d0b-99ae-a928c97749ab.alias2.php.domain

      This occurred after the jclouds 1.9.1 upgrade. Need to investigate the root cause.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ravihansa Akila Perera
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: