Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA2E117921 for ; Sun, 8 Mar 2015 08:29:53 +0000 (UTC) Received: (qmail 74432 invoked by uid 500); 8 Mar 2015 08:29:48 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 74376 invoked by uid 500); 8 Mar 2015 08:29:48 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 74366 invoked by uid 99); 8 Mar 2015 08:29:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2015 08:29:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of davidhbase@gmail.com designates 209.85.217.180 as permitted sender) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2015 08:29:20 +0000 Received: by lbjb6 with SMTP id b6so30145878lbj.9 for ; Sun, 08 Mar 2015 00:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pqDxG38pS1d13cIunMmriCPbhLruJ3rr1SgHfxmFMtQ=; b=mmuNzQgmE8z11rVxemAqVd9/k2mkcOONazubvF7UQoVYhxCqiuJwNNFWc4kUhRTNwQ tej7kdD7mYzl3O7oDjwkceEeDgEimCMPgS5GtB3kzqruPX/hUazGLfGDraLEEgzxAr2O rqH5JqPgZvtyu+4QvWafa5ScDc8puIiR2kPCsCYnXJ4vdXJrd74C4h2KWn8ipsQK3vPE PYJstTzmgYwbMT1JBSuDQj98gd/ndCYtMJ2TXiyTSgL9O1rjyJr0od+jcWX7y3NbqI5i YwgRxKI8hR/5rDPrHWzSeEZDPR/8C7wXdVdxLgTvPAVdMQC3yZbdh9b8CAp5SOYWUMsH sW0A== MIME-Version: 1.0 X-Received: by 10.112.166.102 with SMTP id zf6mr16758642lbb.24.1425803313213; Sun, 08 Mar 2015 00:28:33 -0800 (PST) Received: by 10.112.252.131 with HTTP; Sun, 8 Mar 2015 00:28:33 -0800 (PST) In-Reply-To: References: Date: Sun, 8 Mar 2015 00:28:33 -0800 Message-ID: Subject: Re: Stratos 4.0 can not deploy the Multi-Tenant Service From: david hbase To: "dev@stratos.apache.org" Content-Type: multipart/alternative; boundary=001a11c38cde00f4990510c2b400 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c38cde00f4990510c2b400 Content-Type: text/plain; charset=UTF-8 +Imesh with this emaill chain The AC ( auto scaling ) still not work. Looks like the puppet agent do not send back the system/health check status. puppet agent test is good but not health status back to master. testing result: root@phpphp301-7c5:~# puppet agent --noop --test Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for phpphp301-7c5.prodstage.com Info: Applying configuration version '1425798573' Notice: /Stage[main]/Java/Exec[Install java]/returns: current_value notrun, should be 0 (noop) Notice: Class[Java]: Would have triggered 'refresh' from 1 events Notice: /Stage[main]/Php/Exec[update-apt]/returns: current_value notrun, should be 0 (noop) Notice: /Stage[main]/Php/Exec[enable ssl module]/returns: current_value notrun, should be 0 (noop) Notice: /Stage[main]/Php/Exec[enable ssl]/returns: current_value notrun, should be 0 (noop) Notice: /Stage[main]/Php/Exec[apache2 restart]/returns: current_value notrun, should be 0 (noop) Notice: Class[Php]: Would have triggered 'refresh' from 4 events Info: Class[Php]: Scheduling refresh of Class[Agent] Notice: Class[Agent]: Would have triggered 'refresh' from 1 events Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/artifacts-updated.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/start-servers.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/instance-activated.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/instance-started.sh] Info: Class[Agent]: Scheduling refresh of Agent::Start[cartridge-agent] Info: Class[Agent]: Scheduling refresh of Agent::Initialize[cartridge-agent] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[conf/templates/jndi.properties.template] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[bin/stratos.sh] Info: Class[Agent]: Scheduling refresh of Exec[copy launch-params to carbon_home] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/clean.sh] Notice: Agent::Initialize[cartridge-agent]: Would have triggered 'refresh' from 1 events Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[creating_target_for_cartridge-agent] Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[extracting_stratoscartridge-agent-4.0.0.zip_for_cartridge-agent] Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[downloading_apache-stratos-cartridge-agent-4.0.0.zip] Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[setting_permission_for_cartridge-agent] Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[creating_local_package_repo_for_cartridge-agent] Notice: /Stage[main]/Agent/Agent::Initialize[cartridge-agent]/Exec[creating_local_package_repo_for_cartridge-agent]: Would have triggered 'refresh' from 1 events Notice: /Stage[main]/Agent/Agent::Initialize[cartridge-agent]/Exec[creating_target_for_cartridge-agent]/returns: current_value notrun, should be 0 (noop) Notice: /Stage[main]/Agent/Agent::Initialize[cartridge-agent]/Exec[creating_target_for_cartridge-agent]: Would have triggered 'refresh' from 1 events Notice: /Stage[main]/Agent/Agent::Initialize[cartridge-agent]/Exec[downloading_apache-stratos-cartridge-agent-4.0.0.zip]: Would have triggered 'refresh' from 1 events Notice: /Stage[main]/Agent/Agent::Initialize[cartridge-agent]/Exec[extracting_stratoscartridge-agent-4.0.0.zip_for_cartridge-agent]: Would have triggered 'refresh' from 1 events Notice: /Stage[main]/Agent/Agent::Initialize[cartridge-agent]/Exec[setting_permission_for_cartridge-agent]/returns: current_value notrun, should be 0 (noop) Notice: /Stage[main]/Agent/Agent::Initialize[cartridge-agent]/Exec[setting_permission_for_cartridge-agent]: Would have triggered 'refresh' from 1 events Notice: Agent::Initialize[cartridge-agent]: Would have triggered 'refresh' from 7 events Notice: Agent::Push_templates[bin/stratos.sh]: Would have triggered 'refresh' from 1 events Notice: Agent::Push_templates[extensions/instance-activated.sh]: Would have triggered 'refresh' from 1 events Notice: /Stage[main]/Agent/Exec[copy launch-params to carbon_home]/returns: current_value notrun, should be 0 (noop) Notice: /Stage[main]/Agent/Exec[copy launch-params to carbon_home]: Would have triggered 'refresh' from 1 events Notice: Agent::Push_templates[extensions/clean.sh]: Would have triggered 'refresh' from 1 events Notice: Agent::Push_templates[conf/templates/jndi.properties.template]: Would have triggered 'refresh' from 1 events Notice: Agent::Push_templates[extensions/start-servers.sh]: Would have triggered 'refresh' from 1 events Notice: Agent::Push_templates[extensions/instance-started.sh]: Would have triggered 'refresh' from 1 events Notice: Agent::Push_templates[extensions/artifacts-updated.sh]: Would have triggered 'refresh' from 1 events Notice: Agent::Start[cartridge-agent]: Would have triggered 'refresh' from 1 events Info: Agent::Start[cartridge-agent]: Scheduling refresh of Exec[starting_cartridge-agent] Notice: /Stage[main]/Agent/Agent::Start[cartridge-agent]/Exec[starting_cartridge-agent]: Would have triggered 'refresh' from 1 events Notice: Agent::Start[cartridge-agent]: Would have triggered 'refresh' from 1 events Notice: Class[Agent]: Would have triggered 'refresh' from 4 events Notice: Stage[main]: Would have triggered 'refresh' from 3 events Notice: Finished catalog run in 3.41 seconds Please advice, Thanks -D On Sun, Mar 8, 2015 at 12:09 AM, david hbase wrote: > After recreate the CA certificate and the puppet master certificate, the > above error has been fixed. > But the AC ( auto scaling ) still not work. Looks like the puppet agent do > not send back the system/health check status. > > Any advice? > > Thanks > -D > > > On Sat, Mar 7, 2015 at 8:09 PM, david hbase wrote: > >> Got another error with autoscaling, the puppet log as following: (Stratos >> 4.0 ) >> >> [2015-03-08 04:02:01] - -> >> /production/file_metadatas/modules/agent/activemq?links=manage&recurse=true&checksum_type=md5 >> [2015-03-08 04:02:02] 10.203.50.169 - - [08/Mar/2015:04:02:01 UTC] "PUT >> /production/report/phpphp201-25e.prodstage.com HTTP/1.1" 200 9 >> [2015-03-08 04:02:02] - -> /production/report/phpphp201-25e.prodstage.com >> [2015-03-08 04:02:49] ERROR OpenSSL::SSL::SSLError: SSL_accept SYSCALL >> returned=5 errno=0 state=unknown state >> /usr/lib/ruby/vendor_ruby/puppet/network/http/webrick.rb:32:in >> `accept' >> /usr/lib/ruby/vendor_ruby/puppet/network/http/webrick.rb:32:in >> `listen' >> /usr/lib/ruby/1.8/webrick/server.rb:173:in `call' >> /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' >> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' >> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' >> /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' >> /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' >> /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' >> /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' >> /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' >> /usr/lib/ruby/vendor_ruby/puppet/network/http/webrick.rb:27:in >> `listen' >> /usr/lib/ruby/vendor_ruby/puppet/network/http/webrick.rb:26:in >> `initialize' >> /usr/lib/ruby/vendor_ruby/puppet/network/http/webrick.rb:26:in `new' >> /usr/lib/ruby/vendor_ruby/puppet/network/http/webrick.rb:26:in >> `listen' >> /usr/lib/ruby/vendor_ruby/puppet/network/server.rb:27:in `start' >> /usr/lib/ruby/vendor_ruby/puppet/daemon.rb:139:in `start' >> /usr/lib/ruby/vendor_ruby/puppet/application/master.rb:286:in >> `start_webrick_master' >> /usr/lib/ruby/vendor_ruby/puppet/application/master.rb:199:in `main' >> /usr/lib/ruby/vendor_ruby/puppet/application/master.rb:160:in >> `run_command' >> /usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run' >> /usr/lib/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook' >> /usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run' >> /usr/lib/ruby/vendor_ruby/puppet/util.rb:488:in `exit_on_fail' >> /usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run' >> /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run' >> /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute' >> /usr/bin/puppet:8 >> [2015-03-08 04:02:49] ERROR OpenSSL::SSL::SSLError: SSL_accept SYSCALL >> returned=5 errno=0 state=unknown state >> >> Also, All the instance are auto expired after about 10 minutes and the >> new instances created automatically. >> >> Thanks >> -D >> >> On Fri, Mar 6, 2015 at 5:22 PM, Udara Liyanage wrote: >> >>> Great to hear David >>> On 7 Mar 2015 06:42, "david hbase" wrote: >>> >>>> Thanks you guys, The issue has been solved, following the 646 >>>> instruction. >>>> >>>> -D >>>> >>>> On Fri, Mar 6, 2015 at 3:12 PM, david hbase >>>> wrote: >>>> >>>>> Great! It's working NOW!!! >>>>> >>>>> Just additional issue, instance can spawn, but no IP address back, >>>>> Logs as following ( with openstack deployement) >>>>> >>>>> [2015-03-06 22:53:10,437] INFO >>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient} >>>>> - Trying to spawn an instance via cloud controller: [cluster] >>>>> php.php.domain [partition] zone-1 [lb-cluster] null [network-partition-id] >>>>> openstack-region1 >>>>> [2015-03-06 22:53:25,542] INFO >>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>> Instance is successfully starting up. MemberContext >>>>> [memberId=php.php.domainee0dea8b-a7c5-4c42-ba56-45305ade31a3, >>>>> nodeId=us-internal-1/20971aad-2737-48ac-96f7-7f318dc0a908, >>>>> clusterId=php.php.domain, cartridgeType=php, privateIpAddress=null, >>>>> publicIpAddress=null, allocatedIpAddress=null, initTime=1425682390438, >>>>> lbClusterId=null, networkPartitionId=openstack-region1] >>>>> [2015-03-06 22:53:25,930] ERROR >>>>> {org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas} - Failed to >>>>> allocate an IP address. >>>>> [2015-03-06 22:53:25,931] ERROR >>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>> Error occurred while allocating an ip address. MemberContext >>>>> [memberId=php.php.domainee0dea8b-a7c5-4c42-ba56-45305ade31a3, >>>>> nodeId=us-internal-1/20971aad-2737-48ac-96f7-7f318dc0a908, >>>>> clusterId=php.php.domain, cartridgeType=php, privateIpAddress=null, >>>>> publicIpAddress=null, allocatedIpAddress=null, initTime=1425682390438, >>>>> lbClusterId=null, networkPartitionId=openstack-region1] >>>>> org.apache.stratos.cloud.controller.exception.CloudControllerException: >>>>> Failed to allocate an IP address. >>>>> at >>>>> org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas.associateAddress(OpenstackNovaIaas.java:259) >>>>> at >>>>> org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl$IpAllocator.run(CloudControllerServiceImpl.java:635) >>>>> 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) >>>>> Exception in thread "pool-31-thread-1" >>>>> org.apache.stratos.cloud.controller.exception.CloudControllerException: >>>>> Error occurred while allocating an ip address. MemberContext >>>>> [memberId=php.php.domainee0dea8b-a7c5-4c42-ba56-45305ade31a3, >>>>> nodeId=us-internal-1/20971aad-2737-48ac-96f7-7f318dc0a908, >>>>> clusterId=php.php.domain, cartridgeType=php, privateIpAddress=null, >>>>> publicIpAddress=null, allocatedIpAddress=null, initTime=1425682390438, >>>>> lbClusterId=null, networkPartitionId=openstack-region1] >>>>> at >>>>> org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl$IpAllocator.run(CloudControllerServiceImpl.java:694) >>>>> 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: >>>>> org.apache.stratos.cloud.controller.exception.CloudControllerException: >>>>> Failed to allocate an IP address. >>>>> at >>>>> org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas.associateAddress(OpenstackNovaIaas.java:259) >>>>> at >>>>> org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl$IpAllocator.run(CloudControllerServiceImpl.java:635) >>>>> ... 3 more >>>>> >>>>> Just following the https://issues.apache.org/jira/browse/STRATOS-646 >>>>> instruction, but still not work. >>>>> >>>>> Please help. >>>>> Thanks >>>>> -D >>>>> >>>>> >>>>> On Wed, Mar 4, 2015 at 10:41 PM, Udara Liyanage >>>>> wrote: >>>>> >>>>>> >>>>>> On 5 Mar 2015 10:15, "david hbase" wrote: >>>>>> > >>>>>> > Great appreciated your help. The json code has been attached: >>>>>> > >>>>>> > { >>>>>> > "id": "zone-1", >>>>>> > "provider": "openstack", >>>>>> > "property": [ >>>>>> > { >>>>>> > "name": "region", >>>>>> > "value": "us-internal-1" >>>>>> > } >>>>>> > ] >>>>>> > } >>>>>> > >>>>>> > >>>>>> > { >>>>>> > "type": "php", >>>>>> > "provider": "apache", >>>>>> > "host": "cartridge-php", >>>>>> > "displayName": "PHP", >>>>>> > "description": "PHP Cartridge", >>>>>> > "version": "8", >>>>>> > "multiTenant": true, >>>>>> > "persistance": true, >>>>>> > "portMapping": [ >>>>>> > { >>>>>> > "protocol": "http", >>>>>> > "port": "80", >>>>>> > "proxyPort": "8280" >>>>>> > } >>>>>> > ], >>>>>> > "deployment": {}, >>>>>> > "iaasProvider": [ >>>>>> > { >>>>>> > "type": "openstack", >>>>>> > "imageId": >>>>>> "us-internal-1/287614db-0033-4b9a-80ae-7f5e6be0a942", >>>>>> > "property": [ >>>>>> > { >>>>>> > "name": "instanceType", >>>>>> > "value": >>>>>> "us-internal-1/c33143d9-ce0a-472c-944b-3e39476970d3" >>>>>> > } >>>>>> > ] >>>>>> > } >>>>>> > ] >>>>>> > } >>>>>> > >>>>>> > { >>>>>> > "serviceName": "appserver", >>>>>> > "cartridgeType": "php", >>>>>> > "deploymentPolicyName": "economyDeployment", >>>>>> > "autoscalingPolicyName": "economyPolicy", >>>>>> > "clusterDomain": "stratos40build05", >>>>>> > "clusterSubDomain": "php", >>>>>> > "tenantRange": "*" >>>>>> > } >>>>>> > >>>>>> > [2015-03-05 01:58:39,126] INFO >>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>>> All partitions [zone-1] were validated successfully, against the Cartridge: >>>>>> php >>>>>> > [2015-03-05 01:58:39,129] INFO >>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient} >>>>>> - Validating partitions of policy via cloud controller: [id] >>>>>> economyDeployment >>>>>> > [2015-03-05 01:58:39,923] INFO >>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>>> All partitions [zone-1] were validated successfully, against the Cartridge: >>>>>> php >>>>>> > [2015-03-05 01:59:03,234] ERROR >>>>>> {org.apache.stratos.manager.manager.CartridgeSubscriptionManager} - No >>>>>> active instances are found for cartridge [php] >>>>>> >>>>>> This error message is shown when you try to subscribe to php >>>>>> cartridge, but there is no php instance which has become active. Could you >>>>>> please check weather the php instance became active. You can check >>>>>> cartridge agents log. >>>>>> >>>>>> > [2015-03-05 01:59:08,566] INFO >>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient} >>>>>> - Validating partitions of policy via cloud controller: [id] >>>>>> economyDeployment2 >>>>>> > [2015-03-05 01:59:11,445] INFO >>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient} >>>>>> - Validating partitions of policy via cloud controller: [id] >>>>>> economyDeployment2 >>>>>> > [2015-03-05 01:59:13,100] INFO >>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient} >>>>>> - Validating partitions of policy via cloud controller: [id] >>>>>> economyDeployment2 >>>>>> > [2015-03-05 01:59:14,574] INFO >>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>>> All partitions [zone-1] were validated successfully, against the Cartridge: >>>>>> php >>>>>> > [2015-03-05 01:59:14,577] INFO >>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient} >>>>>> - Validating partitions of policy via cloud controller: [id] >>>>>> economyDeployment >>>>>> > [2015-03-05 01:59:14,628] INFO >>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>>> All partitions [zone-1] were validated successfully, against the Cartridge: >>>>>> php >>>>>> > [2015-03-05 01:59:14,631] INFO >>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient} >>>>>> - Validating partitions of policy via cloud controller: [id] >>>>>> economyDeployment >>>>>> > [2015-03-05 01:59:15,582] INFO >>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>>> All partitions [zone-1] were validated successfully, against the Cartridge: >>>>>> php >>>>>> > [2015-03-05 01:59:15,585] INFO >>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient} >>>>>> - Validating partitions of policy via cloud controller: [id] >>>>>> economyDeployment >>>>>> > [2015-03-05 01:59:15,664] INFO >>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>>> All partitions [zone-1] were validated successfully, against the Cartridge: >>>>>> php >>>>>> > [2015-03-05 01:59:16,549] INFO >>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>>> All partitions [zone-1] were validated successfully, against the Cartridge: >>>>>> php >>>>>> > [2015-03-05 01:59:16,626] INFO >>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - >>>>>> All partitions [zone-1] were validated successfully, against the Cartridge: >>>>>> php >>>>>> > >>>>>> > Thanks >>>>>> > -D >>>>>> > >>>>>> > On Wed, Mar 4, 2015 at 6:13 PM, Udara Liyanage >>>>>> wrote: >>>>>> >> >>>>>> >> Hi, >>>>>> >> >>>>>> >> First of all php is normally not considered a multi tenant >>>>>> service. However could you share your php cartridge json and service json >>>>>> which threw the exception. >>>>>> >> >>>>>> >> On 5 Mar 2015 05:21, "david hbase" wrote: >>>>>> >>> >>>>>> >>> Hi team >>>>>> >>> >>>>>> >>> With Stratos 4.0 and Openstack, I have deployed all the steps >>>>>> successfully, only except with the last step for the Multi-Tenant Service >>>>>> failed, and the error log as following: >>>>>> >>> >>>>>> >>> Failed to deploy the Service [Cartridge type] php [alias] >>>>>> a92a1da2-57bf-4e86-89a3-146900993793 . Cause: null >>>>>> >>> >>>>>> >>> Please Advice, waiting for your reply. >>>>>> >>> >>>>>> >>> Thanks >>>>>> >>> -D >>>>>> >>> >>>>>> >>> >>>>>> >>> [2015-03-04 23:22:57,413] INFO >>>>>> {org.apache.stratos.rest.endpoint.services.ServiceUtils} - Deploying >>>>>> service.. >>>>>> >>> [2015-03-04 23:22:57,434] INFO >>>>>> {org.apache.stratos.manager.subscription.utils.CartridgeSubscriptionUtils} >>>>>> - Generated key : AYhQR4NuUnTFVtCI >>>>>> >>> [2015-03-04 23:22:57,436] ERROR >>>>>> {org.apache.stratos.rest.endpoint.services.ServiceUtils} - Failed to >>>>>> deploy the Service [Cartridge type] php [alias] >>>>>> 0405644c-c371-4201-a05c-b24c337d7896 . Cause: null >>>>>> >>> java.lang.NullPointerException >>>>>> >>> at >>>>>> org.apache.stratos.manager.deploy.service.ServiceDeploymentManager.deployService(ServiceDeploymentManager.java:322) >>>>>> >>> at >>>>>> org.apache.stratos.rest.endpoint.services.ServiceUtils.deployService(ServiceUtils.java:1133) >>>>>> >>> at >>>>>> org.apache.stratos.rest.endpoint.services.StratosAdmin.deployService(StratosAdmin.java:908) >>>>>> >>> 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 >>>>>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) >>>>>> >>> at >>>>>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) >>>>>> >>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194) >>>>>> >>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100) >>>>>> >>> at >>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57) >>>>>> >>> at >>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93) >>>>>> >>> at >>>>>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) >>>>>> >>> at >>>>>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) >>>>>> >>> at >>>>>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239) >>>>>> >>> at >>>>>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223) >>>>>> >>> at >>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203) >>>>>> >>> at >>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137) >>>>>> >>> at >>>>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159) >>>>>> >>> at >>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286) >>>>>> >>> at >>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206) >>>>>> >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) >>>>>> >>> at >>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262) >>>>>> >>> at >>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >>>>>> >>> at >>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>>>>> >>> at >>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) >>>>>> >>> at >>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) >>>>>> >>> at >>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >>>>>> >>> at >>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) >>>>>> >>> at >>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) >>>>>> >>> at >>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) >>>>>> >>> at >>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) >>>>>> >>> at >>>>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) >>>>>> >>> at >>>>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) >>>>>> >>> at >>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) >>>>>> >>> at >>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) >>>>>> >>> at >>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) >>>>>> >>> at >>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) >>>>>> >>> at >>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >>>>>> >>> at >>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >>>>>> >>> at >>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) >>>>>> >>> at >>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) >>>>>> >>> at >>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) >>>>>> >>> 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) >>>>>> >>> >>>>>> > >>>>>> >>>>>> >>>>> >>>> >> > --001a11c38cde00f4990510c2b400 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
+Imesh with this emaill chain

