[jira] [Commented] (STRATOS-1269) Adding a User -UI

2015-03-19 Thread Dakshika Jayathilaka (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14370830#comment-14370830 ] Dakshika Jayathilaka commented on STRATOS-1269: --- I'll have a look, thanks

Re: [Question] Verifying username/password validations for adding a User/Tenant

2015-03-19 Thread Shavindri Dissanayake
Thank you for the quick response and for clarifying the above Vishanth! Thanks & Regards Shavindri Dissanayake Technical Writer LinkedIn Profile Mob: 0779966739 WSO2 Inc. lean.enterprise.middleware On Fri, Mar 20

Re: Trouble deleting Cartridge Groups which have one level of nesting

2015-03-19 Thread Rajkumar Rajaratnam
I had a look at the code. Nested groups are not considered when removing removing application from the above map. It only considers the outer most group. That's why It is working fine for groups without any nesting. I will fix it. Thanks. On Fri, Mar 20, 2015 at 10:33 AM, Rajkumar Rajaratnam wro

[jira] [Commented] (STRATOS-1269) Adding a User -UI

2015-03-19 Thread Vishanth (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14370746#comment-14370746 ] Vishanth commented on STRATOS-1269: --- It is because the UsernameRegEx has specified min

[jira] [Updated] (STRATOS-1268) Two different status codes appear when updating a deployment policy

2015-03-19 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariangela Hills updated STRATOS-1268: -- Priority: Major (was: Minor) > Two different status codes appear when updating a depl

[jira] [Updated] (STRATOS-1263) Wrong HTTP status code returned - DELETE /users/{userName}

2015-03-19 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariangela Hills updated STRATOS-1263: -- Summary: Wrong HTTP status code returned - DELETE /users/{userName} (was: Wrong HTTP

[jira] [Created] (STRATOS-1270) Wrong HTTP output - DELETE /deploymentPolicies/{deploymentPolicyId}

2015-03-19 Thread Mariangela Hills (JIRA)
Mariangela Hills created STRATOS-1270: - Summary: Wrong HTTP output - DELETE /deploymentPolicies/{deploymentPolicyId} Key: STRATOS-1270 URL: https://issues.apache.org/jira/browse/STRATOS-1270 Proje

Re: Trouble deleting Cartridge Groups which have one level of nesting

2015-03-19 Thread Rajkumar Rajaratnam
Hi, It is a bug, I know the reason. SM keeps track of cartridge groups and the applications which are using them. Purpose is to prevent removing cartridge group if it is used in any applications. SM have a *cartridgeGroupToApplicationsMap* (Map>). When an application is added, SM adds all the car

Re: [Question] Verifying username/password validations for adding a User/Tenant

2015-03-19 Thread Vishanth Balasubramaniam
Hi Shavindri, Thanks for pointing this out. This is because the length of the username is defined at the UsernameJavaRegEx in user-mgt.xml [1], where as default we have specified minimum of 3 characters and upto 30 [2]. I think we need to validate the username in the UI according the RegEx provid

Re: Trouble creating Applications with more than two levels of nesting

2015-03-19 Thread Imesh Gunaratne
Hi Shaheed, A great finding! It looks like a functional issue to me, we will review this and get back to you soon! Thanks On Fri, Mar 20, 2015 at 4:25 AM, Shaheedur Haque (shahhaqu) < shahh...@cisco.com> wrote: > Hi, > > > > I can happily create Applications with just one Cartridge, or one lev

Re: Trouble with Cartridge Groups

2015-03-19 Thread Imesh Gunaratne
Hi Shaheed, Yes, this is a known issue which we discussed earlier. Thanks Martin for the fix! We will go through it and get back to you soon. Thanks On Fri, Mar 20, 2015 at 4:18 AM, Martin Eppel (meppel) wrote: > Hi Devs, > > > > I added a fix for this (commit 7b591d37ceb18692da7782ae53c9a644

Re: Trouble deleting Cartridge Groups which have one level of nesting

2015-03-19 Thread Imesh Gunaratne
Hi Shaheed, The following error could be raised if there is any application or cartridge group that refers the cartridge group we are trying to delete: TID: [0] [STRATOS] [2015-03-19 21:17:39,959] ERROR {org.apache.stratos.rest. endpoint.api.StratosApiV41Utils} - Cannot remove cartridge group: [

[Question] Verifying username/password validations for adding a User/Tenant

2015-03-19 Thread Shavindri Dissanayake
Hi Devs, When adding a User, is it validated so that the username is at-least be 4 characters long? Secondly, the password is validated so that its at-least 6 characters. In this does the password have to have any special characters (eg: including one uppercase letter, one special character and

ApacheCon North America 2015 in Austin

2015-03-19 Thread Lakmal Warusawithana
Dear Apache Stratos enthusiast, In just a few weeks, we'll be holding ApacheCon in Austin, Texas, and we'd love to have you in attendance. You can save $300 on admission by registering NOW, since the early bird price ends on the 21st. Register at http://s.apache.org/acna2015-reg ApacheCon this y

Trouble creating Applications with more than two levels of nesting

2015-03-19 Thread Shaheedur Haque (shahhaqu)
Hi, I can happily create Applications with just one Cartridge, or one level of nested Group or two levels of nested Group. But the 3rd fails like this: TID: [0] [STRATOS] [2015-03-19 22:43:53,248] INFO {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} - Cartridge group succ

RE: Trouble with Cartridge Groups

2015-03-19 Thread Martin Eppel (meppel)
Hi Devs, I added a fix for this (commit 7b591d37ceb18692da7782ae53c9a6096ef0 - adding the exception message to the returned RestAPIException), please review it, Thanks Martin From: Shaheedur Haque (shahhaqu) Sent: Thursday, March 19, 2015 1:19 PM To: dev@stratos.apache.org Subject: Troub

Trouble deleting Cartridge Groups which have one level of nesting

2015-03-19 Thread Shaheedur Haque (shahhaqu)
Hi, I am having trouble deleting *some* Cartridge Groups. For example in this sequence, notice how even after the referencing Application and deployment are deleted, the Cartridge Group cannot be deleted: $ ./bin/orchestration subscription setup --admin subscription/t.json INFO: Service Group a

Trouble with Cartridge Groups

2015-03-19 Thread Shaheedur Haque (shahhaqu)
Hi, When I have a well-formed Cartridge Group then everything works nicely. However, if I accidentally specify a cartridge name that does not exist, then the attempt to create the Cartridge group correctly fails with an eception, but the exception message does not bother to say *which* cartridg

Re: [Stratos] Increase the heap memory size allocated

2015-03-19 Thread Vishanth Balasubramaniam
Hi Pranavan, You can find it in our documentation [1], which has clearly mentioned how to set the maven opts. [1] - https://cwiki.apache.org/confluence/display/STRATOS/Setting+Up+a+Development+Environment Thank you, Vishanth On Thu, Mar 19, 2015 at 9:35 PM, Pranavan Theivendiram < pranavan...@c

Re: [Stratos] Increase the heap memory size allocated

2015-03-19 Thread Pranavan Theivendiram
Hi All, Thanks All. I have resolved the problem. *T. Pranavan* *BSc Eng Undergraduate| Department of Computer Science & Engineering ,University of Moratuwa* *Intern Software Engineer**| WSO2 Lanka (Pvt) Ltd.* *LinkedIn|* *Mobile| *0775136836 On 19 March 2015 at 21:30, Udara Liyanage wrote: >

Re: [Stratos] Increase the heap memory size allocated

2015-03-19 Thread Udara Liyanage
Hi, Please refer to this discussion [1]. [1] http://stackoverflow.com/questions/1565388/increase-heap-size-in-java

Re: [Stratos] Increase the heap memory size allocated

2015-03-19 Thread Isuru Perera
Hi, Please edit the Stratos startup script in "bin" directory. ( stratos.sh/stratos.bat). You can edit the -Xmx option. See: https://docs.oracle.com/javase/7/docs/technotes/tools/solaris/java.html#BGBGEDBG On Thu, Mar 19, 2015 at 9:08 PM, Pranavan Theivendiram < pranavan...@cse.mrt.ac.lk> wrote

[Stratos] Increase the heap memory size allocated

2015-03-19 Thread Pranavan Theivendiram
Hi All, Please Help me on *$subject*. *T. Pranavan* *BSc Eng Undergraduate| Department of Computer Science & Engineering ,University of Moratuwa* *Intern Software Engineer**| WSO2 Lanka (Pvt) Ltd.* *Mobile| *0775136836

Re: [Gsoc][proposal] Showing health statistics in GUI

2015-03-19 Thread Lahiru Sandaruwan
On Thu, Mar 19, 2015 at 6:51 PM, Vishanth Balasubramaniam < vishan...@wso2.com> wrote: > Hi Lahiru, > > The deliverable components are both REST API and UI, right? If so, it is > better we add the REST API module also in the components section [1], > otherwise it could be misunderstood. > +1 > >

Re: No ability to list instances in Stratos 4.1.0?

2015-03-19 Thread Imesh Gunaratne
Hi Udara, A good point! Yes we have included all the elements in the application hierarchy in the application runtime API method response. However I still believe it would be better to have a separate API resource to query the clusters. Thanks On Thu, Mar 19, 2015 at 4:46 PM, Udara Liyanage wr

Re: [Gsoc][proposal] Showing health statistics in GUI

2015-03-19 Thread Vishanth Balasubramaniam
Hi Lahiru, The deliverable components are both REST API and UI, right? If so, it is better we add the REST API module also in the components section [1], otherwise it could be misunderstood. Btw this is a really interesting idea/feature! It will be nice to use some data driven documents like Cha

Re: [Question] Is is correct for two different status codes appear when adding a tenant?

2015-03-19 Thread Vishanth Balasubramaniam
Hi Devs, IMO I think it is ok to have the statusCode in the success response. And +1 for using "statusMessage" instead of "successMessage". Regards, Vishanth On Thu, Mar 19, 2015 at 12:42 AM, Imesh Gunaratne wrote: > Hi Devs, > > I'm -1 to following response message format: > > {"statusCode":*

[jira] [Commented] (STRATOS-1269) Adding a User -UI

2015-03-19 Thread Shavindri Dissanayake (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368957#comment-14368957 ] Shavindri Dissanayake commented on STRATOS-1269: A user can't be added i

Refining cartridge classes in Cloud Controller

2015-03-19 Thread Vishanth Balasubramaniam
Hi Devs, I was working on refining the cartridge classes in cloud controller. The plan is to merge CartridgeConfig and CartridgeInfo classes into Cartridge class in the cloud controller. Since we cannot use Java Collection or complex data types when returning data from Axis2 POJO Web Service Obje

Re: No ability to list instances in Stratos 4.1.0?

2015-03-19 Thread Udara Liyanage
Hi Imesh, I just tried Application/runtime . There all the members are listed. curl -X GET -H "Content-Type: application/json" -k -u admin:admin https://localhost:9443/api/applications/single-cartridge-app/runtime | python -m json.tool % Total% Received % Xferd Average Speed TimeTim

Re: Clarification for "ApplicationContext", "Application", "ClusterDataHolder", and "ClusterContext"

2015-03-19 Thread Isuru Haththotuwa
Hi Lahiru, On Thu, Mar 19, 2015 at 3:30 PM, Lahiru Sandaruwan wrote: > Hi devs, > > Looks like bit difficult to understand the purposes of following classes, > > "ApplicationContext" and "Application" > ApplicationContext is a data holder which sends the relevant details from SM side to AS side

[jira] [Created] (STRATOS-1268) Two different status codes appear when updating a deployment policy

2015-03-19 Thread Mariangela Hills (JIRA)
Mariangela Hills created STRATOS-1268: - Summary: Two different status codes appear when updating a deployment policy Key: STRATOS-1268 URL: https://issues.apache.org/jira/browse/STRATOS-1268 Proje

[jira] [Updated] (STRATOS-1269) Adding a User -UI

2015-03-19 Thread Shavindri Dissanayake (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shavindri Dissanayake updated STRATOS-1269: --- Attachment: Error note.png > Adding a User -UI > - > >

Clarification for "ApplicationContext", "Application", "ClusterDataHolder", and "ClusterContext"

2015-03-19 Thread Lahiru Sandaruwan
Hi devs, Looks like bit difficult to understand the purposes of following classes, "ApplicationContext" and "Application" "ClusterDataHolder" and "ClusterContext"/"ClusterMonitor". Can anyone help? Thanks. -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engine

[jira] [Created] (STRATOS-1269) Adding a User -UI

2015-03-19 Thread Shavindri Dissanayake (JIRA)
Shavindri Dissanayake created STRATOS-1269: -- Summary: Adding a User -UI Key: STRATOS-1269 URL: https://issues.apache.org/jira/browse/STRATOS-1269 Project: Stratos Issue Type: Bug

[jira] [Updated] (STRATOS-1268) Two different status codes appear when updating a deployment policy

2015-03-19 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariangela Hills updated STRATOS-1268: -- Description: When executing POST /deploymentPolicies two different status codes (201 a

[Question] What are the properties that can not be updated?

2015-03-19 Thread Mariangela Hills
Hi Devs, When documenting how to update the following via REST API, UI and CLI, I think that it will be good if we mention as to what properties can not be updated, so that the user will know exactly what properties they can change in the updating process: - User - Tenant - Network partition - De

Re: [Doc] Article series on the Cartridge Agent

2015-03-19 Thread Vishanth Balasubramaniam
Great article Chamila, it is written in a simple and understandable manner. Looking forward for more articles especially on the PCA Plugins. Regards, Vishanth On Wed, Mar 18, 2015 at 2:44 AM, Imesh Gunaratne wrote: > +1 Great stuff! > > On Tue, Mar 17, 2015 at 10:27 AM, Chamila De Alwis > wrot

[jira] [Commented] (STRATOS-1262) Property for tenant username is not meaningful

2015-03-19 Thread Udara Liyanage (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368740#comment-14368740 ] Udara Liyanage commented on STRATOS-1262: - Hi Mari, How about adminUserName ?

[jira] [Commented] (STRATOS-1262) Property for tenant username is not meaningful

2015-03-19 Thread Udara Liyanage (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368741#comment-14368741 ] Udara Liyanage commented on STRATOS-1262: - Hi Mari, How about adminUserName ?

Re: [jira] [Commented] (STRATOS-1262) Property for tenant username is not meaningful

2015-03-19 Thread Udara Liyanage
Hi Mari, How about adminUserName ? On Thu, Mar 19, 2015 at 2:27 PM, Mariangela Hills (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/STRATOS-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368714#comment-14368714 > ] > > Mariangela H

[jira] [Commented] (STRATOS-1262) Property for tenant username is not meaningful

2015-03-19 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368714#comment-14368714 ] Mariangela Hills commented on STRATOS-1262: --- Imesh, suggested that we can chan

Re: [Code Review] Python Cartridge Agent Plugins

2015-03-19 Thread Vishanth Balasubramaniam
[Code Review] Python Cartridge Agent Plugins Date: 19/03/2015 Attendees: Chamila de Silva Udara Liyanage Anuruddha Liyanarachchi Dinithi De Silva Vishanth Balasubramaniam Lahiru Sandaruwan Sajith Kariyawasam Isuru Haththotuwa Notes: - Discussion on the difference between extensions and plug

[jira] [Updated] (STRATOS-1260) Two different status codes appear when adding a user

2015-03-19 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariangela Hills updated STRATOS-1260: -- Assignee: Dinithi De SIlva (was: Udara Liyanage) > Two different status codes appear

[jira] [Created] (STRATOS-1267) Two different status codes appear when adding a deployment policy

2015-03-19 Thread Mariangela Hills (JIRA)
Mariangela Hills created STRATOS-1267: - Summary: Two different status codes appear when adding a deployment policy Key: STRATOS-1267 URL: https://issues.apache.org/jira/browse/STRATOS-1267 Project

[jira] [Updated] (STRATOS-1267) Two different status codes appear when adding a deployment policy

2015-03-19 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariangela Hills updated STRATOS-1267: -- Description: When executing POST /deploymentPolicies two different status codes (201 a

[jira] [Updated] (STRATOS-1266) Two different status codes appear when adding a network partition

2015-03-19 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariangela Hills updated STRATOS-1266: -- Assignee: Dinithi De SIlva (was: Udara Liyanage) > Two different status codes appear

Re: [Code Review] Python Cartridge Agent Plugins

2015-03-19 Thread Chamila De Alwis
Review Notes: Adjust IDE settings to get rid of Python library not found errors Refactor PCA modules to get rid of unwanted modularization Suggested improvements == Make plugins execute in parallel or provide a definitive way to specify plugin execution order Regards, Chami