OK Isuru. I'll use it. Thanks.
On Mon, Aug 17, 2015 at 11:52 PM, Isuru Haththotuwa <isu...@apache.org> wrote: > Hi Asanka, > > You are getting these issue due to the ongoing Jclouds upgrade. Akila is > still working on that AFAIK. Please use the branch that was created for > GSoC PRs (out of 4.1.1) for the moment. > > On Mon, Aug 17, 2015 at 11:13 AM, Asanka Sanjaya Herath < > angal...@gmail.com> wrote: > >> Hi, >> >> Now I'm getting another exception when stratos is attempting to start >> instance. >> >> TID: [0] [STRATOS] [2015-08-17 18:02:54,740] ERROR >> {org.apache.stratos.cloud.controller.iaases.JcloudsIaas} - Failed to start >> an instance. MemberContext [applicationId=single-cartridge-app, >> cartridgeType=php, clusterId=single-cartridge-app.my-php.php.domain, >> memberId=single-cartridge-app.my-php.php.domaindb12e220-d6ab-40ad-aa64-b421ee6fc13c, >> instanceId=null, partition=Partition [id=partition-1, description=null, >> isPublic=false, provider=gce, properties=Properties [properties=[Property >> [name=region, value=us-central1]]]], defaultPrivateIP=null, >> defaultPublicIP=null, allocatedIPs=null, publicIPs=null, privateIPs=null, >> initTime=1439834567943, lbClusterId=null, >> networkPartitionId=network-partition-1, kubernetesPodId=null, >> kubernetesPodLabel=null, loadBalancingIPType=Private, >> instanceMetadata=null, properties=Properties [properties=[Property >> [name=MIN_COUNT, value=2]]]] Cause: command: POST >> https://www.googleapis.com/compute/v1/projects/gsoc-1037/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/gsoc-1037/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.$Proxy133.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) >> TID: [0] [STRATOS] [2015-08-17 18:02:54,742] ERROR >> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} - >> Could not start instance: [cartridge-type] php [cluster-id] >> single-cartridge-app.my-php.php.domain >> >> >> On Mon, Aug 17, 2015 at 11:35 PM, Asanka Sanjaya Herath < >> angal...@gmail.com> wrote: >> >>> Hi Akila, >>> >>> That worked. Thanks for the help. >>> >>> On Mon, Aug 17, 2015 at 11:11 PM, Akila Ravihansa Perera < >>> raviha...@wso2.com> wrote: >>> >>>> Hi Asanka, >>>> >>>> You need to use the full or partial URI to image resource. For eg: >>>> "imageId": " >>>> https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-1404-trusty-v20150128 >>>> " >>>> >>>> On Mon, Aug 17, 2015 at 11:05 PM, Asanka Sanjaya Herath < >>>> angal...@gmail.com> wrote: >>>> >>>>> Hi Isuru, >>>>> >>>>> Yes the image exists. I tried by changing the image too. Still getting >>>>> the same error. >>>>> >>>>> On Mon, Aug 17, 2015 at 11:04 PM, Isuru Haththotuwa <isu...@apache.org >>>>> > wrote: >>>>> >>>>>> Hi Asanka, >>>>>> >>>>>> Can you check in the GCE side if this image exists? >>>>>> >>>>>> On Mon, Aug 17, 2015 at 10:30 AM, Asanka Sanjaya Herath < >>>>>> angal...@gmail.com> wrote: >>>>>> >>>>>>> Hi, >>>>>>> I'm using latest Stratos master branch code. I'm getting following >>>>>>> exception which I did not get earlier when I try to deploy an >>>>>>> application >>>>>>> in GCE. I changed the image ID and tried, but still getting the same >>>>>>> error >>>>>>> saying Jclouds could not find the Image in GCE. >>>>>>> >>>>>>> TID: [0] [STRATOS] [2015-08-17 17:08:13,308] INFO >>>>>>> {org.apache.stratos.cloud.controller.iaases.gce.GCEIaas} - zone has >>>>>>> been >>>>>>> set as us-central1-f with id: us-central1-f >>>>>>> TID: [0] [STRATOS] [2015-08-17 17:08:15,297] INFO {jclouds.compute} >>>>>>> - Image centos-6-v20150710 not found in the image cache. Trying to get >>>>>>> it >>>>>>> from the provider... >>>>>>> TID: [0] [STRATOS] [2015-08-17 17:08:15,305] ERROR >>>>>>> {org.apache.stratos.cloud.controller.iaases.JcloudsIaasUtil} - Could >>>>>>> not >>>>>>> build iaas of type: gce >>>>>>> java.util.NoSuchElementException: imageId(centos-6-v20150710) not >>>>>>> found >>>>>>> at >>>>>>> org.jclouds.compute.domain.internal.TemplateBuilderImpl.throwNoSuchElementExceptionAfterLoggingImageIds(TemplateBuilderImpl.java:770) >>>>>>> at >>>>>>> org.jclouds.compute.domain.internal.TemplateBuilderImpl.findImageWithId(TemplateBuilderImpl.java:751) >>>>>>> at >>>>>>> org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:694) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.gce.GCEIaas.buildTemplate(GCEIaas.java:117) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.gce.GCEIaas.buildComputeServiceAndTemplate(GCEIaas.java:78) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaasUtil.buildComputeServiceAndTemplateFromImage(JcloudsIaasUtil.java:46) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaasUtil.buildComputeServiceAndTemplate(JcloudsIaasUtil.java:37) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.initialize(JcloudsIaas.java:100) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.domain.IaasProvider.getIaas(IaasProvider.java:224) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartitionAndGetIaasProvider(CloudControllerServiceUtil.java:93) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.concurrent.PartitionValidatorCallable.call(PartitionValidatorCallable.java:51) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.concurrent.PartitionValidatorCallable.call(PartitionValidatorCallable.java:31) >>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >>>>>>> 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) >>>>>>> TID: [0] [STRATOS] [2015-08-17 17:08:15,306] ERROR >>>>>>> {org.apache.stratos.cloud.controller.iaases.JcloudsIaas} - Could not >>>>>>> initialize jclouds IaaS >>>>>>> org.apache.stratos.cloud.controller.exception.InvalidIaasProviderException: >>>>>>> Could not build iaas of type: gce >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaasUtil.buildComputeServiceAndTemplateFromImage(JcloudsIaasUtil.java:50) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaasUtil.buildComputeServiceAndTemplate(JcloudsIaasUtil.java:37) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.initialize(JcloudsIaas.java:100) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.domain.IaasProvider.getIaas(IaasProvider.java:224) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartitionAndGetIaasProvider(CloudControllerServiceUtil.java:93) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.concurrent.PartitionValidatorCallable.call(PartitionValidatorCallable.java:51) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.concurrent.PartitionValidatorCallable.call(PartitionValidatorCallable.java:31) >>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >>>>>>> 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) >>>>>>> Caused by: java.util.NoSuchElementException: >>>>>>> imageId(centos-6-v20150710) not found >>>>>>> at >>>>>>> org.jclouds.compute.domain.internal.TemplateBuilderImpl.throwNoSuchElementExceptionAfterLoggingImageIds(TemplateBuilderImpl.java:770) >>>>>>> at >>>>>>> org.jclouds.compute.domain.internal.TemplateBuilderImpl.findImageWithId(TemplateBuilderImpl.java:751) >>>>>>> at >>>>>>> org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:694) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.gce.GCEIaas.buildTemplate(GCEIaas.java:117) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.gce.GCEIaas.buildComputeServiceAndTemplate(GCEIaas.java:78) >>>>>>> at >>>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaasUtil.buildComputeServiceAndTemplateFromImage(JcloudsIaasUtil.java:46) >>>>>>> ... 10 more >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Thanks, >>>>>>> Regards, >>>>>>> ASH >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Thanks and Regards, >>>>>> >>>>>> Isuru H. >>>>>> +94 716 358 048* <http://wso2.com/>* >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks, >>>>> Regards, >>>>> ASH >>>>> >>>> >>>> >>>> >>>> -- >>>> Akila Ravihansa Perera >>>> WSO2 Inc.; http://wso2.com/ >>>> >>>> Blog: http://ravihansa3000.blogspot.com >>>> >>> >>> >>> >>> -- >>> Thanks, >>> Regards, >>> ASH >>> >> >> >> >> -- >> Thanks, >> Regards, >> ASH >> > > > > -- > Thanks and Regards, > > Isuru H. > +94 716 358 048* <http://wso2.com/>* > > > -- Thanks, Regards, ASH