Piotr Kliczewski has posted comments on this change. Change subject: migration: set timeout to 10 mins ......................................................................
Patch Set 2: (3 comments) https://gerrit.ovirt.org/#/c/51786/2/lib/vdsm/config.py.in File lib/vdsm/config.py.in: Line 227: 'There are 2 options: ' Line 228: '"m2c" to use the m2crypto module ' Line 229: '"ssl" to use the standard python ssl module'), Line 230: Line 231: ('migration_timeout', '600', > There are quite a few confusing migration parameters - would you please ren Done Line 232: 'Time in seconds defining how long we are going to wait for ' Line 233: 'create migration response.'), Line 234: ]), Line 235: https://gerrit.ovirt.org/#/c/51786/2/lib/vdsm/jsonrpcvdscli.py File lib/vdsm/jsonrpcvdscli.py: Line 109: Line 110: return response.success() Line 111: Line 112: def _get_call_timeout(self, method_name, kwargs): Line 113: if method_name == 'migrationCreate': > I wonder if it makes sense to have a dict with exceptions? Looks interesting will change. Line 114: return config.getint('vars', 'migration_timeout') Line 115: else: Line 116: return kwargs.pop('_transport_timeout', CALL_TIMEOUT) Line 117: Line 110: return response.success() Line 111: Line 112: def _get_call_timeout(self, method_name, kwargs): Line 113: if method_name == 'migrationCreate': Line 114: return config.getint('vars', 'migration_timeout') > So we ignore _transport_timeout, should it be present. Default timeout is 15 secs so far it was good enough. Do you have any suggestion for other rpc calls? Line 115: else: Line 116: return kwargs.pop('_transport_timeout', CALL_TIMEOUT) Line 117: Line 118: def migrationCreate(self, params): -- To view, visit https://gerrit.ovirt.org/51786 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I0c30f972af5d96541a20c168bb27a9b3536ff247 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Piotr Kliczewski <[email protected]> Gerrit-Reviewer: Francesco Romani <[email protected]> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Michal Skrivanek <[email protected]> Gerrit-Reviewer: Michal Skrivanek <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: Piotr Kliczewski <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: gerrit-hooks <[email protected]> Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