The AC ( auto sc= aling ) still not work. Looks like the puppet agent do not send back the sy= stem/health check status.
puppet agent test is good but not health= status back to master.

testing result:
root= @phpphp301-7c5:~# puppet agent --noop --test
Info: Retrieving pluginfact= s
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalo= g for phpphp301-7c5.prodstag= e.com
Info: Applying configuration version '1425798573'
N= otice: /Stage[main]/Java/Exec[Install java]/returns: current_value notrun, = should be 0 (noop)
Notice: Class[Java]: Would have triggered 'refres= h' from 1 events
Notice: /Stage[main]/Php/Exec[update-apt]/returns: = current_value notrun, should be 0 (noop)
Notice: /Stage[main]/Php/Exec[e= nable ssl module]/returns: current_value notrun, should be 0 (noop)
Noti= ce: /Stage[main]/Php/Exec[enable ssl]/returns: current_value notrun, should= be 0 (noop)
Notice: /Stage[main]/Php/Exec[apache2 restart]/returns: cur= rent_value notrun, should be 0 (noop)
Notice: Class[Php]: Would have tri= ggered 'refresh' from 4 events
Info: Class[Php]: Scheduling refr= esh of Class[Agent]
Notice: Class[Agent]: Would have triggered 'refr= esh' from 1 events
Info: Class[Agent]: Scheduling refresh of Agent::= Push_templates[extensions/artifacts-updated.sh]
Info: Class[Agent]: Sche= duling refresh of Agent::Push_templates[extensions/start-servers.sh]
Inf= o: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/ins= tance-activated.sh]
Info: Class[Agent]: Scheduling refresh of Agent::Pus= h_templates[extensions/instance-started.sh]
Info: Class[Agent]: Scheduli= ng refresh of Agent::Start[cartridge-agent]
Info: Class[Agent]: Scheduli= ng refresh of Agent::Initialize[cartridge-agent]
Info: Class[Agent]: Sch= eduling refresh of Agent::Push_templates[conf/templates/jndi.properties.tem= plate]
Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[b= in/stratos.sh]
Info: Class[Agent]: Scheduling refresh of Exec[copy launc= h-params to carbon_home]
Info: Class[Agent]: Scheduling refresh of Agent= ::Push_templates[extensions/clean.sh]
Notice: Agent::Initialize[cartridg= e-agent]: Would have triggered 'refresh' from 1 events
Info: Age= nt::Initialize[cartridge-agent]: Scheduling refresh of Exec[creating_target= _for_cartridge-agent]
Info: Agent::Initialize[cartridge-agent]: Scheduli= ng refresh of Exec[extracting_stratoscartridge-agent-4.0.0.zip_for_cartridg= e-agent]
Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of= Exec[downloading_apache-stratos-cartridge-agent-4.0.0.zip]
Info: Agent:= :Initialize[cartridge-agent]: Scheduling refresh of Exec[setting_permission= _for_cartridge-agent]
Info: Agent::Initialize[cartridge-agent]: Scheduli= ng refresh of Exec[creating_local_package_repo_for_cartridge-agent]
Noti= ce: /Stage[main]/Agent/Agent::Initialize[cartridge-agent]/Exec[creating_loc= al_package_repo_for_cartridge-agent]: Would have triggered 'refresh'= ; from 1 events
Notice: /Stage[main]/Agent/Agent::Initialize[cartridge-a= gent]/Exec[creating_target_for_cartridge-agent]/returns: current_value notr= un, should be 0 (noop)
Notice: /Stage[main]/Agent/Agent::Initialize[cart= ridge-agent]/Exec[creating_target_for_cartridge-agent]: Would have triggere= d 'refresh' from 1 events
Notice: /Stage[main]/Agent/Agent::Init= ialize[cartridge-agent]/Exec[downloading_apache-stratos-cartridge-agent-4.0= .0.zip]: Would have triggered 'refresh' from 1 events
Notice: /S= tage[main]/Agent/Agent::Initialize[cartridge-agent]/Exec[extracting_stratos= cartridge-agent-4.0.0.zip_for_cartridge-agent]: Would have triggered 'r= efresh' from 1 events
Notice: /Stage[main]/Agent/Agent::Initialize[c= artridge-agent]/Exec[setting_permission_for_cartridge-agent]/returns: curre= nt_value notrun, should be 0 (noop)
Notice: /Stage[main]/Agent/Agent::In= itialize[cartridge-agent]/Exec[setting_permission_for_cartridge-agent]: Wou= ld have triggered 'refresh' from 1 events
Notice: Agent::Initial= ize[cartridge-agent]: Would have triggered 'refresh' from 7 events<= br>Notice: Agent::Push_templates[bin/stratos.sh]: Would have triggered '= ;refresh' from 1 events
Notice: Agent::Push_templates[extensions/ins= tance-activated.sh]: Would have triggered 'refresh' from 1 eventsNotice: /Stage[main]/Agent/Exec[copy launch-params to carbon_home]/return= s: current_value notrun, should be 0 (noop)
Notice: /Stage[main]/Agent/E= xec[copy launch-params to carbon_home]: Would have triggered 'refresh&#= 39; from 1 events
Notice: Agent::Push_templates[extensions/clean.sh]: Wo= uld have triggered 'refresh' from 1 events
Notice: Agent::Push_t= emplates[conf/templates/jndi.properties.template]: Would have triggered = 9;refresh' from 1 events
Notice: Agent::Push_templates[extensions/st= art-servers.sh]: Would have triggered 'refresh' from 1 events
No= tice: Agent::Push_templates[extensions/instance-started.sh]: Would have tri= ggered 'refresh' from 1 events
Notice: Agent::Push_templates[ext= ensions/artifacts-updated.sh]: Would have triggered 'refresh' from = 1 events
Notice: Agent::Start[cartridge-agent]: Would have triggered = 9;refresh' from 1 events
Info: Agent::Start[cartridge-agent]: Schedu= ling refresh of Exec[starting_cartridge-agent]
Notice: /Stage[main]/Agen= t/Agent::Start[cartridge-agent]/Exec[starting_cartridge-agent]: Would have = triggered 'refresh' from 1 events
Notice: Agent::Start[cartridge= -agent]: Would have triggered 'refresh' from 1 events
Notice: Cl= ass[Agent]: Would have triggered 'refresh' from 4 events
Notice:= Stage[main]: Would have triggered 'refresh' from 3 events
Notic= e: Finished catalog run in 3.41 seconds

