Re: Persistence Volume Mapping support

2015-03-20 Thread Lahiru Sandaruwan
On Sat, Mar 21, 2015 at 9:18 AM, Imesh Gunaratne wrote: > Shall we verify whether this works if we use the OpenStack UI to attach > the volume? > Yes Imesh. It works in UI. > > Thanks > > On Fri, Mar 20, 2015 at 10:42 PM, Lahiru Sandaruwan > wrote: > >> Hi Udara, >> >> I tried that option as w

Re: Persistence Volume Mapping support

2015-03-20 Thread Lahiru Sandaruwan
On Sat, Mar 21, 2015 at 9:27 AM, Udara Liyanage wrote: > > > On Fri, Mar 20, 2015 at 10:42 PM, Lahiru Sandaruwan > wrote: > >> Hi Udara, >> >> I tried that option as well. >> >> Issue here is not at volume creation level, but the attachment level. >> Therefore even we didn't give the ID, it gets

Re: [Question] Is the tenant partial search working properly?

2015-03-20 Thread Dinithi De Silva
Hi Imesh/Chamila, Thank you for the explanation. So shall we use the same command (list-tenants) to do this work? Eg: For the command "list-tenants he*" we need to display all the domains which contains "he" in its domain. Thanks. On Sat, Mar 21, 2015 at 9:27 AM, Imesh Gunaratne wrote: > Hi D

Jenkins build is back to normal : Stratos-Master-Commit-Build » Apache Stratos - Autoscaler #346

2015-03-20 Thread Apache Jenkins Server
See

Jenkins build is back to normal : Stratos-Master-Commit-Build #346

2015-03-20 Thread Apache Jenkins Server
See

Build failed in Jenkins: Stratos-Master-Commit-Build » Apache Stratos - Autoscaler #345

2015-03-20 Thread Apache Jenkins Server
See Changes: [imesh] Fixing GET /deploymentPolicies/{deploymentPolicyId} method behaviour when deployment is not found -- [INFO]

Build failed in Jenkins: Stratos-Master-Commit-Build #345

2015-03-20 Thread Apache Jenkins Server
See Changes: [imesh] Fixing GET /deploymentPolicies/{deploymentPolicyId} method behaviour when deployment is not found [imesh] Changing info log to debug in cloud controller service [udara] fixing: Two different status cod

Re: Persistence Volume Mapping support

2015-03-20 Thread Udara Liyanage
On Fri, Mar 20, 2015 at 10:42 PM, Lahiru Sandaruwan wrote: > Hi Udara, > > I tried that option as well. > > Issue here is not at volume creation level, but the attachment level. > Therefore even we didn't give the ID, it gets the ID of created volume > correctly and input to volumeAttach call. My

Re: [Question] Is the tenant partial search working properly?

2015-03-20 Thread Imesh Gunaratne
Hi Dinithi, I see couple of problems here: On Fri, Mar 20, 2015 at 5:33 PM, Dinithi De Silva wrote: > > *Result with search query "he"* > > stratos> list-tenants-by-partial-domain —partialDomain *he* > Tenants found: > +———+—++-+———+ > | tenantDomain | tenantID |

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

2015-03-20 Thread Imesh Gunaratne
Indeed great work Raj and thanks to Shaheed for pointing! On Sat, Mar 21, 2015 at 7:16 AM, Lakmal Warusawithana wrote: > Great work Raj! > > > On Saturday, March 21, 2015, Rajkumar Rajaratnam > wrote: > >> Found couple of issues with n-level-nesting, fixed those and pushed to >> master. Created

Re: Persistence Volume Mapping support

2015-03-20 Thread Imesh Gunaratne
Shall we verify whether this works if we use the OpenStack UI to attach the volume? Thanks On Fri, Mar 20, 2015 at 10:42 PM, Lahiru Sandaruwan wrote: > Hi Udara, > > I tried that option as well. > > Issue here is not at volume creation level, but the attachment level. > Therefore even we didn't

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

