Skip to content

Commit

Permalink
Including code to restart DM. This is because of bug 1490860. The tem…
Browse files Browse the repository at this point in the history
…porary 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
  • Loading branch information
skiranh committed Oct 7, 2015
1 parent 296d570 commit f3b982c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fabfile/tasks/tester.py
Expand Up @@ -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 *
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit f3b982c

Please sign in to comment.