[DISCUSS][ASK] Should agent wait for pending tasks on (mgmt server) disconnection?

2018-05-11 Thread Rohit Yadav
All,


Historically, when the agent (kvm, ssvm, cpvm) is disconnected from the 
management server (say due to mgmt server restart etc), the reconnection logic 
waits for any pending tasks/commands to complete before reconnection attempts 
are made. I tried to search git history but could not find a reason, can anyone 
share why we may need this?


Based on the reported issue:

https://github.com/apache/cloudstack/issues/2633


I've a working patch which removes this limitation:

https://github.com/apache/cloudstack/pull/2638


>From testing with various combinations of tasks, I found that when that 
>happens even if the pending task succeeds it fails to send an Answer to the 
>mgmt server, therefore from the control plane's perspective that task is still 
>pending/on-going.


When the mgmt server comes back online, and the agent finally reconnects 
(pending on how long the pending task took) the executed operation is still 
pending in mgmt server's view and may sometimes require manual cleanups in 
database. By removing the limitation in above PR, at least the agent reconnects 
faster while of the failure/fault behaviours remain the same. A bigger design 
fix would be to make management server asynchronous of agent side 
answer/response handling.


- Rohit





rohit.ya...@shapeblue.comĀ 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
  
 



REMINDER: Apache EU Roadshow 2018 schedule announced!

2018-05-11 Thread sharan

Hello Apache Supporters and Enthusiasts

This is a reminder that the schedule for the Apache EU Roadshow 2018 in 
Berlin has been announced.


http://apachecon.com/euroadshow18/schedule.html

Please note that we will not be running an ApacheCon in Europe this year 
which means that this Apache EU Roadshow will be the main Apache event 
in Europe for 2018.


The Apache EU Roadshow tracks take place on the 13th and 14th June 2018, 
and will feature 28 sessions across the following themes; Apache Tomcat, 
IoT , Cloud Technologies, Microservices and Apache Httpd Server.


Please note that the Apache EU Roadshow is co-located with FOSS 
Backstage and their schedule (https://foss-backstage.de/sessions) 
includes many Apache related sessions such as Incubator, Apache Way, 
Open Source Governance, Legal, Trademarks as well as a full range 
community related presentations and panel discussions.


One single registration gives you access to both events - the Apache EU 
Roadshow and FOSS Backstage.


Registration includes catering (breakfast & lunch both days) and also an 
attendee evening event. And if you want to have a project meet-up, hack 
or simply spend time and relax in our on-site Apache Lounge between 
sessions, then you are more than welcome.


We look forward to seeing you in Berlin!

Thanks
Sharan Foga, VP Apache Community Development

PLEASE NOTE: You are receiving this message because you are subscribed 
to a user@ or dev@ list of one or more Apache Software Foundation projects.