Skip to content

Commit

Permalink
If the upgrade is from prior to release R2.1 in ubuntu 14.04, since w…
Browse files Browse the repository at this point in the history
…e have kernel version

change appending the proper vrouter pkg.
Partial-bug:1454393

Change-Id: I637ec033e0741a5c8594e36b5dadfaa3dbd52525
  • Loading branch information
Shweta Naik committed May 12, 2015
1 parent 3d47104 commit 3199437
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fabfile/tasks/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from fabfile.tasks.provision import fixup_restart_haproxy_in_all_cfgm
from fabfile.utils.cluster import get_toragent_nodes, get_tsn_nodes
from fabfile.utils.commandline import *
from fabfile.utils.fabos import get_release, detect_ostype
from fabfile.utils.fabos import get_release, detect_ostype, get_linux_distro
from fabfile.utils.install import get_compute_pkgs, get_openstack_pkgs

@task
Expand Down Expand Up @@ -160,7 +160,11 @@ def upgrade_compute_node(from_rel, pkg, *args):
if (getattr(env, 'interface_rename', True) and
detect_ostype() not in ['ubuntu', 'redhat']):
pkgs.append('contrail-interface-name')

if float(from_rel) < 2.1:
dist, version, extra = get_linux_distro()
if version == '14.04' and 'contrail-vrouter-3.13.0-35-generic' in pkgs:
pkgs.remove('contrail-vrouter-3.13.0-35-generic')
pkgs.append('contrail-vrouter-3.13.0-40-generic')
# Identify roles of this node.
roles = ['compute']
if env.host_string in get_tsn_nodes():
Expand Down

0 comments on commit 3199437

Please sign in to comment.