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 4F889CFF1 for ; Tue, 9 Dec 2014 07:07:11 +0000 (UTC) Received: (qmail 34663 invoked by uid 500); 9 Dec 2014 07:07:10 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 34601 invoked by uid 500); 9 Dec 2014 07:07:10 -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 34591 invoked by uid 99); 9 Dec 2014 07:07:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 07:07:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vishanthb@wso2.com designates 209.85.215.43 as permitted sender) Received: from [209.85.215.43] (HELO mail-la0-f43.google.com) (209.85.215.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 07:07:05 +0000 Received: by mail-la0-f43.google.com with SMTP id s18so4773702lam.30 for ; Mon, 08 Dec 2014 23:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ssEMI5r/M5KrGt7ZFwZpbjRnFxH51R3vlxW5qk/n3SY=; b=av4DI982UCjm2WkANuQL35Faip+J6fB4VMk71cJa5eHCoaNpa9SnziC+P8ZToMzB+f Uo9nsQMiLwdZRmL1ZEi2oBzK/BZ3A83NjI24g5fR5PL0OondNHOqphV0Al5sq0J5FVmU gMldk4EhUE0SoxCoO6ieo1ZxuYG42/3xvCBDs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ssEMI5r/M5KrGt7ZFwZpbjRnFxH51R3vlxW5qk/n3SY=; b=CGT0soWfOhT/U4+J/xPiYZMdhESir+ViWg/0N5BzTQyQwueTytWpSzS/tVzKi5OCeo N804R6U8ToPWuzobBtK4Zu8F+kojNIj/vcnhNwWs5MOontQ36HPvLwD1/lbcqyLWl1N9 h+gGlaKMDSS11Jbz700zdEmGiQuwVihwYnvj6Ze/8ywAvR468tst1gwWNDMwUAAGeOcH kabz6GJE604g/X9zXnDeVfDw2JMJeFhgndOAqqZJn6/+EaYunzeOJ9t0RLXGEkmdpfjA t1Oirx7Jx9bqGLSjKr2aAzt5Fx5lqNZz0TItx+HUztjZH6p4U3ylbpii0T7YRjTMTmRP vBMQ== X-Gm-Message-State: ALoCoQm9oqHkrcWjkPv/0r9gVciBahhL9HbvK74zTW/bjtz9t2JLEDc1uqSDVrWiWb9ut2Jy/X81 MIME-Version: 1.0 X-Received: by 10.112.136.38 with SMTP id px6mr9252044lbb.88.1418108804670; Mon, 08 Dec 2014 23:06:44 -0800 (PST) Received: by 10.25.151.6 with HTTP; Mon, 8 Dec 2014 23:06:44 -0800 (PST) In-Reply-To: References: Date: Tue, 9 Dec 2014 12:36:44 +0530 Message-ID: Subject: Re: Error when deploying a cartridge From: Vishanth Balasubramaniam To: dev@stratos.apache.org Content-Type: multipart/alternative; boundary=089e0112cc6a8e3db20509c32f9a X-Virus-Checked: Checked by ClamAV on apache.org --089e0112cc6a8e3db20509c32f9a Content-Type: text/plain; charset=UTF-8 solved. sorry for the inconvenience. On Tue, Dec 9, 2014 at 12:24 PM, Vishanth Balasubramaniam < vishanthb@wso2.com> wrote: > Hi, > > I was able to successfully deploy the autoscaling policy. > > I modified my cloud-controller as follows > > > > > org.apache.stratos.cloud.controller.iaases.JcloudsOpenstackIaas > > > openstack-nova > > > stratos:vishanth > > > vishanth > > > > value="false"/> > > > > > > > > > > > > > > > > > When I deploy the tomcat (file attached) cartridge with the following > command, I am getting the CNF exception > > curl -X POST -H "Content-Type: application/json" -d > @'groupings/tomcat.json' -k -v -u admin:admin > https://192.168.30.66:9443/api/cartridges > > * Hostname was NOT found in DNS cache > > * Trying 192.168.30.66... > > * Connected to 192.168.30.66 (192.168.30.66) port 9443 (#0) > > * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 > > * Server certificate: localhost > > * Server auth using Basic with user 'admin' > > > POST /api/cartridges HTTP/1.1 > > > Authorization: Basic YWRtaW46YWRtaW4= > > > User-Agent: curl/7.37.1 > > > Host: 192.168.30.66:9443 > > > Accept: */* > > > Content-Type: application/json > > > Content-Length: 1173 > > > Expect: 100-continue > > > > > < HTTP/1.1 100 Continue > > < HTTP/1.1 400 Bad Request > > < Date: Tue, 09 Dec 2014 06:15:14 GMT > > < Content-Type: application/json > > < Content-Length: 91 > > < Connection: close > > * Server WSO2 Carbon Server is not blacklisted > > < Server: WSO2 Carbon Server > > < > > * Closing connection 0 > > {"Error":{ "errorCode": " 400", "errorMessage": " Exception in deploying > the cartridge. "}} > > > TID: [0] [STRATOS] [2014-12-09 06:15:14,714] INFO > {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} - Starting to > deploy a Cartridge [type] tomcat > TID: [0] [STRATOS] [2014-12-09 06:15:14,730] ERROR > {org.apache.stratos.cloud.controller.util.CloudControllerUtil} - Class > [org.apache.stratos.cloud.controller.iaases.JcloudsOpenstackIaas] which > represents the iaas of type: [openstack] has failed to instantiate. > java.lang.ClassNotFoundException: > org.apache.stratos.cloud.controller.iaases.JcloudsOpenstackIaas > at > org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) > at > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) > > *The complete error log is in the attached file. error.txt* > > What is the fix? > > -- > *Vishanth Balasubramaniam* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: *+94771737718* > about me: *http://about.me/vishanth * > > -- *Vishanth Balasubramaniam* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94771737718* about me: *http://about.me/vishanth * --089e0112cc6a8e3db20509c32f9a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
solved.=C2=A0sorry for the inconvenience.=C2=A0

On Tue, Dec 9, 2014 at= 12:24 PM, Vishanth Balasubramaniam <vishanthb@wso2.com> wr= ote:
Hi,
=
I was able to successfully deploy the autoscaling policy.
I modified my cloud-controller as follows

=C2=A0<iaasProvider type=3D"openstack" nam= e=3D"openstack specific= details">

=C2=A0 =C2= =A0 <className>org.apache.= stratos.cloud.controller.iaases.JcloudsOpenstackIaas</className>

=C2=A0 =C2=A0 =C2=A0<provider>openstack-nova</provider>

=C2=A0 =C2=A0 =C2=A0&l= t;identity=C2=A0svns:secretAlias=3D"cloud.co= ntroller.openstack.identity">stratos:vishanth</id= entity>

=C2=A0 = =C2=A0 =C2=A0<credential svns:secretAlias=3D"cloud.controller.openstack.credential">vish= anth</credential>=

=C2=A0 =C2=A0 =C2=A0<property name=3D"jcl= ouds.endpoint" value=3D= "h= ttp://192.168.30.66:5000/v2.0" />

=C2=A0 =C2=A0 = =C2=A0<property name<= span style=3D"color:rgb(0,0,0)">=3D"jclouds.openstack-nova.auto= -create-floating-ips" value=3D"false"/><= /span>

=C2=A0 =C2=A0 =C2=A0<= property name=3D"defaultFloatingIpPool" va= lue=3D"external" />

=C2=A0 =C2=A0 =C2=A0<property name=3D= "jclouds.api-version" value=3D"2.0/" /= >=C2=A0

=C2=A0 =C2=A0 = =C2=A0<property name=3D"autoAssignIp" value=3D"false" />

=C2=A0 = =C2=A0 =C2=A0<property name<= /span>=3D"Y" va= lue=3D"y" />

=C2=A0 =C2=A0 =C2=A0<property name=3D"s= ecurityGroups" value=3D"default"= />

=C2=A0 =C2=A0 =C2=A0= <property name= =3D"keyPair" = value=3D"vishanth-key"/>

</iaasProvider>

=


When I deploy the tomcat (file attached)= cartridge with the following command, I am getting the CNF exception
=

curl -X POST -H "Content-Type: application/json" -d @'group= ings/tomcat.json' -k -v -u admin:admin https://192.168.30.66:9443/api/cart= ridges

* Hostname was NOT= found in DNS cache

* =C2=A0 Trying 19= 2.168.30.66...

* Connected to 192= .168.30.66 (192.168.30.66) port 9443 (#0)

* TLS 1.2 connecti= on using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256

* Server certifica= te: localhost

* Server auth usin= g Basic with user 'admin'

> POST /api/car= tridges HTTP/1.1

> Authorization= : Basic YWRtaW46YWRtaW4=3D

> User-Agent: c= url/7.37.1

> Host: 192.168.30.66:9443

> Accept: */*

> Content-Type:= application/json

> Content-Lengt= h: 1173

> Expect: 100-c= ontinue

>=C2=A0

< HTTP/1.1 100 = Continue

< HTTP/1.1 400 = Bad Request

< Date: Tue, 09= Dec 2014 06:15:14 GMT

< Content-Type:= application/json

< Content-Lengt= h: 91

< Connection: c= lose

* Server WSO2 Carb= on Server is not blacklisted

< Server: WSO2 = Carbon Server

<=C2=A0

* Closing connecti= on 0

{"Error"= :{ "errorCode": " 400", "errorMessage": "= ; Exception in deploying the cartridge. "}}



TID: [0] [STRATOS] [2014-12-09 06:15:14,714] =C2=A0I= NFO {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} - =C2=A0Start= ing to deploy a Cartridge [type] tomcat
TID: [0] [STRATOS] [2014-= 12-09 06:15:14,730] ERROR {org.apache.stratos.cloud.controller.util.CloudCo= ntrollerUtil} - =C2=A0Class [org.apache.stratos.cloud.controller.iaases.Jcl= oudsOpenstackIaas] which represents the iaas of type: [openstack] has faile= d to instantiate.
java.lang.ClassNotFoundException: org.apache.st= ratos.cloud.controller.iaases.JcloudsOpenstackIaas
at org.eclipse.osgi.internal.loader.BundleLo= ader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.= findClass(BundleLoader.java:421)

The comp= lete error log is in the attached file. error.txt

<= div>What is the fix?

--
Vishanth Balasubramaniam
Software Engine= er
WSO2 Inc.;=C2=A0http://wso2.com
lean.enterprise.middleware
mobile:
=C2=A0+94771737718



--
Vishanth Balasubramaniam
Software Engineer
WSO2 Inc.;=C2=A0http://wso2.com
lean.enterprise.middleware
mobile:
=C2=A0+94771737718

--089e0112cc6a8e3db20509c32f9a--