Roy Golan has submitted this change and it was merged.

Change subject: engine-core: poll vds while setupnetwork is running
......................................................................


engine-core: poll vds while setupnetwork is running

Poll the VDSM while setupNetwork verb was called is implemented by 2 
FutureTasks,
one for setupNetworks call to VDSM and one that polls the VDSM.

1. fire a non-blocking setupNetwork task.
2. fire a non-blocking poll task which runs getCaps as long as the setupNetwork 
task is not done.
3. in the main thread, wait with timeout(connectivityTimeuot) for the 
setupNetork task to return.
4. open new TX and update DB only if the setupNetwork returned success.

Change-Id: I340df50a5889cb57b9919079d196f3d950e5272d
---
A 
backend/manager/dbscripts/upgrade/03_01_0400_add_config_values_setupnetworks.sql
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SetupNetworksCommand.java
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
A 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/PollVDSCommand.java
D 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/PollVdsCommand.java
M 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/SetupNetworksVDSCommand.java
M 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsServerConnector.java
7 files changed, 131 insertions(+), 80 deletions(-)

Approvals:
  Roy Golan: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/880
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I340df50a5889cb57b9919079d196f3d950e5272d
Gerrit-PatchSet: 15
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Roy Golan <rgo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to