Skip to content

Commit

Permalink
Fixes:Openstack HA , EVIP user parameter is not set after upgrade fro…
Browse files Browse the repository at this point in the history
…m 2.11 to 2.20

Adding EVIP parameter which was introduced in 2.2 for the
parameters passed to the cmon monitor script. Adding the parameter
in the upgrade path as well.

Change-Id: I6ffb1f4046a42cc8957532b501c369ec1ffd1c8d
ClosesBug: 1452483
  • Loading branch information
Ranjeet R committed May 11, 2015
1 parent b1a4de8 commit 62835ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrail_provisioning/openstack/upgrade.py
Expand Up @@ -53,6 +53,10 @@ def fix_cmon_config(self):
local("mysql -uroot -p$(cat /etc/contrail/mysql.token) -e 'drop database cmon'")
local("sed -i '/pidfile=\/var\/run\//c\pidfile=\/var\/run\/cmon\/' /etc/cmon.cnf")

def fix_cmon_param_file(self):
with settings(warn_only=True):
local("sed -i '$ a\EVIP=%s' /etc/contrail/ha/cmon_param" % self._args.external_vip)

def upgrade(self):
self.stop()
self._upgrade()
Expand All @@ -68,6 +72,8 @@ def upgrade(self):
self._args.from_rel < 2.2 and
self._args.to_rel >= 2.2):
self.fix_cmon_config()
self.fix_cmon_param_file()

self.restart()


Expand Down

0 comments on commit 62835ea

Please sign in to comment.