Mark Wu has uploaded a new change for review. Change subject: Use 'yum clean expire-cache' instead of 'yum clean all' ......................................................................
Use 'yum clean expire-cache' instead of 'yum clean all' It's observed that cleaning all yum caches could cause a ssh timeout during host installation. 'yum clean expire-cache' is much more light weight and 'yum clean all'. If the cache is still valid, nothing significant will be deleted. This idea is taken from Greg Padgett. Change-Id: I1019690e4a27caeff923655f9562892ce7f909af Signed-off-by: Mark Wu <[email protected]> --- M vdsm_reg/deployUtil.py.in 1 file changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/06/8206/1 diff --git a/vdsm_reg/deployUtil.py.in b/vdsm_reg/deployUtil.py.in index 9cdc871..4557394 100644 --- a/vdsm_reg/deployUtil.py.in +++ b/vdsm_reg/deployUtil.py.in @@ -1077,10 +1077,11 @@ def yumCleanCache(): """ - Clean yum's current cache. + Make sure that yum cache is valid. This function makes yum revalidate + the cache for each repo next time it is used. """ fReturn = False - out, err, ret = _logExec([EX_YUM, "clean", "all"] ) + out, err, ret = _logExec([EX_YUM, "clean", "expire-cache"] ) if not ret: fReturn = True -- To view, visit http://gerrit.ovirt.org/8206 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1019690e4a27caeff923655f9562892ce7f909af Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