2015-03-20 Thread Imesh Gunaratne
+1 yes might not need both tenant id and domain name. Will use domain name. Thanks On Fri, Mar 20, 2015 at 4:56 PM, Dinithi De Silva wrote: > Hi, > > I have tested with the CLI for some of the above you mentioned and found > the fields which are allowed and not allowed to update. > > Not allowe

Re: [Question] Why is 400 returned when a deployment policy is not found?

2015-03-20 Thread Imesh Gunaratne
I have now fixed this and pushed changes to master branch. Please try again. Thanks On Sat, Mar 21, 2015 at 8:46 AM, Imesh Gunaratne wrote: > Thanks Mari for pointing this! Yes it should return 404, I will fix this. > > On Sat, Mar 21, 2015 at 8:22 AM, Mariangela Hills > wrote: > >> Hi Devs, >

Re: [Question] Why is 400 returned when a deployment policy is not found?

2015-03-20 Thread Imesh Gunaratne
Thanks Mari for pointing this! Yes it should return 404, I will fix this. On Sat, Mar 21, 2015 at 8:22 AM, Mariangela Hills wrote: > Hi Devs, > > Is it correct that the HTTP status code 400 is returned when a user > searches for a deployment policy that has not been added [1]? Shouldn't > this b

[Question] Why is 400 returned when a deployment policy is not found?

2015-03-20 Thread Mariangela Hills
Hi Devs, Is it correct that the HTTP status code 400 is returned when a user searches for a deployment policy that has not been added [1]? Shouldn't this be 404? [1] Admin16s-MacBook-Air:samples Admin16$ curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/a

Re: [Improvement] Searching for cartridges with a filter - pass a message in the response message

2015-03-20 Thread Mariangela Hills
+1 your suggestion makes complete sense. I have created JIRA [1], so that this issue can be fixed. [1] https://issues.apache.org/jira/browse/STRATOS-1275 Regards, Mariangela *--* Mariangela Hills Senior Technical Writer *WSO2, Inc.*lean.enterprise.middleware. m: +94 773 500185 w: http://wso2

[jira] [Created] (STRATOS-1275) Wrong HTTP status code returned - GET /cartridges/filter/{filter}

2015-03-20 Thread Mariangela Hills (JIRA)
Mariangela Hills created STRATOS-1275: - Summary: Wrong HTTP status code returned - GET /cartridges/filter/{filter} Key: STRATOS-1275 URL: https://issues.apache.org/jira/browse/STRATOS-1275 Project

[jira] [Created] (STRATOS-1274) Wrong HTTP status code returned - DELETE /cartridges/{cartridgeType}

2015-03-20 Thread Mariangela Hills (JIRA)
Mariangela Hills created STRATOS-1274: - Summary: Wrong HTTP status code returned - DELETE /cartridges/{cartridgeType} Key: STRATOS-1274 URL: https://issues.apache.org/jira/browse/STRATOS-1274 Proj

Re: [Question] Is the tenant partial search working properly?

2015-03-20 Thread Chamila De Alwis
? matches one character and only one [1]. IMO we should follow the unix standard when using wildcard characters. [1] - http://www.linfo.org/wildcard.html On Mar 20, 2015 5:34 PM, "Dinithi De Silva" wrote: > Hi Imesh, > > What Mari has pointed out was something like this. > > *Available tenants*

[jira] [Updated] (STRATOS-1273) Error in Java log message when updating a cartridge

2015-03-20 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariangela Hills updated STRATOS-1273: -- Description: There is a grammar mistake in the java error message [1] that appears wh

Re: [Improvement] Searching for cartridges with a filter - pass a message in the response message

2015-03-20 Thread Chamila De Alwis
Hi, Shouldn't we send a 404 status instead of a 200 since no resources are found with respect to this request? If we do that there would no need for a client to check if value is empty. On Mar 21, 2015 6:32 AM, "Mariangela Hills" wrote: > Hi Devs, > > When searching for cartridges with filters,

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

2015-03-20 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 the cURL command related to POST /deploymentPolicies REST

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

2015-03-20 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 the cURL command related to POST /deploymentPolicies REST

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

