Hi Asanka, The error says what caused it:
java.lang.IllegalArgumentException: Object 'ha' doesn't match dns naming constraints. Reason: Can't be null or empty. Length must be 3 to 63 symbols.. Are you getting this continuously? If so, can you put a debug point in startInstance method in JcloudsIaaS class and see what is causing this IllegalArgumentException. On Sat, Jun 6, 2015 at 11:18 AM, Asanka Sanjaya Herath <angal...@gmail.com> wrote: > Hi All, > > I used latest Stratos master branch code and tried to deploy an > application in GCE. I'm getting this error. Any help is highly appreciated. > > [2015-06-06 05:04:21,391] INFO > {org.apache.stratos.messaging.message.processor.topology.MemberCreatedMessageProcessor} > - Member created: [service-name] php [cluster-id] > single-cartridge-app.my-php.php.domain [member-id] > single-cartridge-app.my-php.php.domain9d4fe844-6f74-47d4-8d4a-de00d4982a2f > [cluster-instance-id] single-cartridge-app-1 > [2015-06-06 05:04:23,996] 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.domain7b2d9a8c-76a8-4432-871b-1e257bd7560e, > instanceId=null, 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=1433567061119, 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=2]]]] Cause: > Object 'ha' doesn't match dns naming constraints. Reason: Can't be null or > empty. Length must be 3 to 63 symbols.. > java.lang.IllegalArgumentException: Object 'ha' doesn't match dns naming > constraints. Reason: Can't be null or empty. Length must be 3 to 63 > symbols.. > at > org.jclouds.predicates.validators.DnsNameValidator.exception(DnsNameValidator.java:74) > at > org.jclouds.predicates.validators.DnsNameValidator.validate(DnsNameValidator.java:51) > at > org.jclouds.predicates.validators.DnsNameValidator.validate(DnsNameValidator.java:36) > at > org.jclouds.compute.internal.FormatSharedNamesAndAppendUniqueStringToThoseWhichRepeat.checkGroup(FormatSharedNamesAndAppendUniqueStringToThoseWhichRepeat.java:124) > at > org.jclouds.compute.internal.FormatSharedNamesAndAppendUniqueStringToThoseWhichRepeat.sharedNameForGroup(FormatSharedNamesAndAppendUniqueStringToThoseWhichRepeat.java:120) > at > org.jclouds.googlecomputeengine.compute.functions.FirewallTagNamingConvention$Factory.get(FirewallTagNamingConvention.java:39) > at > org.jclouds.googlecomputeengine.compute.functions.InstanceInZoneToNodeMetadata.apply(InstanceInZoneToNodeMetadata.java:89) > at > org.jclouds.googlecomputeengine.compute.functions.InstanceInZoneToNodeMetadata.apply(InstanceInZoneToNodeMetadata.java:51) > at > com.google.common.base.Functions$FunctionComposition.apply(Functions.java:216) > at com.google.common.collect.Iterators$8.transform(Iterators.java:794) > at > com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) > at com.google.common.collect.Iterators$7.computeNext(Iterators.java:646) > at > com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) > at > com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) > at com.google.common.collect.Iterators.indexOf(Iterators.java:771) > at com.google.common.collect.Iterators.any(Iterators.java:679) > at com.google.common.collect.Iterables.any(Iterables.java:623) > at > org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.getNextNames(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:197) > at > org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:121) > at > org.jclouds.googlecomputeengine.compute.strategy.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:127) > at > org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:210) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37) > at com.sun.proxy.$Proxy116.createNodesInGroup(Unknown Source) > 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) > > > -- > Thanks, > Regards, > ASH > > -- > Thanks and Regards, > > Isuru H. > +94 716 358 048* <http://wso2.com/>* > > > * <http://wso2.com/>* > > >