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
(cherry picked from commit bafa9a9)
  • Loading branch information
Shweta Naik committed Aug 4, 2016
1 parent 5362abf commit 6e554e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fabfile/tasks/kernel.py
Expand Up @@ -159,6 +159,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 6e554e6

Please sign in to comment.