Upgrade process breaks Zookeeper configuration

Bug #1659535 reported by Marco Passalacqua
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Incomplete
Medium
Nagendra Prasath
Trunk
Invalid
High
Nagendra Prasath

Bug Description

Scenario: Upgrade of Contrail Networking Cluster from 3.0.2 to 3.2 via FABRIC in RHOSP8 (Liberty)

After the execution of the upgrade_database task, zookeeper configuration is lost.
During the task execution, YUM upgrades the zookeeper packages creating a new (and clean) /etc/zoo.cfg.

New zookeeper packages change the directory hierarchy for data files:
from /var/lib/zookeeper to /var/lib/zookeeper/data with no moving of the myid file.

Upgrade process seems to don't take in consideration above changes and also it doesn't fix the zoo.cfg file with the previous configurations (in particular cluster information).
Moreover, it should have to move the myid file (on each node) to the new location (/var/lib/zookeeper/data) because the service, after the upgrade, finds this file on the new location.

The result of this issue is that each zookeeper node on the cluster restart in standalone mode and, since no alert is raised, at the end of the upgrade procedure, contrail has wrong behaviours and DBs (Cassandra and Zookeeper) became easily unsycnrhoynized .

information type: Proprietary → Public
Jeba Paulaiyan (jebap)
tags: added: provisioning redhat
Revision history for this message
Nagendra Prasath (npchandran) wrote :
Revision history for this message
Nagendra Prasath (npchandran) wrote :

fab upgrade scripts needs to updated to handle upstream zookeeper package changes.

Revision history for this message
Nagendra Prasath (npchandran) wrote :

Adding "invalid" in Trunk (R4.0) as zookeeper is containerized as a part of contrail controller docker container and no fabric utils will be used.

Revision history for this message
Nagendra Prasath (npchandran) wrote :

Could you please provide a system in failed condition...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.