2015-03-20 Thread Lakmal Warusawithana
Great work Raj! On Saturday, March 21, 2015, Rajkumar Rajaratnam wrote: > Found couple of issues with n-level-nesting, fixed those and pushed to > master. Created a sample with 5 level nesting and everything works fine. > > > > > Please refer the n-level-nesting sample application > https://gith

[jira] [Created] (STRATOS-1273) Error in Java log message when updating a cartridge

2015-03-20 Thread Mariangela Hills (JIRA)
Mariangela Hills created STRATOS-1273: - Summary: Error in Java log message when updating a cartridge Key: STRATOS-1273 URL: https://issues.apache.org/jira/browse/STRATOS-1273 Project: Stratos

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

2015-03-20 Thread Rajkumar Rajaratnam
Found couple of issues with n-level-nesting, fixed those and pushed to master. Created a sample with 5 level nesting and everything works fine. Please refer the n-level-nesting sample application https://github.com/apache/stratos/tree/master/samples/applications/n-level-nesting for more informa

[Improvement] Searching for cartridges with a filter - pass a message in the response message

2015-03-20 Thread Mariangela Hills
Hi Devs, When searching for cartridges with filters, if there are no search results available for the respective search, a blank response message is returned [1]. This was a bit misleading to me as a user. I feel that it will be good to return a message such as, "Cartridges not found" in the respo

[jira] [Created] (STRATOS-1272) Two different status codes appear when adding a cartridge

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

Re: Persistence Volume Mapping support

2015-03-20 Thread Lahiru Sandaruwan
Hi Udara, I tried that option as well. Issue here is not at volume creation level, but the attachment level. Therefore even we didn't give the ID, it gets the ID of created volume correctly and input to volumeAttach call. My guess is that doesn't pick the correct ID. Thanks. On Fri, Mar 20, 201

Re: Persistence Volume Mapping support

2015-03-20 Thread Udara Liyanage
Hi Lahiru, There is an option to attach an already created volume. You can provide a known volume I'd and check weather it get attached. On 20 Mar 2015 21:49, "Lahiru Sandaruwan" wrote: > Hi, > > I have completed subscribable info support, and now it passes the > persistence information to insta

Re: Persistence Volume Mapping support

2015-03-20 Thread Lahiru Sandaruwan
Hi, I have completed subscribable info support, and now it passes the persistence information to instance creation step correctly. But it failed to attach the volume to the instance after creating a volume successfully. Our code pass the instanceId and volumeId correctly for the volume attaching

Re: New committer and PMC member: Dakshika Jayathilaka

2015-03-20 Thread Jerad Rutnam
Congratulations Dakshika! :) On Sat, Mar 14, 2015 at 8:16 PM, Imesh Gunaratne wrote: > Congratulations Dakshika! Keep up the good work! > > On Fri, Mar 13, 2015 at 9:50 AM, Dakshika Jayathilaka > wrote: > >> Thank you All.. >> >> *Dakshika Jayathilaka* >> Software Engineer >> WSO2, Inc. >> lean

Re: [Discuss] Cartridge definition doesn't need "maxInstanceLimit" property anymore

2015-03-20 Thread Reka Thirunavukkarasu
Sure Shaheed..Will follow on it with Imesh.. Thanks, Reka On Fri, Mar 20, 2015 at 6:09 AM, Shaheedur Haque (shahhaqu) < shahh...@cisco.com> wrote: > Please catchup with Imesh on this; we had some chats on this where > unfortunately you were not around. A common view needs to be reached, and > t

RE: [Discuss] Cartridge definition doesn't need "maxInstanceLimit" property anymore

2015-03-20 Thread Shaheedur Haque (shahhaqu)
Please catchup with Imesh on this; we had some chats on this where unfortunately you were not around. A common view needs to be reached, and then documentation can follow. From: Reka Thirunavukkarasu [mailto:r...@wso2.com] Sent: Thursday, March 19, 2015 6:31 AM To: Shaheedur Haque (shahhaqu) Cc:

Re: [Question] Is the tenant partial search working properly?

2015-03-20 Thread Dinithi De Silva
Hi Imesh, What Mari has pointed out was something like this. *Available tenants* stratos> list-tenants Tenants: +——+—-+-++———+ | Domain | Tenant ID | Email | State | Created Date | +——+—-+-++———+ | tenant.org | 1 | f...@bar.com | Ac

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