Please= advice, Thanks
-D

On Sun, Mar 8, 2015 at 12:09 AM, david= hbase <davidhbase@gmail.com> wrote:
After recreate the CA ce= rtificate and the puppet master certificate, the above error has been fixed= .
But the AC ( auto scaling ) still not work. Looks like the puppe= t agent do not send back the system/health check status.

Any a= dvice?

Thanks
-D
=


On Sat, Mar 7, 2015 at 8:09 PM, david hbase <davidhbas= e@gmail.com> wrote:
Got another error with autoscaling, the puppe= t log as following: (Stratos 4.0 )

[2015-03-08 04:02:01] - -&g= t; /production/file_metadatas/modules/agent/activemq?links=3Dmanage&rec= urse=3Dtrue&checksum_type=3Dmd5
[2015-03-08 04:02:02] 10.203.50.169 = - - [08/Mar/2015:04:02:01 UTC] "PUT /production/report/phpphp201-25e.prodstage.c= om HTTP/1.1" 200 9
[2015-03-08 04:02:02] - -> /production/re= port/phpph= p201-25e.prodstage.com
[2015-03-08 04:02:49] ERROR OpenSSL::SSL::SSL= Error: SSL_accept SYSCALL returned=3D5 errno=3D0 state=3Dunknown state
= =C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/network/http/webrick.rb= :32:in `accept'
=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/= network/http/webrick.rb:32:in `listen'
=C2=A0=C2=A0=C2=A0 /usr/lib/r= uby/1.8/webrick/server.rb:173:in `call'
=C2=A0=C2=A0=C2=A0 /usr/lib/= ruby/1.8/webrick/server.rb:173:in `start_thread'
=C2=A0=C2=A0=C2=A0 = /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
=C2=A0=C2=A0=C2= =A0 /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
=C2=A0= =C2=A0=C2=A0 /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
=C2= =A0=C2=A0=C2=A0 /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
=C2= =A0=C2=A0=C2=A0 /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
= =C2=A0=C2=A0=C2=A0 /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/network/http/webrick.= rb:27:in `listen'
=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppe= t/network/http/webrick.rb:26:in `initialize'
=C2=A0=C2=A0=C2=A0 /usr= /lib/ruby/vendor_ruby/puppet/network/http/webrick.rb:26:in `new'
=C2= =A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/network/http/webrick.rb:26= :in `listen'
=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/net= work/server.rb:27:in `start'
=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor= _ruby/puppet/daemon.rb:139:in `start'
=C2=A0=C2=A0=C2=A0 /usr/lib/ru= by/vendor_ruby/puppet/application/master.rb:286:in `start_webrick_master= 9;
=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/application/maste= r.rb:199:in `main'
=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/pupp= et/application/master.rb:160:in `run_command'
=C2=A0=C2=A0=C2=A0 /us= r/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run'
=C2=A0=C2= =A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_ho= ok'
=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/application.= rb:381:in `run'
=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/= util.rb:488:in `exit_on_fail'
=C2=A0=C2=A0=C2=A0 /usr/lib/ruby/vendo= r_ruby/puppet/application.rb:381:in `run'
=C2=A0=C2=A0=C2=A0 /usr/li= b/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
=C2=A0= =C2=A0=C2=A0 /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `e= xecute'
=C2=A0=C2=A0=C2=A0 /usr/bin/puppet:8
[2015-03-08 04:02:49= ] ERROR OpenSSL::SSL::SSLError: SSL_accept SYSCALL returned=3D5 errno=3D0 s= tate=3Dunknown state

Also, All the instance are auto expired a= fter about 10 minutes and the new instances created automatically.

<= /div>Thanks
-D

On Fri, Mar 6, 2015 at 5:22 PM, Udar= a Liyanage <udara@wso2.com> wrote:

Great to hear David

On 7 Mar 2015 06:42, "david hbase" <= ;davidhbase@gmail= .com> wrote:
=
Thanks you guys, The issue has been solved, following the = 646 instruction.

-D=C2=A0

On Fri, Mar 6, 2015 at 3:12 PM, davi= d hbase <davidhbase@gmail.com> wrote:
Great! It's working NOW!!!

Just additional issue, instance can=C2=A0spawn, but no IP address ba= ck, Logs as following ( with openstack deployement)

[2015-03-06 22:53:10,437] =C2=A0INFO {org.apache.stratos.autoscaler.= client.cloud.controller.CloudControllerClient} - =C2=A0Trying to spawn an i= nstance via cloud controller: [cluster] php.php.domain [partition] zone-1 [= lb-cluster] null [network-partition-id] openstack-region1
[2015-0= 3-06 22:53:25,542] =C2=A0INFO {org.apache.stratos.cloud.controller.impl.Clo= udControllerServiceImpl} - =C2=A0Instance is successfully starting up. Memb= erContext [memberId=3Dphp.php.domainee0dea8b-a7c5-4c42-ba56-45305ade31a3, n= odeId=3Dus-internal-1/20971aad-2737-48ac-96f7-7f318dc0a908, clusterId=3Dphp= .php.domain, cartridgeType=3Dphp, privateIpAddress=3Dnull, publicIpAddress= =3Dnull, allocatedIpAddress=3Dnull, initTime=3D1425682390438, lbClusterId= =3Dnull, networkPartitionId=3Dopenstack-region1]
[2015-03-06 22:5= 3:25,930] ERROR {org.apache.stratos.cloud.controller.iaases.OpenstackNovaIa= as} - =C2=A0Failed to allocate an IP address.
[2015-03-06 22:53:2= 5,931] ERROR {org.apache.stratos.cloud.controller.impl.CloudControllerServi= ceImpl} - =C2=A0Error occurred while allocating an ip address. MemberContex= t [memberId=3Dphp.php.domainee0dea8b-a7c5-4c42-ba56-45305ade31a3, nodeId=3D= us-internal-1/20971aad-2737-48ac-96f7-7f318dc0a908, clusterId=3Dphp.php.dom= ain, cartridgeType=3Dphp, privateIpAddress=3Dnull, publicIpAddress=3Dnull, = allocatedIpAddress=3Dnull, initTime=3D1425682390438, lbClusterId=3Dnull, ne= tworkPartitionId=3Dopenstack-region1]
org.apache.stratos.cloud.co= ntroller.exception.CloudControllerException: Failed to allocate an IP addre= ss.
at org.apache.st= ratos.cloud.controller.iaases.OpenstackNovaIaas.associateAddress(OpenstackN= ovaIaas.java:259)
at= org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl$IpAllo= cator.run(CloudControllerServiceImpl.java:635)
at java.util.concurrent.ThreadPoolExecuto= r.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run= (ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Excepti= on in thread "pool-31-thread-1" org.apache.stratos.cloud.controll= er.exception.CloudControllerException: Error occurred while allocating an i= p address. MemberContext [memberId=3Dphp.php.domainee0dea8b-a7c5-4c42-ba56-= 45305ade31a3, nodeId=3Dus-internal-1/20971aad-2737-48ac-96f7-7f318dc0a908, = clusterId=3Dphp.php.domain, cartridgeType=3Dphp, privateIpAddress=3Dnull, p= ublicIpAddress=3Dnull, allocatedIpAddress=3Dnull, initTime=3D1425682390438,= lbClusterId=3Dnull, networkPartitionId=3Dopenstack-region1]
at org.apache.stratos.cloud.contro= ller.impl.CloudControllerServiceImpl$IpAllocator.run(CloudControllerService= Impl.java:694)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.ja= va:1145)
at java.uti= l.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run= (Thread.java:745)
Caused by: org.apache.stratos.cloud.cont= roller.exception.CloudControllerException: Failed to allocate an IP address= .
at org.apache.stra= tos.cloud.controller.iaases.OpenstackNovaIaas.associateAddress(OpenstackNov= aIaas.java:259)
at o= rg.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl$IpAlloca= tor.run(CloudControllerServiceImpl.java:635)
... 3 more

Just fol= lowing the=C2=A0https://issues.apache.org/jira/browse/STRATOS-646 = instruction, but still not work.

Please help.
Thanks
-D
<= div>

On Wed, M= ar 4, 2015 at 10:41 PM, Udara Liyanage <udara@wso2.com> wrote:<= br>


On 5 Mar 2015 10:15, "david hbase" <davidhbase@gmail.com> wrote:
>
> Great appreciated your help. The json code has been attached:
>
> {
> =C2=A0 "id": "zone-1",
> =C2=A0 "provider": "openstack",
> =C2=A0 "property": [
> =C2=A0=C2=A0=C2=A0 {
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "name": "region", > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "value": "us-internal-1&= quot;
> =C2=A0=C2=A0=C2=A0 }
> =C2=A0 ]
> }
>
>
> {
> =C2=A0 "type": "php",
> =C2=A0 "provider": "apache",
> =C2=A0 "host": "cartridge-php",
> =C2=A0 "displayName": "PHP",
> =C2=A0 "description": "PHP Cartridge",
> =C2=A0 "version": "8",
> =C2=A0 "multiTenant": true,
> =C2=A0 "persistance": true,
> =C2=A0 "portMapping": [
> =C2=A0=C2=A0=C2=A0 {
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "protocol": "http",=
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "port": "80",
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "proxyPort": "8280"=
> =C2=A0=C2=A0=C2=A0 }
> =C2=A0 ],
> =C2=A0 "deployment": {},
> =C2=A0 "iaasProvider": [
> =C2=A0=C2=A0=C2=A0 {
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "type": "openstack"= ,
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "imageId": "us-internal-= 1/287614db-0033-4b9a-80ae-7f5e6be0a942",
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "property": [
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "name"= ;: "instanceType",
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "value&quo= t;: "us-internal-1/c33143d9-ce0a-472c-944b-3e39476970d3"
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ]
> =C2=A0=C2=A0=C2=A0 }
> =C2=A0 ]
> }
>
> {
> =C2=A0 "serviceName": "appserver",
> =C2=A0 "cartridgeType": "php",
> =C2=A0 "deploymentPolicyName": "economyDeployment"= ,
> =C2=A0 "autoscalingPolicyName": "economyPolicy", > =C2=A0 "clusterDomain": "stratos40build05",
> =C2=A0 "clusterSubDomain": "php",
> =C2=A0 "tenantRange": "*"
> }
>
> [2015-03-05 01:58:39,126]=C2=A0 INFO {org.apache.stratos.cloud.control= ler.impl.CloudControllerServiceImpl} -=C2=A0 All partitions [zone-1] were v= alidated successfully, against the Cartridge: php
> [2015-03-05 01:58:39,129]=C2=A0 INFO {org.apache.stratos.autoscaler.cl= ient.cloud.controller.CloudControllerClient} -=C2=A0 Validating partitions = of policy via cloud controller: [id] economyDeployment
> [2015-03-05 01:58:39,923]=C2=A0 INFO {org.apache.stratos.cloud.control= ler.impl.CloudControllerServiceImpl} -=C2=A0 All partitions [zone-1] were v= alidated successfully, against the Cartridge: php
> [2015-03-05 01:59:03,234] ERROR {org.apache.stratos.manager.manager.Ca= rtridgeSubscriptionManager} -=C2=A0 No active instances are found for cartr= idge [php]

This error message is shown when you try to subs= cribe to php cartridge, but there is no php instance which has become activ= e. Could you please check weather the php instance became active. You can c= heck cartridge agents log.


> [2015-03-05 01:59:08,566]=C2=A0 INFO {org.apache.stratos.autoscaler.cl= ient.cloud.controller.CloudControllerClient} -=C2=A0 Validating partitions = of policy via cloud controller: [id] economyDeployment2
> [2015-03-05 01:59:11,445]=C2=A0 INFO {org.apache.stratos.autoscaler.cl= ient.cloud.controller.CloudControllerClient} -=C2=A0 Validating partitions = of policy via cloud controller: [id] economyDeployment2
> [2015-03-05 01:59:13,100]=C2=A0 INFO {org.apache.stratos.autoscaler.cl= ient.cloud.controller.CloudControllerClient} -=C2=A0 Validating partitions = of policy via cloud controller: [id] economyDeployment2
> [2015-03-05 01:59:14,574]=C2=A0 INFO {org.apache.stratos.cloud.control= ler.impl.CloudControllerServiceImpl} -=C2=A0 All partitions [zone-1] were v= alidated successfully, against the Cartridge: php
> [2015-03-05 01:59:14,577]=C2=A0 INFO {org.apache.stratos.autoscaler.cl= ient.cloud.controller.CloudControllerClient} -=C2=A0 Validating partitions = of policy via cloud controller: [id] economyDeployment
> [2015-03-05 01:59:14,628]=C2=A0 INFO {org.apache.stratos.cloud.control= ler.impl.CloudControllerServiceImpl} -=C2=A0 All partitions [zone-1] were v= alidated successfully, against the Cartridge: php
> [2015-03-05 01:59:14,631]=C2=A0 INFO {org.apache.stratos.autoscaler.cl= ient.cloud.controller.CloudControllerClient} -=C2=A0 Validating partitions = of policy via cloud controller: [id] economyDeployment
> [2015-03-05 01:59:15,582]=C2=A0 INFO {org.apache.stratos.cloud.control= ler.impl.CloudControllerServiceImpl} -=C2=A0 All partitions [zone-1] were v= alidated successfully, against the Cartridge: php
> [2015-03-05 01:59:15,585]=C2=A0 INFO {org.apache.stratos.autoscaler.cl= ient.cloud.controller.CloudControllerClient} -=C2=A0 Validating partitions = of policy via cloud controller: [id] economyDeployment
> [2015-03-05 01:59:15,664]=C2=A0 INFO {org.apache.stratos.cloud.control= ler.impl.CloudControllerServiceImpl} -=C2=A0 All partitions [zone-1] were v= alidated successfully, against the Cartridge: php
> [2015-03-05 01:59:16,549]=C2=A0 INFO {org.apache.stratos.cloud.control= ler.impl.CloudControllerServiceImpl} -=C2=A0 All partitions [zone-1] were v= alidated successfully, against the Cartridge: php
> [2015-03-05 01:59:16,626]=C2=A0 INFO {org.apache.stratos.cloud.control= ler.impl.CloudControllerServiceImpl} -=C2=A0 All partitions [zone-1] were v= alidated successfully, against the Cartridge: php
>
> Thanks
> -D
>
> On Wed, Mar 4, 2015 at 6:13 PM, Udara Liyanage <udara@wso2.com> wrote:
>>
>> Hi,
>>
>> First of all php is normally not considered a multi tenant service= . However could you share your php cartridge json and service json which th= rew the exception.
>>
>> On 5 Mar 2015 05:21, "david hbase" <davidhbase@gmail.com> wrote= :
>>>
>>> Hi team
>>>
>>> With Stratos 4.0 and Openstack, I have deployed all the steps = successfully, only except with the last step for the Multi-Tenant Service f= ailed, and the error log as following:
>>>
>>> Failed to deploy the Service [Cartridge type] php [alias] a92a= 1da2-57bf-4e86-89a3-146900993793 . Cause: null
>>>
>>> Please Advice, waiting for your reply.
>>>
>>> Thanks
>>> -D
>>>
>>>
>>> [2015-03-04 23:22:57,413] =C2=A0INFO {org.apache.stratos.rest.= endpoint.services.ServiceUtils} - =C2=A0Deploying service..
>>> [2015-03-04 23:22:57,434] =C2=A0INFO {org.apache.stratos.manag= er.subscription.utils.CartridgeSubscriptionUtils} - =C2=A0Generated key =C2= =A0: AYhQR4NuUnTFVtCI
>>> [2015-03-04 23:22:57,436] ERROR {org.apache.stratos.rest.endpo= int.services.ServiceUtils} - =C2=A0Failed to deploy the Service [Cartridge = type] php [alias] 0405644c-c371-4201-a05c-b24c337d7896 . Cause: null
>>> java.lang.NullPointerException
>>> at org.apache.stratos.manager.deploy.service.ServiceDeployment= Manager.deployService(ServiceDeploymentManager.java:322)
>>> at org.apache.stratos.rest.endpoint.services.ServiceUtils.depl= oyService(ServiceUtils.java:1133)
>>> at org.apache.stratos.rest.endpoint.services.StratosAdmin.depl= oyService(StratosAdmin.java:908)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)=
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc= essorImpl.java:57)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM= ethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at org.apache.cxf.service.invoker.AbstractInvoker.performInvoc= ation(AbstractInvoker.java:180)
>>> at org.apache.cxf.service.invoker.AbstractInvoker.invoke(Abstr= actInvoker.java:96)
>>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:= 194)
>>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:= 100)
>>> at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(= ServiceInvokerInterceptor.java:57)
>>> at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handle= Message(ServiceInvokerInterceptor.java:93)
>>> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(Phas= eInterceptorChain.java:271)
>>> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(= ChainInitiationObserver.java:121)
>>> at org.apache.cxf.transport.http.AbstractHTTPDestination.invok= e(AbstractHTTPDestination.java:239)
>>> at org.apache.cxf.transport.servlet.ServletController.invokeDe= stination(ServletController.java:223)
>>> at org.apache.cxf.transport.servlet.ServletController.invoke(S= ervletController.java:203)
>>> at org.apache.cxf.transport.servlet.ServletController.invoke(S= ervletController.java:137)
>>> at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke= (CXFNonSpringServlet.java:159)
>>> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handle= Request(AbstractHTTPServlet.java:286)
>>> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost= (AbstractHTTPServlet.java:206)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755= )
>>> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.servic= e(AbstractHTTPServlet.java:262)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoF= ilter(ApplicationFilterChain.java:305)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(Ap= plicationFilterChain.java:210)
>>> at org.apache.catalina.core.StandardWrapperValve.invoke(Standa= rdWrapperValve.java:222)
>>> at org.apache.catalina.core.StandardContextValve.invoke(Standa= rdContextValve.java:123)
>>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(= AuthenticatorBase.java:472)
>>> at org.apache.catalina.core.StandardHostValve.invoke(StandardH= ostValve.java:171)
>>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRep= ortValve.java:99)
>>> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueIn= vocation(CompositeValve.java:178)
>>> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invok= e(CarbonTomcatValve.java:47)
>>> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(Ten= antLazyLoaderValve.java:56)
>>> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invo= keValves(TomcatValveContainer.java:47)
>>> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(Com= positeValve.java:141)
>>> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectio= nValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogV= alve.java:936)
>>> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve= .invoke(CarbonContextCreatorValve.java:52)
>>> at org.apache.catalina.core.StandardEngineValve.invoke(Standar= dEngineValve.java:118)
>>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteA= dapter.java:407)
>>> at org.apache.coyote.http11.AbstractHttp11Processor.process(Ab= stractHttp11Processor.java:1004)
>>> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandle= r.process(AbstractProtocol.java:589)
>>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(= NioEndpoint.java:1653)
>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo= lExecutor.java:1145)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo= olExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>






--001a11c38cde00f4990510c2b400--