Hi All, I tested the latest code and now it is working correctly with GCE without giving the previous exception. I was able to deploy and undeploy an application without giving any exception.
On Wed, May 13, 2015 at 10:08 PM, Lahiru Sandaruwan <lahi...@wso2.com> wrote: > Mari, > > Shall we document this? > > User cannot use an application id which is starting with any digit for GCE > IaaS. > > Thanks. > > On Wed, May 13, 2015 at 9:51 PM, Lahiru Sandaruwan <lahi...@wso2.com> > wrote: > >> Hi all, >> >> I was mistaken when i said the id is generated with member id. It was >> Application id that is used for this. Therefore we do need to do any change >> to make this work. Just need to start application id with some non digit >> characters. >> >> Thanks. >> >> On Wed, May 13, 2015 at 1:54 PM, Lahiru Sandaruwan <lahi...@wso2.com> >> wrote: >> >>> Hi all, >>> >>> I added some null checks to metadata extraction code. Then it proceed >>> further. Now the issue is that we use a digit in member id to start with. >>> GCE does not allow this. So we might need to change the way we append the >>> digit. >>> >>> Thanks. >>> >>> [1] TID: [0] [STRATOS] [2015-05-13 08:17:49,585] INFO >>> {org.apache.stratos.messaging.message.processor.topology.MemberCreatedMessageProcessor} >>> - Member created: [service-name] php [cluster-id] >>> 2350f466-5707-6bd2-e4b8-95c1283d8213.alias2.php.domain [member-id] >>> 2350f466-5707-6bd2-e4b8-95c1283d8213.alias2.php.domain9ae83356-cbda-4f40-b23f-148fef4f0243 >>> [cluster-instance-id] 2350f466-5707-6bd2-e4b8-95c1283d8213-1 >>> TID: [0] [STRATOS] [2015-05-13 08:18:07,812] ERROR {jclouds.compute} - >>> createNodesInGroup(2350f466-5), completed: 0/1, errors: 1, rate: 136ms/op >>> java.util.concurrent.ExecutionException: >>> org.jclouds.http.HttpResponseException: command: POST >>> https://www.googleapis.com/compute/v1/projects/chrome-bearing-93801/zones/europe-west1-b/disks?sourceImage=https%3A//www.googleapis.com/compute/v1/projects/chrome-bearing-93801/global/images/stratos-base-v1 >>> 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.name': >>> '2350f466-5-235-boot-disk'. Must be a match of regex >>> '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'" >>> } >>> ], >>> "code": 400, >>> "message": "Invalid value for field 'resource.name': >>> '2350f466-5-235-boot-disk'. Must be a match of regex >>> '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'" >>> } >>> } >>> ] >>> >>> On Wed, May 13, 2015 at 1:02 AM, Lahiru Sandaruwan <lahi...@wso2.com> >>> wrote: >>> >>>> Hi, >>>> >>>> I was able to start the instances in GCE. But it gives an error [1]. >>>> Having a further look. >>>> >>>> Thanks. >>>> >>>> [1] >>>> >>>> able, hence trying to spawn an instance to fulfil minimum count! >>>> [cluster] ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain >>>> TID: [0] [STRATOS] [2015-05-12 19:10:50,482] INFO >>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} - Trying to >>>> spawn an instance via cloud controller: [cluster] >>>> ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain [partition] >>>> partition-1 [network-partition-id] network-partition-1 >>>> TID: [0] [STRATOS] [2015-05-12 19:10:50,508] INFO >>>> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher} >>>> - Publishing member created event: [service-name] php [cluster-id] >>>> ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain [cluster-instance-id] >>>> ff94b057-b090-c10a-915e-5191c0a6ac34-1 [member-id] >>>> ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain8c396cce-fca5-4101-8c73-667620d2ea3d >>>> [instance-id] null [network-partition-id] network-partition-1 >>>> [partition-id] partition-1 [lb-cluster-id] null >>>> TID: [0] [STRATOS] [2015-05-12 19:10:50,542] INFO >>>> {org.apache.stratos.messaging.message.processor.topology.MemberCreatedMessageProcessor} >>>> - Member created: [service-name] php [cluster-id] >>>> ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain [member-id] >>>> ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain8c396cce-fca5-4101-8c73-667620d2ea3d >>>> [cluster-instance-id] ff94b057-b090-c10a-915e-5191c0a6ac34-1 >>>> >>>> *TID: [0] [STRATOS] [2015-05-12 19:11:30,613] ERROR >>>> {org.apache.stratos.cloud.controller.iaases.JcloudsIaas} - Failed to start >>>> an instance. MemberContext >>>> [applicationId=ff94b057-b090-c10a-915e-5191c0a6ac34, cartridgeType=php, >>>> clusterId=ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain, >>>> memberId=ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain8c396cce-fca5-4101-8c73-667620d2ea3d, >>>> instanceId=europe-west1-b/ff94b057-b-330, partition=Partition >>>> [id=partition-1, description=null, isPublic=false, provider=gce, >>>> properties=Properties [properties=[Property [name=region, >>>> value=default]]]], defaultPrivateIP=null, defaultPublicIP=null, >>>> allocatedIPs=null, publicIPs=null, privateIPs=null, initTime=1431457850494, >>>> lbClusterId=null, networkPartitionId=network-partition-1, >>>> kubernetesPodId=null, kubernetesPodLabel=null, loadBalancingIPType=Private, >>>> instanceMetadata=null, properties=Properties [properties=[Property >>>> [name=PRIMARY, value=false], Property [name=MIN_COUNT, value=1]]]] Cause: >>>> null* >>>> *java.lang.NullPointerException* >>>> * at >>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.createInstanceMetadata(JcloudsIaas.java:163)* >>>> * at >>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.startInstance(JcloudsIaas.java:147)* >>>> * 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-05-12 19:11:30,621] ERROR >>>> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} - >>>> Could not start instance: [cartridge-type] php [cluster-id] >>>> ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain >>>> java.lang.IllegalStateException: Failed to start an instance. >>>> MemberContext [applicationId=ff94b057-b090-c10a-915e-5191c0a6ac34, >>>> cartridgeType=php, >>>> clusterId=ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain, >>>> memberId=ff94b057-b090-c10a-915e-5191c0a6ac34.myphp.php.domain8c396cce-fca5-4101-8c73-667620d2ea3d, >>>> instanceId=europe-west1-b/ff94b057-b-330, partition=Partition >>>> [id=partition-1, description=null, isPublic=false, provider=gce, >>>> properties=Properties [properties=[Property [name=region, >>>> value=default]]]], defaultPrivateIP=null, defaultPublicIP=null, >>>> allocatedIPs=null, publicIPs=null, privateIPs=null, initTime=1431457850494, >>>> lbClusterId=null, networkPartitionId=network-partition-1, >>>> kubernetesPodId=null, kubernetesPodLabel=null, loadBalancingIPType=Private, >>>> instanceMetadata=null, properties=Properties [properties=[Property >>>> [name=PRIMARY, value=false], Property [name=MIN_COUNT, value=1]]]] Cause: >>>> null >>>> at >>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.startInstance(JcloudsIaas.java:151) >>>> 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) >>>> Caused by: java.lang.NullPointerException >>>> at >>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.createInstanceMetadata(JcloudsIaas.java:163) >>>> at >>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.startInstance(JcloudsIaas.java:147) >>>> ... 5 more >>>> >>>> >>>> On Tue, May 12, 2015 at 1:05 AM, Lahiru Sandaruwan <lahi...@wso2.com> >>>> wrote: >>>> >>>>> Hi all, >>>>> >>>>> I'm working on $subject. I will update the progress as i continue. >>>>> >>>>> BTW. Has anyone done it recently? >>>>> >>>>> Thanks. >>>>> >>>>> -- >>>>> -- >>>>> Lahiru Sandaruwan >>>>> Committer and PMC member, Apache Stratos, >>>>> Senior Software Engineer, >>>>> WSO2 Inc., http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>>> phone: +94773325954 >>>>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ >>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>>> >>>>> >>>> >>>> >>>> -- >>>> -- >>>> Lahiru Sandaruwan >>>> Committer and PMC member, Apache Stratos, >>>> Senior Software Engineer, >>>> WSO2 Inc., http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> phone: +94773325954 >>>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ >>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>> >>>> >>> >>> >>> -- >>> -- >>> Lahiru Sandaruwan >>> Committer and PMC member, Apache Stratos, >>> Senior Software Engineer, >>> WSO2 Inc., http://wso2.com >>> lean.enterprise.middleware >>> >>> phone: +94773325954 >>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ >>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>> >>> >> >> >> -- >> -- >> Lahiru Sandaruwan >> Committer and PMC member, Apache Stratos, >> Senior Software Engineer, >> WSO2 Inc., http://wso2.com >> lean.enterprise.middleware >> >> phone: +94773325954 >> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ >> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >> >> > > > -- > -- > Lahiru Sandaruwan > Committer and PMC member, Apache Stratos, > Senior Software Engineer, > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > phone: +94773325954 > email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > > -- Thanks, Regards, ASH