Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Shiroshica Kulatilake
This was actually an effort from many contributers - so should thank everyone ! :) We still have to do some more work to make this perfect 1. Make the responses also consistent - https://issues.apache.org/jira/browse/STRATOS-1028 2. We also should consider what to do with the v4.0 REST api - most

[jira] [Commented] (STRATOS-1030) Console app not working after REST API changes

2014-12-10 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14242224#comment-14242224 ] ASF GitHub Bot commented on STRATOS-1030: - Github user asfgit closed the pull re

[GitHub] stratos pull request: Console App fixed after REST API Changes [ST...

2014-12-10 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/stratos/pull/147 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is ena

Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Lakmal Warusawithana
Yes, this is great, very clear now. Thanks Shiro. On Thu, Dec 11, 2014 at 11:54 AM, Reka Thirunavukkarasu wrote: > Great work Shiro..!!! The paths are very consistent now.. > > Thanks, > Reka > > On Thu, Dec 11, 2014 at 11:37 AM, Mariangela Hills > wrote: > >> I will update the wiki! >> >> Rega

Re: Can not create tenants from REST API

2014-12-10 Thread Dakshika Jayathilaka
Hi Udara, are you using 4.1.0- test branch ? *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Dec 11, 2014 at 12:06 PM, Udara Liyanage wrote: > Hi Dakshika, > > Still the same fate. > > On Thu, Dec 11, 2014 at 12:00 PM, Dakshika Jayathilaka > w

Re: Can not create tenants from REST API

2014-12-10 Thread Udara Liyanage
Hi Dakshika, Still the same fate. On Thu, Dec 11, 2014 at 12:00 PM, Dakshika Jayathilaka wrote: > Try with this > > curl -X POST -H "Content-Type: application/json" -d @request -k -v -u > admin:admin https://localhost:9443/api/v4.1/tenants > > *Dakshika Jayathilaka* > Software Engineer > WSO2,

Re: Cartridge Definition - Category Field

2014-12-10 Thread Dakshika Jayathilaka
Hi Devs, AFAIK latest changes are not added to schema yet. components/org.apache.stratos.rest.endpoint/src/main/webapp/api/WEB-INF/schemas/schema.xsd Its better to add new changes since i'm using same schema on console app JSON validation. *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lea

Re: Can not create tenants from REST API

2014-12-10 Thread Dakshika Jayathilaka
Try with this curl -X POST -H "Content-Type: application/json" -d @request -k -v -u admin:admin https://localhost:9443/api/v4.1/tenants *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Dec 11, 2014 at 11:46 AM, Udara Liyanage wrote: > Hi, > > I

Re: Can not create tenants from REST API

2014-12-10 Thread Udara Liyanage
Hi Manula. { "admin":"admin", "firstname":"Frank", "lastname":"Myers", "adminPassword":"admin123", "tenantDomain":"udara.com", "email":"f...@bar.com", "active":"true" } On Thu, Dec 11, 2014 at 11:56 AM, Manula Chathurika Thantriwatte < manu...@wso2.com>

Re: Can not create tenants from REST API

2014-12-10 Thread Manula Chathurika Thantriwatte
Hi Udara, Can you post the request JSON which you are using here. Thanks ! On Thu, Dec 11, 2014 at 11:46 AM, Udara Liyanage wrote: > Hi, > > I got errors when creating a tenant using REST API. I remember this kind > of error is fixed sometime back. > > curl -X POST -H "Content-Type: applicati

Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Reka Thirunavukkarasu
Great work Shiro..!!! The paths are very consistent now.. Thanks, Reka On Thu, Dec 11, 2014 at 11:37 AM, Mariangela Hills wrote: > I will update the wiki! > > Regards, > Mariangela > > > > > *--* > Mariangela Hills > Senior Technical Writer > > *WSO2, Inc.*lean.enterprise.middleware. > m: +94 7

Re: Cartridge Definition - Category Field

2014-12-10 Thread Shiroshica Kulatilake
Shouldn't this get validated at cxf level itself ? Json against schema Have we decided to disable that level of validation ? On Thu, Dec 11, 2014 at 11:44 AM, Isuru Haththotuwa wrote: > Hi Imesh, > > Is category a new field to define the cartridge (such as framework, > application, etc.)? If it

Re: Console App fixed after REST API Changes

2014-12-10 Thread Shiroshica Kulatilake
On Thu, Dec 11, 2014 at 11:44 AM, Dakshika Jayathilaka wrote: > Shiro, > > Yes, this PR sends to apache:4.1.0-test > Great !! > > > > *Dakshika Jayathilaka* > Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > > On Thu, Dec 11, 2014 at 11:43 AM, Dakshika Jayathilaka > w

Can not create tenants from REST API

2014-12-10 Thread Udara Liyanage
Hi, I got errors when creating a tenant using REST API. I remember this kind of error is fixed sometime back. curl -X POST -H "Content-Type: application/json" -d @request -k -v -u admin:admin https://localhost:9443/api/tenants {"Error":{ "errorCode": " 500", "errorMessage": " Internal server er

Re: Cartridge Definition - Category Field

2014-12-10 Thread Isuru Haththotuwa
Hi Imesh, Is category a new field to define the cartridge (such as framework, application, etc.)? If its mandatory IMHO we should validate it and throw an error if the category is not there without failing with an NPE, wdyt? On Thu, Dec 11, 2014 at 7:10 AM, Imesh Gunaratne wrote: > Hi, > > I'm

Re: Console App fixed after REST API Changes

2014-12-10 Thread Udara Liyanage
Hi, Does it work with tenants also. I find some issues when logged by a tenant is master branch On Thu, Dec 11, 2014 at 11:30 AM, Dakshika Jayathilaka wrote: > Hi Devs, > > I have notice that console app is broken on master branch due to recent > REST API changes. > I fixed those and please be

Re: Console App fixed after REST API Changes

2014-12-10 Thread Dakshika Jayathilaka
Shiro, Yes, this PR sends to apache:4.1.0-test *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Dec 11, 2014 at 11:43 AM, Dakshika Jayathilaka wrote: > Hi Udara, > > Yes, seems ok for me. but i'll do some stress test after adding few things. >

Re: Console App fixed after REST API Changes

2014-12-10 Thread Dakshika Jayathilaka
Hi Udara, Yes, seems ok for me. but i'll do some stress test after adding few things. Regards, *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Dec 11, 2014 at 11:35 AM, Udara Liyanage wrote: > Hi, > > Does it work with tenants also. I find som

Re: Console App fixed after REST API Changes

2014-12-10 Thread Shiroshica Kulatilake
Udara, Dakshika, Please work on the test branch which has the latest changes of everything. https://github.com/apache/stratos/tree/4.1.0-test No direct commits go into master now. On Thu, Dec 11, 2014 at 11:35 AM, Udara Liyanage wrote: > Hi, > > Does it work with tenants also. I find some issu

Cartridge Definition - Category Field

2014-12-10 Thread Imesh Gunaratne
Hi, I'm seeing the below error when deploying a cartridge without having a category defined: [2014-12-11 11:36:39,794] ERROR {org.apache.stratos.rest.endpoint.handlers.CustomThrowableExceptionMapper} - Internal server error java.lang.NullPointerException at org.apache.stratos.rest.endpoint.api.S

Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Mariangela Hills
I will update the wiki! Regards, Mariangela *--* Mariangela Hills Senior Technical Writer *WSO2, Inc.*lean.enterprise.middleware. m: +94 773 500185 w: http://wso2.com On Thu, Dec 11, 2014 at 10:59 AM, Imesh Gunaratne wrote: > Great work Shiro! We might need to upd

Re: [Discuss] Warning message "Member is in the wrong list"

2014-12-10 Thread Imesh Gunaratne
Thanks Raj for the clarification, will fix this. On Tue, Dec 9, 2014 at 6:28 PM, Rajkumar Rajaratnam wrote: > Hi Imesh, > > I guess, it is better have it as an INFO level log. > > Thanks. > > On Tue, Dec 9, 2014 at 6:20 PM, Rajkumar Rajaratnam > wrote: > >> It should be INFO/DEBUG log. >> >> An

Console App fixed after REST API Changes

2014-12-10 Thread Dakshika Jayathilaka
Hi Devs, I have notice that console app is broken on master branch due to recent REST API changes. I fixed those and please be kind enough to merge this with 4.1.0-Test branch. New UXD Workflow hierarchy as follows. - Configurations - Autoscaling Policies - Cartridges - Docker

[jira] [Commented] (STRATOS-1030) Console app not working after REST API changes

2014-12-10 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14242188#comment-14242188 ] ASF GitHub Bot commented on STRATOS-1030: - GitHub user dakshika opened a pull re

[GitHub] stratos pull request: Console App fixed after REST API Changes [ST...

2014-12-10 Thread dakshika
GitHub user dakshika opened a pull request: https://github.com/apache/stratos/pull/147 Console App fixed after REST API Changes [STRATOS-1030] this will include fixes for [STRATOS-1030] You can merge this pull request into a Git repository by running: $ git pull https://github

[jira] [Created] (STRATOS-1030) Console app not working after REST API changes

2014-12-10 Thread Dakshika Jayathilaka (JIRA)
Dakshika Jayathilaka created STRATOS-1030: - Summary: Console app not working after REST API changes Key: STRATOS-1030 URL: https://issues.apache.org/jira/browse/STRATOS-1030 Project: Stratos

[jira] [Created] (STRATOS-1029) REST API issue on getDeploymentPolicies

2014-12-10 Thread Dakshika Jayathilaka (JIRA)
Dakshika Jayathilaka created STRATOS-1029: - Summary: REST API issue on getDeploymentPolicies Key: STRATOS-1029 URL: https://issues.apache.org/jira/browse/STRATOS-1029 Project: Stratos

Re: Do we have to publish CompleteTenantEvent periodically

2014-12-10 Thread Imesh Gunaratne
As I can see this logic has been added in following commit: https://github.com/apache/stratos/commit/9f0c67e72b8ddc460851a11204d011b8c8123ddf#diff-a2dfddfdaa380d6ab46c92cd87d1ee21 We might need to check the reason for this fix. Thanks On Thu, Dec 11, 2014 at 9:30 AM, Udara Liyanage wrote: > Hi

Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Imesh Gunaratne
Great work Shiro! We might need to update the Wiki with this. Thanks On Wed, Dec 10, 2014 at 4:29 PM, Nirmal Fernando wrote: > Great work Shiro on seeing this through !! > > On Wed, Dec 10, 2014 at 3:14 PM, Shiroshica Kulatilake > wrote: > >> Hi, >> >> The Stratos REST api has been modified as

Re: Do we have to publish CompleteTenantEvent periodically

2014-12-10 Thread Udara Liyanage
Hi Chamila, AFAIU LB is needed this event in order to do tenant aware load balancing. However my concern is why Carbon addTenant() is triggered here. On Thu, Dec 11, 2014 at 8:04 AM, Chamila De Alwis wrote: > Hi Udara, > > The usual case for processing CompleteTenantEvent is to use it at first

Event publishing failure

2014-12-10 Thread Lahiru Sandaruwan
Hi, I see following error while Autoscaler trying to send an event. Any idea why it is trying to use thrift? [2014-12-11 08:04:39,918] INFO {org.apache.stratos.autoscaler.applications.topic.ApplicationsEventPublisher} - Publishing Application In-activated event for [application]: app_cartridge_

Re: Do we have to publish CompleteTenantEvent periodically

2014-12-10 Thread Chamila De Alwis
Hi Udara, The usual case for processing CompleteTenantEvent is to use it at first to establish the Topology model and then ignore the consequent ones. The components will update the model based on the other topology events. So as far as I understood, you should have a flag to determine if Complet

Re: [Testing] Stratos 4.1.0 Alpha

2014-12-10 Thread Chamila De Alwis
Hi Martin, I put together a brief guide at [1]. Please note, there are few details missing, however the basic details about the Python cartridge agent are included. Hi Mary, Please find the guide at [1]. I'm still in the process of adding further details, but this can be used as a starting poin

Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Nirmal Fernando
Great work Shiro on seeing this through !! On Wed, Dec 10, 2014 at 3:14 PM, Shiroshica Kulatilake wrote: > Hi, > > The Stratos REST api has been modified as follows. > > *1. Autoscaling Policies* > > Resource pathDescriptionPOST/autoscalingPoliciesCreates a new autoscaling > policyGET/autoscalin

Re: Do we have to publish CompleteTenantEvent periodically

2014-12-10 Thread Udara Liyanage
Hi, Yes it is the culprit. It periodically trigger the add Tenant. TenantMgtUtil.triggerAddTenant(tenantBean); On Wed, Dec 10, 2014 at 3:38 PM, Udara Liyanage wrote: > Hi, > > Just noticed TenantCompletion event is an Stratos event. So this may not > be the culprit for the constraint issue. >

Re: Do we have to publish CompleteTenantEvent periodically

2014-12-10 Thread Udara Liyanage
Hi, Just noticed TenantCompletion event is an Stratos event. So this may not be the culprit for the constraint issue. On Wed, Dec 10, 2014 at 3:30 PM, Udara Liyanage wrote: > Hi, > > TenantSynzhronizerTask periodically publishes CompleteTenantEvent event. > This results in issues when oAuth fea

Do we have to publish CompleteTenantEvent periodically

2014-12-10 Thread Udara Liyanage
Hi, TenantSynzhronizerTask periodically publishes CompleteTenantEvent event. This results in issues when oAuth feature is added since there are tenant listeners. For instance TenantManagementListener fails with database constraint violation. -- Udara Liyanage Software Engineer WSO2, Inc.: http

Re: [Testing] Stratos 4.1.0 Alpha

2014-12-10 Thread Lahiru Sandaruwan
Hi all, Please update the autoscaling policy, We are only using upperLimit now. We will rename it to threshold. { "id": "autoscale_policy_1", "loadThresholds": { "requestsInFlight": { "upperLimit": 80 }, "memoryConsumption": { "upperLimit": 90 }, "loadAverage":

Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Shiroshica Kulatilake
Hi, The Stratos REST api has been modified as follows. *1. Autoscaling Policies* Resource pathDescriptionPOST/autoscalingPoliciesCreates a new autoscaling policyGET/autoscalingPoliciesGets all created autoscaling policiesGET /autoscalingPolicies/{autoscalePolicyId}Gets a specific autoscaling pol

[GitHub] stratos pull request: Removed seperation of create and deploy of d...

2014-12-10 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/stratos/pull/146 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is ena

Re: [Testing] Stratos 4.1.0 Alpha

2014-12-10 Thread Chamila De Alwis
Hi Martin/Reka, We had a hangout on this subject [1] a while back. I discussed the steps to configure the python agent and some troubleshooting tips specific to the python agent. I will however come up with a document soon, with steps in brief, so to spend less time on it reading. In the meanwhile

Re: [Testing] Stratos 4.1.0 Alpha

2014-12-10 Thread Reka Thirunavukkarasu
Hi Martin, We haven't documented the python agent yet. Added Chamila who worked on python agent. @Chamila, Do you have the steps to configure python agent puppet module? Thanks, Reka On Wed, Dec 10, 2014 at 11:43 AM, Martin Eppel (meppel) wrote: > Please see inline > > > > *From:* Reka Thiru

Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Nirmal Fernando
Hi Shiro, Could you please also specify the possible values for filter, criteria etc. ? So, that we could document all of them. On Wed, Dec 10, 2014 at 2:04 PM, Shiroshica Kulatilake wrote: > Hi, > > The following changes have been done in the REST api. > > 1. Cartridges > > Resource pathDescri

Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Shiroshica Kulatilake
Please disregard the previous email - I am writing all that - hit send by accident - sorry ! On Wed, Dec 10, 2014 at 2:06 PM, Nirmal Fernando wrote: > Hi Shiro, > > Could you please also specify the possible values for filter, criteria > etc. ? So, that we could document all of them. > > On Wed,

Re: Use of create instead of deploy within Stratos

2014-12-10 Thread Shiroshica Kulatilake
Hi, The following changes have been done in the REST api. 1. Cartridges Resource pathDescriptionPOST/cartridgesCreate a new cartridge definitionGET /cartridgesGet all available cartridgesGET /cartridges/{filter}?criteria=criteriaGet all available cartridges for a particular filter valueGET/cartr

[GitHub] stratos pull request: Removed seperation of create and deploy of d...

2014-12-10 Thread shirolk
GitHub user shirolk opened a pull request: https://github.com/apache/stratos/pull/146 Removed seperation of create and deploy of deployment policy You can merge this pull request into a Git repository by running: $ git pull https://github.com/shirolk/stratos api-test-bugfix A