Skip to content

Commit

Permalink
Check if the service supervisor-vrouter is not stopped already before…
Browse files Browse the repository at this point in the history
… stopping the service

Closes-Bug:#1585398

Change-Id: I692667b87982a1adadc8bdb75811e013446fa8ba
  • Loading branch information
Shweta Naik committed May 24, 2016
1 parent 4a5efd4 commit bafa9a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fabfile/tasks/kernel.py
Expand Up @@ -139,6 +139,8 @@ def migrate_compute_kernel():
def migrate_compute_kernel_node(*args):
for host_string in args:
with settings(host_string=host_string):
sudo('service supervisor-vrouter stop')
out = sudo('service supervisor-vrouter status')
if 'stop' not in out:
sudo('service supervisor-vrouter stop')
sudo('apt-get -o Dpkg::Options::="--force-overwrite" -y install contrail-vrouter-3.13.0-85-generic')
upgrade_kernel_node(host_string)

0 comments on commit bafa9a9

Please sign in to comment.