stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmal Fernando <nirmal070...@gmail.com>
Subject Re: Assign same IP to both PHP and LB instances in Stratos 4.0.0 M5
Date Wed, 15 Jan 2014 07:50:33 GMT
Hi Dinesh,

Thanks for reporting this. I think this issue is due to the concurrent
allocation of IPs. So, as a fix what we could do is, make IP allocation,
synchronous i.e. you need to acquire a lock before starting to allocate
IPs. Would you be able to send a pull request with the proposed fix?


On Wed, Jan 15, 2014 at 1:08 PM, Dinesh Bandara <dineshb@wso2.com> wrote:

> Hi,
>
> I have seen the following log in cloud controller while subscribing to php
>
> [2014-01-15 12:52:07,892]  INFO
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
> Received an instance spawn request : MemberContext [memberId=null,
> nodeId=null, clusterId=testphp.dinesh.lk.php.domain, cartridgeType=null,
> privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null,
> initTime=1389770527860, lbClusterId=lb1834916144.dinesh.lk.lb.domain,
> networkPartitionId=openstack]
> [2014-01-15 12:52:07,935]  INFO
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
> Instance is successfully starting up. MemberContext
> [memberId=lb1834916144.dinesh.lk.lb.domainc46f75e2-ba08-438d-a19d-c2d7376030d0,
> nodeId=RegionOne/92372a98-5ff4-43e6-9fd1-50f84ea1cc32,
> clusterId=lb1834916144.dinesh.lk.lb.domain, cartridgeType=lb,
> privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null,
> initTime=1389770527352, lbClusterId=null, networkPartitionId=openstack]
> [2014-01-15 12:52:08,580]  INFO
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
> Instance is successfully starting up. MemberContext
> [memberId=testphp.dinesh.lk.php.domaina62e9ffa-921d-4b40-99d4-17f38c4ba093,
> nodeId=RegionOne/4708a54a-1f80-44ff-8483-c156c6bd20cb,
> clusterId=testphp.dinesh.lk.php.domain, cartridgeType=php,
> privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null,
> initTime=1389770527860, lbClusterId=lb1834916144.dinesh.lk.lb.domain,
> networkPartitionId=openstack]
> [2014-01-15 12:52:15,572]  INFO
> {org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas} -  *Successfully
> associated an IP address 192.168.18.131 for node with id:
> RegionOne/92372a98-5ff4-43e6-9fd1-50f84ea1cc32*
> [2014-01-15 12:52:15,572]  INFO
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
> Allocated an ip address: MemberContext
> [memberId=lb1834916144.dinesh.lk.lb.domainc46f75e2-ba08-438d-a19d-c2d7376030d0,
> nodeId=RegionOne/92372a98-5ff4-43e6-9fd1-50f84ea1cc32,
> clusterId=lb1834916144.dinesh.lk.lb.domain, cartridgeType=lb,
> privateIpAddress=null, publicIpAddress=null,
> allocatedIpAddress=192.168.18.131, initTime=1389770527352,
> lbClusterId=null, networkPartitionId=openstack]
> [2014-01-15 12:52:15,612]  INFO
> {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher} -
> Publishing instance spawned event: [service] lb [cluster]
> lb1834916144.dinesh.lk.lb.domain [network-partition] openstack [partition]
> P1 [member]
> lb1834916144.dinesh.lk.lb.domainc46f75e2-ba08-438d-a19d-c2d7376030d0
> [lb-cluster-id] null
> [2014-01-15 12:52:21,316]  INFO
> {org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas} -  *Successfully
> associated an IP address 192.168.18.131 for node with id:
> RegionOne/4708a54a-1f80-44ff-8483-c156c6bd20cb*
> [2014-01-15 12:52:21,317]  INFO
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
> Allocated an ip address: MemberContext
> [memberId=testphp.dinesh.lk.php.domaina62e9ffa-921d-4b40-99d4-17f38c4ba093,
> nodeId=RegionOne/4708a54a-1f80-44ff-8483-c156c6bd20cb,
> clusterId=testphp.dinesh.lk.php.domain, cartridgeType=php,
> privateIpAddress=null, publicIpAddress=null,
> allocatedIpAddress=192.168.18.131, initTime=1389770527860,
> lbClusterId=lb1834916144.dinesh.lk.lb.domain, networkPartitionId=openstack]
> [2014-01-15 12:52:21,365]  INFO
> {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher} -
> Publishing instance spawned event: [service] php [cluster]
> testphp.dinesh.lk.php.domain [network-partition] openstack [partition] P1
> [member] testphp.dinesh.lk.php.domaina62e9ffa-921d-4b40-99d4-17f38c4ba093
> [lb-cluster-id] lb1834916144.dinesh.lk.lb.domain
> [2014-01-15 12:57:17,944]  INFO
> {org.apache.stratos.cloud.controller.topic.instance.status.InstanceStatusEventMessageDelegator}
> -  Instance status event message received from queue:
> org.apache.stratos.messaging.event.instance.status.InstanceStartedEvent
>
> As a result of that one instance will not be assigned an IP and it wont be
> accessible.
> Is this possible? WDYT?
>
> --
> *Dinesh Bandara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>


-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Mime
View raw message