This is now fixed!
On Sat, May 10, 2014 at 12:25 AM, Melan Nimesh <me...@wso2.com> wrote: > Hi, > > > On Fri, May 9, 2014 at 7:10 PM, Nirmal Fernando <nir...@wso2.com> wrote: > >> Hi Melan, >> >> AFAIK there's a complete tenant message too. Isn't LB listens to that at >> the start-up? >> > Yes, there is a listener for CompleteTenantEvent in LB and > TenantSynzhronizerTask is the publisher for CompleteTenantEvent, I guess > there's an issue with setting cluster-Id for subscription in > TenantSynzhronizerTask's code. I did some small changes [1] to that code > and I will test it > > > [1] > --- > a/source/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/publisher/TenantSynzhronizerTask.java > +++ > b/source/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/publisher/TenantSynzhronizerTask.java > @@ -75,8 +75,9 @@ public class TenantSynzhronizerTask implements Task { > log.debug(String.format("Tenant subscription > found: [tenant-id] %d [tenant-domain] %s [service] %s", > carbonTenant.getId(), > carbonTenant.getDomain(), cartridgeSubscription.getType())); > } > - Subscription subscription = new > Subscription(cartridgeSubscription.getType(), > - new > HashSet<String>(cartridgeSubscription.getCluster().getId())); > + HashSet<String> clusterIds = new > HashSet<String>(); > + > clusterIds.add(String.valueOf(cartridgeSubscription.getCluster().getId())); > + Subscription subscription = new > Subscription(cartridgeSubscription.getType(), clusterIds); > for(SubscriptionDomain subscriptionDomain : > cartridgeSubscription.getSubscriptionDomains()) { > > subscription.addSubscriptionDomain(subscriptionDomain.getDomainName(), > subscriptionDomain.getApplicationContext()); > } > > > >> >> >> On Fri, May 9, 2014 at 12:07 PM, Melan Nimesh <me...@wso2.com> wrote: >> >>> Hi All, >>> >>> I noticed the $subject while testing LB for Private PaaS. Any tenant >>> created and subscribed before restart of LB cannot be access and getting >>> 404 error *"Active application instances not found"*. This works fine >>> if existing session found in request (Such as Admin console requests [1]) >>> and any request pass through via >>> *requestDelegator.findNextMemberFromHostName(). >>> *I noticed cluster is getting null when calling >>> LoadBalancerContext.getInstance().getMultiTenantClusterMap().getCluster(hostName, >>> tenantId) in findNextMemberFromTenantId(). It seems multiTenantClusterMap >>> not get updated after LB restart. Can we use Complete topology to update >>> this? what is the best way this fix this? >>> >>> >>> Thanks, >>> Melan >>> >>> >>> [1] >>> TID: [0] [LB] [2014-05-09 11:29:43,645] DEBUG >>> {org.apache.stratos.load.balancer.endpoint.TenantAwareLoadBalanceEndpoint} >>> - Existing session found: JSESSIONID=A5E345AEA80006C03F60775E83531DA4 >>> TID: [0] [LB] [2014-05-09 11:29:43,645] DEBUG >>> {org.apache.stratos.load.balancer.endpoint.TenantAwareLoadBalanceEndpoint} >>> - Updating axis2 member port >>> TID: [0] [LB] [2014-05-09 11:29:43,646] DEBUG >>> {org.apache.stratos.load.balancer.endpoint.TenantAwareLoadBalanceEndpoint} >>> - Outgoing request port found: 9443 >>> TID: [0] [LB] [2014-05-09 11:29:43,646] DEBUG >>> {org.apache.stratos.load.balancer.endpoint.TenantAwareLoadBalanceEndpoint} >>> - Sending request to endpoint: >>> https://10.144.0.231:9443/t/my.org/carbon/service-mgt/index.jsp?region=region1&item=services_list_menu >>> >>> >>> -- >>> *Melan Nimesh* >>> Software Engineer; >>> WSO2 Inc.; http://wso2.org >>> E-mail: melan AT wso2.com; >>> Mobile: +94 77 631 6759 >>> >>> >> >> >> -- >> >> Thanks & regards, >> Nirmal >> >> Senior Software Engineer- Platform Technologies Team, WSO2 Inc. >> Mobile: +94715779733 >> Blog: http://nirmalfdo.blogspot.com/ >> >> >> > > > -- > *Melan Nimesh* > Software Engineer; > WSO2 Inc.; http://wso2.org > E-mail: melan AT wso2.com; > Mobile: +94 77 631 6759 > > -- *Melan Nimesh* Software Engineer; WSO2 Inc.; http://wso2.org E-mail: melan AT wso2.com; Mobile: +94 77 631 6759
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev