Hi Sajith,
    The requested files are attached herewith.
​​​
​​Thanks.

Roshan Deniyage
​
WSO2, Inc: http://wso2.com

Mobile    :  +94 777636406
Twitter    :  *https://twitter.com/roshku <https://twitter.com/roshku>*
LinkedIn :  https://www.linkedin.com/in/roshandeniyage



On Wed, Aug 13, 2014 at 4:28 PM, Sajith Kariyawasam <saj...@wso2.com> wrote:

> Can you please share the partition json, cartridge json and
> cloud-controller.xml (After removing sensitive information) ?
>
>
>
>
> On Wed, Aug 13, 2014 at 4:21 PM, Roshan Deniyage <rosh...@wso2.com> wrote:
>
>> Hi Sajith,
>>     Thanks for the reply. After correcting that issue, I get the
>> following error.
>>
>>
>> -------------------------------------------------------------------------------------------------------------------------
>> Caused by: java.lang.RuntimeException: Cannot spawn an instance
>>
>> atlporg.apache.stratos.autoscaler.rule.RuleTasksDelegator.delegateSpawn(RuleTasksDelegator.java:110)
>>  ... 24 more
>> Caused by: org.apache.stratos.autoscaler.exception.SpawningException:
>> Instance start-up failed. There's no IaaS provided for the partition: P1
>> and for the Cartridge type: tomcat. Only following partitions can be found
>> in this Cartridge: []MemberContext [memberId=null, nodeId=null,
>> clusterId=tomcat.tomcat.domain, cartridgeType=tomcat,
>> privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null,
>> initTime=1407926806364, lbClusterId=null, networkPartitionId=openstack].
>>
>>
>> ----------------------------------------------------------------------------------------------------------------------------
>>
>> The required partition and policies have been created. Any idea on this?
>>
>>
>> Thanks in advance,​​
>>
>>  Roshan Deniyage
>> ​
>> WSO2, Inc: http://wso2.com
>>
>> Mobile    :  +94 777636406
>> Twitter    :  *https://twitter.com/roshku <https://twitter.com/roshku>*
>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>
>>
>>
>> On Wed, Aug 13, 2014 at 3:49 PM, Sajith Kariyawasam <saj...@wso2.com>
>> wrote:
>>
>>> Hi Roshan,
>>>
>>> You have got an  "Invalid key_name provided.", so you seems to have
>>> given a key pair name which is not available in Openstack.
>>> Please check the tomacat cartridge json file, and cross check the
>>> Openstack whether that key pair is available.
>>>
>>> Thanks,
>>> Sajith
>>>
>>>
>>> On Wed, Aug 13, 2014 at 3:32 PM, Roshan Deniyage <rosh...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>     I deployed openstack using devstack with docker support for
>>>> development purposes. That works fine. Then, stratos was deployed with
>>>> openstack as IaaS. stratos also seems good.
>>>> Then, tomcat cartridge was created and when try to subscribe to a
>>>> cartridge, new instance is not starting and the following error is given.
>>>>
>>>>
>>>>
>>>> --------------------------------------------------------------------------------------------------------------------------
>>>> Caused by: org.jclouds.http.HttpResponseException: command: POST
>>>> http://10.0.2.15:8774/v2/ec7497f22d7e46718bd4b90a3d39da05/servers
>>>> HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content:
>>>> [{"badRequest": {"message": "Invalid key_name provided.", "code": 400}}]
>>>>
>>>>
>>>> ---------------------------------------------------------------------------------------------------------------------------
>>>> [STRATOS] [2014-08-13 09:11:11,199] ERROR
>>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -  Failed to start an
>>>> instance. MemberContext [memberId=tomcat.tomcat.domaine8f2991b-3195-4aca
>>>> -a70d-c4df889174f0, nodeId=null, clusterId=tomcat.tomcat.domain,
>>>> cartridgeType=tomcat, privateIpAddress=null, publicIpAddress=null,
>>>> allocatedIpAddress=null, initTime=1407921070771, lbClusterId=null
>>>> , networkPartitionId=openstack] Cause: error running 1 node
>>>> group(tomcattom) location(RegionOne)
>>>> image(2a143fd7-e195-48b2-8771-1adfb1c3e94e) size(2)
>>>> options({inboundPorts=[], autoAssignFloatingIp=f
>>>> alse, keyPairName=demo, userData=[B@209481cf, configDrive=false})
>>>> Execution failures:
>>>>
>>>> -----------------------------------------------------------------------------------------------------------------------------
>>>>
>>>> Anyone has idea, what going on?
>>>>
>>>>
>>>> Roshan Deniyage
>>>> ​
>>>> WSO2, Inc: http://wso2.com
>>>>
>>>> Mobile    :  +94 777636406
>>>> Twitter    :  *https://twitter.com/roshku <https://twitter.com/roshku>*
>>>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>>>
>>>>
>>>
>>>
>>> --
>>> *--*
>>> *Sajith Kariyawasam*
>>> *Mobile: +94772269575 <%2B94772269575>*
>>>
>>
>>
>
>
> --
> *--*
> *Sajith Kariyawasam*
> *Mobile: +94772269575 <%2B94772269575>*
>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- 
  #  Licensed to the Apache Software Foundation (ASF) under one
  #  or more contributor license agreements.  See the NOTICE file
  #  distributed with this work for additional information
  #  regarding copyright ownership.  The ASF licenses this file
  #  to you under the Apache License, Version 2.0 (the
  #  "License"); you may not use this file except in compliance
  #  with the License.  You may obtain a copy of the License at
  #  
  #  http://www.apache.org/licenses/LICENSE-2.0
  #  
  #  Unless required by applicable law or agreed to in writing,
  #  software distributed under the License is distributed on an
  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  #  KIND, either express or implied.  See the License for the
  #  specific language governing permissions and limitations
  #  under the License.
  --> 
<cloudController xmlns:svns="http://org.wso2.securevault/configuration";>

	<svns:secureVault
		provider="org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler" />

    	<dataPublisher enable="false">
		<!-- BAM Server Info - default values are 'admin' and 'admin' 
			 Optional element. -->
		<bamServer>
            		<!-- BAM server URL should be specified in carbon.xml -->
			<adminUserName>admin</adminUserName>
			<adminPassword svns:secretAlias="cloud.controller.bam.server.admin.password">admin</adminPassword>
		</bamServer>
		<!-- Default cron expression is '1 * * * * ? *' meaning 'first second of every minute'.
			 Optional element. -->
		<cron>1 * * * * ? *</cron>
		<!-- Cassandra cluster related info -->
		<!--cassandraInfo>
			<connectionUrl>localhost:9160</connectionUrl>
			<userName>admin</userName>
			<password svns:secretAlias="cloud.controller.cassandra.server.password">admin</password>
		</cassandraInfo-->
	</dataPublisher>

    	<topologySync enable="true">
		<property name="cron" value="1 * * * * ? *" />
	</topologySync>	

        <!-- Specify the properties that are common to an IaaS here. This element 
                is not necessary [0..1]. But you can use this section to avoid specifying 
                same property over and over again. -->
	<iaasProviders>
        	<!--iaasProvider type="ec2" name="ec2 specific details">
                	<className>org.apache.stratos.cloud.controller.iaases.AWSEC2Iaas</className>
                        <provider>aws-ec2</provider>
                        <identity svns:secretAlias="elastic.scaler.openstack.identity">EC2_IDENTITY</identity>
                        <credential svns:secretAlias="elastic.scaler.openstack.credential">EC2_CREDENTIAL</credential>
                        <property name="jclouds.ec2.ami-query" value="owner-id=EC2_OWNER_ID;state=available;image-type=machine"/>
                        <property name="availabilityZone" value="EC2_AVAILABILITY_ZONE"/>
                        <property name="securityGroups" value="EC2_SECURITY_GROUPS"/>
                        <property name="autoAssignIp" value="true" />
                        <property name="keyPair" value="EC2_KEYPAIR"/>
                </iaasProvider-->
                <iaasProvider type="openstack" name="openstack specific details">
            		<className>org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas</className>
                        <provider>openstack-nova</provider>
                        <identity svns:secretAlias="cloud.controller.openstack.identity">demo:demo</identity>
                        <credential svns:secretAlias="cloud.controller.openstack.credential">password</credential>
                        <property name="jclouds.endpoint" value="http://192.168.57.30:5000/v2.0"; />
            		<property name="jclouds.openstack-nova.auto-create-floating-ips" value="false"/>
                        <property name="jclouds.api-version" value="2.0/" />
                        <property name="X" value="x" />
                        <property name="Y" value="y" />
        	</iaasProvider>
                <!--iaasProvider type="vcloud" name="VMware vCloud specific details">
                        <className>org.apache.stratos.cloud.controller.iaases.VCloudIaas</className>
                        <provider>vcloud</provider>
                        <identity svns:secretAlias="cloud.controller.vcloud.identity">VCLOUD_IDENTITY</identity>
                        <credential svns:secretAlias="cloud.controller.vcloud.credential">VCLOUD_CREDENTIAL</credential>
                        <property name="jclouds.endpoint" value="VCLOUD_ENDPOINT" />
                        <property name="jclouds.vcloud.version.schema" value="1.5" />
                        <property name="jclouds.api-version" value="1.5" />
			<property name="autoAssignIp" value="true" />
                        <property name="X" value="x" />
                        <property name="Y" value="y" />
                </iaasProvider-->
        </iaasProviders>
</cloudController>

Attachment: tomcat.json
Description: application/json

Attachment: partition.json
Description: application/json

Reply via email to