solved. sorry for the inconvenience.

On Tue, Dec 9, 2014 at 12:24 PM, Vishanth Balasubramaniam <
vishan...@wso2.com> wrote:

> Hi,
>
> I was able to successfully deploy the autoscaling policy.
>
> I modified my cloud-controller as follows
>
>  <iaasProvider type="openstack" name="openstack specific details">
>
>     <className>
> org.apache.stratos.cloud.controller.iaases.JcloudsOpenstackIaas
> </className>
>
>      <provider>openstack-nova</provider>
>
>      <identity svns:secretAlias="cloud.controller.openstack.identity">
> stratos:vishanth</identity>
>
>      <credential svns:secretAlias="cloud.controller.openstack.credential">
> vishanth</credential>
>
>      <property name="jclouds.endpoint" value="
> http://192.168.30.66:5000/v2.0"; />
>
>      <property name="jclouds.openstack-nova.auto-create-floating-ips"
> value="false"/>
>
>      <property name="defaultFloatingIpPool" value="external" />
>
>      <property name="jclouds.api-version" value="2.0/" />
>
>      <property name="autoAssignIp" value="false" />
>
>      <property name="Y" value="y" />
>
>      <property name="securityGroups" value="default"/>
>
>      <property name="keyPair" value="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
> @'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 <http://about.me/vishanth>*
>
>


-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*

Reply via email to