stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roshan Deniyage <rosh...@wso2.com>
Subject Re: Cartridge Creation Issue
Date Wed, 13 Aug 2014 12:47:11 GMT
Hi Rajkumar,
    That error was figured out and thanks for the help. The other issue is
I'm getting the following error when I try to access the tomcat instance
using the instance "access urls" described in the cartridge details. For
example "http://tomcat.stratos.org:9290/".

----------------------------------------------------------------------------------------------------------------------------
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=1407933684739, lbClusterId=null, networkPartitionId=openstack].

---------------------------------------------------------------------------------------------------------------------------

Any help would be appreciated. Thanks,

Roshan Deniyage
Associate Technical Lead
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 5:04 PM, Rajkumar Rajaratnam <rajkumarr@wso2.com>
wrote:

> Hi,
>
> I did face the same problem. Even if we specify key_name and
> security_group, it will not be copied to cloud-controller xml (cloud
> controller xml does not have these properties for OpenStack iaas type).
>
> Workaround is to pass the key_name and security_group when do the
> deployment. I did it like below,
>
> {
>   "type": "postgresql",
>   "provider": "data",
>   "host": "stratos.com",
>   "displayName": "postgresql",
>   "description": "postgresql Cartridge",
>   "version": "7",
>   "multiTenant": "false",
>   "portMapping": [
>     {
>       "protocol": "http",
>       "port": "5432",
>       "proxyPort": "80"
>     }
>   ],
>   "deployment": {},
>   "iaasProvider": [
>     {
>       "type": "openstack",
>       "imageId": "RegionOne/f2ddf72a-4e76-4893-a9fa-e5f4352f1a86",
>       "property": [
>         {
>           "name": "instanceType",
>           "value": "RegionOne/3"
>         },
> {
>           "name": "keyPair",
>           "value": "raj-openstack"
>         },
> {
>           "name": "securityGroups",
>           "value": "all-open"
>         }
>       ]
>     }
>   ]
> }
>
>
>
>
> On Wed, Aug 13, 2014 at 4:46 PM, Roshan Deniyage <roshand@wso2.com> wrote:
>
>> 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 <sajith@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 <roshand@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 <sajith@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 <roshand@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>*
>>>
>>
>>
>
>
> --
> Rajkumar Rajaratnam
> Software Engineer | WSO2, Inc.
>  Mobile +94777568639 | +94783498120
>

Mime
View raw message