Francesco Romani has posted comments on this change. Change subject: migration: set timeout to 10 mins ......................................................................
Patch Set 2: (2 comments) looks good, a couple of questions and suggestions inside 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? like self._timeouts = { 'migrationCreate': config.getint('vars', 'migration_timeout'), } probably will make sense if we have more exception to the general rule 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. I guess this is OK, right? Partially related: should we use the larget timeout if we have a choice? (thinking mostly about line 116 below) 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: Michal Skrivanek <[email protected]> Gerrit-Reviewer: Oved Ourfali <[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