2015-03-20 Thread Rajkumar Rajaratnam
I fixed this NPE and pushed to master. Thanks. On Fri, Mar 20, 2015 at 10:25 AM, Imesh Gunaratne wrote: > 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 (sha

Re: Error when updating a cartridge twice

2015-03-20 Thread Dinithi De Silva
Thanks Udara for the quick response. On Fri, Mar 20, 2015 at 4:46 PM, Udara Liyanage wrote: > Hi Diniti, > > Service is removed in your first cartridge remove call. There that is why > it is throwing NPE in the second attempt. This is fixed in > 469adab2857fb195593398ffdeaab44c90f45a0a > > if (t

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

2015-03-20 Thread Dinithi De Silva
Hi, I have tested with the CLI for some of the above you mentioned and found the fields which are allowed and not allowed to update. Not allowed to updateOther fieldsUseruser-nameemail, first-name, last-name, password, profile-name, role-nameTenantdomain-name, tenant-idemail, first-name, last-nam

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

2015-03-20 Thread Rajkumar Rajaratnam
I have fixed it now and pushed to master. Thanks. On Fri, Mar 20, 2015 at 3:46 PM, Imesh Gunaratne wrote: > A good finding Raj! I think Shiro introduced this functionality some time > back. There is no reason to keep this cache in SM. We could move it to > AS/CC. > > Thanks > > On Fri, Mar 20,

Re: Error when updating a cartridge twice

2015-03-20 Thread Udara Liyanage
Hi Diniti, Service is removed in your first cartridge remove call. There that is why it is throwing NPE in the second attempt. This is fixed in 469adab2857fb195593398ffdeaab44c90f45a0a if (topology.getService(cartridge.getType()).getClusters().size() == 0) On Fri, Mar 20, 2015 at 4:26 PM, Dinith

Error when updating a cartridge twice

2015-03-20 Thread Dinithi De Silva
Hi all, I have added mysql cartridge and tried to update it. At the first time it was succeeded. After the second attempt it failed and gave the following error. [2015-03-20 16:19:29,863] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Updating cartridge: [

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

2015-03-20 Thread Lahiru Sandaruwan
Great. You two can co-mentor. Thanks. On Fri, Mar 20, 2015 at 4:20 PM, Dakshika Jayathilaka wrote: > Hi Lahiru, > > Since this is related to UI, i can work as a co-mentor too.. > > Regards, > > *Dakshika Jayathilaka* > Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > >

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

2015-03-20 Thread Dakshika Jayathilaka
Hi Lahiru, Since this is related to UI, i can work as a co-mentor too.. Regards, *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Mar 19, 2015 at 8:43 PM, Lahiru Sandaruwan wrote: > > > On Thu, Mar 19, 2015 at 6:51 PM, Vishanth Balasubramaniam

Re: Stratos 4.1.0 - tracebacks seen when issuing application undeploy/remove

2015-03-20 Thread Imesh Gunaratne
Hi Vanson, Thanks for reporting this problem. According to the logs stratos is trying to remove the same member twice in this flow: TID: [0] [STRATOS] [2015-03-19 19:45:43,952] INFO {org.apache.stratos.messaging.message.processor.application.ApplicationDeletedMessageProcessor} - [Application] c

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

2015-03-20 Thread Imesh Gunaratne
A good finding Raj! I think Shiro introduced this functionality some time back. There is no reason to keep this cache in SM. We could move it to AS/CC. Thanks On Fri, Mar 20, 2015 at 10:49 AM, Rajkumar Rajaratnam wrote: > I had a look at the code. Nested groups are not considered when removing

[jira] [Created] (STRATOS-1271) Two different status codes appear when updating an autoscaling policy

2015-03-20 Thread Mariangela Hills (JIRA)
Mariangela Hills created STRATOS-1271: - Summary: Two different status codes appear when updating an autoscaling policy Key: STRATOS-1271 URL: https://issues.apache.org/jira/browse/STRATOS-1271 Pro