Hi

On Fri, Apr 10, 2015 at 9:35 PM, Vanson Lim <[email protected]> wrote:

>  On 4/10/15, 5:23 AM, Reka Thirunavukkarasu wrote:
>
>   Hi Vanson,
>
>  Created  the jira and updated with the fix. Please verify it and let me
> know if you face any issues.
>
> https://issues.apache.org/jira/browse/STRATOS-1332
>
>   Reka,
>
> I've executed my use case of updating an in-use cartridge and verified
> that new instances are spun up with a new image..
>

Thanks for the update.  That's great to hear..

Thanks,
Reka

>
> Thanks for fixing this so quickly.
>


> -Vanson
>
>
>  Thanks,
>  Reka
>
> On Fri, Apr 10, 2015 at 2:35 PM, Reka Thirunavukkarasu <[email protected]>
> wrote:
>
>>    Hi Vanson,
>>
>>  #1 is not an issue rather it is a warning.
>>
>>  #2 is an issue which we will need to fix it.
>>
>>  I'm in the process of testing the fix i did for #2. With that fix, the
>> #1 warning will also go away.
>>
>>  Thanks,
>>  Reka
>>
>>
>> On Fri, Apr 10, 2015 at 11:13 AM, Reka Thirunavukkarasu <[email protected]>
>> wrote:
>>
>>>  Thanks Vanson for reporting this. I will try to reproduce and update
>>> on the behavior of these cases...
>>>
>>>  Thanks,
>>>  Reka
>>>
>>> On Fri, Apr 10, 2015 at 7:17 AM, Vanson Lim <[email protected]> wrote:
>>>
>>>>  Devs,
>>>>
>>>> I found two additional issues trying to update a cartridge using the
>>>> following rest api:
>>>>
>>>>
>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Updating+a+Cartridge+via+REST+API
>>>>
>>>> 1) if there is a application defined and deployed referencing it I see
>>>> the following message:
>>>>
>>>> TID: [0] [STRATOS] [2015-04-09 23:31:49,812]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  Updating cartridge: [cartridge-type] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:31:49,824]  WARN
>>>> {org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder} -
>>>> Subscription already exists. Hence not removing the service:cisco-sample-vm
>>>> from the topology
>>>> TID: [0] [STRATOS] [2015-04-09 23:31:49,824]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  Successfully removed cartridge: [cartridge-type] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:31:49,835]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  Successfully updated cartridge: [cartridge-type] cisco-sample-vm
>>>>
>>>>
>>>> I'd like to be able to update a cartridge to use a different image
>>>> id,   it seems strange that there is a remove and update?   Can someone
>>>> provide more insights on whether the warning is an issue.
>>>>
>>>>
>>>> 2) If I update a cartridge prior to adding and deploying an application
>>>> I see an issue where the service is not properly created.
>>>>
>>>>
>>>> When the cartridge is created the first time, I notice a message,
>>>> "Publishing service created event"
>>>>
>>>> ie:
>>>>
>>>> TID: [0] [STRATOS] [2015-04-09 23:27:03,030]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  Adding cartridge: [cartridge-type] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:27:03,059]  INFO
>>>> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
>>>> -  Publishing service created event: [service-name] cisco-sample-vm
>>>>
>>>>
>>>> After I update the cartridge I noticed that the service is removed, but
>>>> never recreated again.
>>>>
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:12,437]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  Updating cartridge: [cartridge-type] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:12,458]  INFO
>>>> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
>>>> -  Publishing service removed event: [service-name] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:12,474]  INFO
>>>> {org.apache.stratos.messaging.message.processor.topology.ServiceRemovedMessageProcessor}
>>>> -  Service removed: [service] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:12,474]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  Successfully removed cartridge: [cartridge-type] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:12,485]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  Successfully updated cartridge: [cartridge-type] cisco-sample-vm
>>>>
>>>>
>>>> When I subsequently try to  add and deploy an application I see an
>>>> error that the service does not exists,  the rest api returns that it was
>>>> successful but this application can't be undeployed or deleted:
>>>>
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:45,110]  INFO
>>>> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
>>>> Application added successfully: [application-id] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:45,858]  INFO
>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
>>>> deploy application: [application-id] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:45,902] ERROR
>>>> {org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder} -
>>>> Service cisco-sample-vm not found in Topology, unable to create Application
>>>> cluster
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:45,911]  INFO
>>>> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
>>>> -  Publishing application clusters created event: [application-id]
>>>> cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:45,929]  WARN
>>>> {org.apache.stratos.messaging.message.processor.topology.ApplicationClustersCreatedMessageProcessor}
>>>> -  Service does not exist: [service] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:45,929]  WARN
>>>> {org.apache.stratos.messaging.message.processor.topology.ApplicationClustersCreatedMessageProcessor}
>>>> -  Service does not exist: [service] cisco-sample-vm
>>>>
>>>> ...
>>>>
>>>>
>>>> TID: [0] [STRATOS] [2015-04-09 23:33:46,007]  INFO
>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Application
>>>> deployed successfully: [application-id] cisco-sample-vm
>>>> TID: [0] [STRATOS] [2015-04-09 23:35:37,246]  INFO
>>>> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
>>>> Could not find application monitor for the application cisco-sample-vm,
>>>> hence returning
>>>>
>>>> I've included the wso2carbon.log if additional details required.
>>>>
>>>> -Vanson
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>  --
>>>  Reka Thirunavukkarasu
>>> Senior Software Engineer,
>>> WSO2, Inc.:http://wso2.com,
>>>  Mobile: +94776442007
>>>
>>>
>>>
>>
>>
>> --
>>  Reka Thirunavukkarasu
>> Senior Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>>  Mobile: +94776442007
>>
>>
>>
>
>
> --
>  Reka Thirunavukkarasu
> Senior Software Engineer,
> WSO2, Inc.:http://wso2.com,
>  Mobile: +94776442007
>
>
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Reply via email to