From f3b982c3efc63ee0a51372caf9deb2e761a478e9 Mon Sep 17 00:00:00 2001 From: skiranh Date: Mon, 5 Oct 2015 12:11:58 +0530 Subject: [PATCH] Including code to restart DM. This is because of bug 1490860. The temporary solution to the bug is to restart DM after pip installation of junos-eznc. Removing sleep. Including code in run_tests.sh to take care of all services to be up. Change-Id: Ibe134b0bb31cef45d6743360ad15ce24f424cbe0 Closes-Bug: #1490860 --- fabfile/tasks/tester.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fabfile/tasks/tester.py b/fabfile/tasks/tester.py index 8b0a36c94..0a050adc6 100644 --- a/fabfile/tasks/tester.py +++ b/fabfile/tasks/tester.py @@ -6,7 +6,6 @@ import tempfile from random import randrange from datetime import datetime as dt - from fabfile.config import * from fabfile.utils.host import * from fabfile.utils.interface import * @@ -367,6 +366,9 @@ def setup_test_env(): if detect_ostype() in ['redhat', 'centos', 'centoslinux']: pkg_install(['libxslt-devel', 'libxml2-devel'], disablerepo=False) sudo('pip install junos-eznc==1.2.2') + + #Restart DM. This is because of #1490860 + sudo('service contrail-device-manager restart') for host_string in env.roledefs['compute']: with settings(host_string=host_string):