vrouter: /var/lib/contrail/ inside vrouter-agent need to be a persistent volume

Bug #1781749 reported by Senthilnathan Murugappan on 2018-07-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
Critical
Yuvaraja Mariappan
Trunk
Fix Committed
Critical
Yuvaraja Mariappan

Bug Description

In vrouter agent we store the db at /var/lib/contrail inside the container which needs to be a persistent volume.
It is not a persisten volume right now due to which when we do 'docker-compose down' and 'docker-compose up -d' to upgrade the cluster, the existing VMI and related info are not replayed and agent loses information about the existing VMs in the node.

Observed this on ansible-deployer based provisioned cluster, this needs to be fixed in all the deployment models (ansible-deployer, helm, openshift, single-yaml etal) if not already taken care of.

Probably this is a pre-existing bug in R5.0 GA too.
In which case if someone wants to upgrade they may need to do below on all the computes during upgrade to not lose the existing VM info (change the name of the container as need be)
1) 'docker cp vrouter_vrouter-agent_1:/var/lib/contrail /tmp/bkup/contrail'
2) Upgrade the cluster
3) for dir in $(ls /tmp/bkup/contrail/); do docker cp /tmp/bkup/contrail/$dir vrouter_vrouter-agent_1:/var/lib/contrail; done
4) docker restart vrouter_vrouter-agent_1

Review in progress for https://review.opencontrail.org/44658
Submitter: Yuvaraja Mariappan

Review in progress for https://review.opencontrail.org/44659
Submitter: Yuvaraja Mariappan

Reviewed: https://review.opencontrail.org/44659
Committed: http://github.com/Juniper/contrail-ansible-deployer/commit/ea1d98544fe796c27eb37a0e4dba45194d2dd618
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit ea1d98544fe796c27eb37a0e4dba45194d2dd618
Author: Yuvaraja Mariappan <email address hidden>
Date: Mon Jul 16 06:27:28 2018 -0700

Added persistrent volume support in contrail-vrouter-agent for /var/lib/contrail

Added persistrent volume support in contrail-vrouter-agent for /var/lib/contrail
Partial-bug: #1781749

Change-Id: I9c01403cbb818ade483e0b168172d5e1b68e06c1

OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/44658
Committed: http://github.com/Juniper/contrail-ansible-deployer/commit/69dbfacb4fed0b3897116fa00438d04d04da08de
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 69dbfacb4fed0b3897116fa00438d04d04da08de
Author: Yuvaraja Mariappan <email address hidden>
Date: Mon Jul 16 06:27:28 2018 -0700

Added persistrent volume support in contrail-vrouter-agent for /var/lib/contrail

Added persistrent volume support in contrail-vrouter-agent for /var/lib/contrail
Partial-bug: #1781749

Change-Id: I9c01403cbb818ade483e0b168172d5e1b68e06c1

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

Other bug subscribers