provisioning: /var/log/contrail mount has to be per container

Bug #1688139 reported by Senthilnathan Murugappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Ramprakash R

Bug Description

all the containers(controller, analytics, analyticsdb) /var/log/contrail is a mount of hosts /var/log/contrail dir and the uid/gid of the dir gets set to the contrail user of the first container that mounts it and hence the other containers observe permission denied issue when trying to create the logfile.
Each container needs to have a separate mount points.

Tags: provisioning
Changed in tempest:
assignee: nobody → Ramprakash R (ramprakash)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/30986
Submitter: Ramprakash R (<email address hidden>)

Jeba Paulaiyan (jebap)
tags: added: provisioning
removed: provision
Changed in tempest:
status: New → Invalid
no longer affects: tempest
Revision history for this message
Ramprakash R (ramprakash) wrote :

WORKAROUND:
===========

Workaround is to set the following in the playbook inventory:

contrail_controller_log_volumes=['/var/log/contrail/controller:/var/log/contrail', '/var/log/zookeeper:/var/log/zookeeper']
contrail_analytics_log_volumes=['/var/log/contrail/analytics:/var/log/contrail']
contrail_analyticsdb_log_volumes=['/var/log/contrail/analyticsdb:/var/log/contrail']

OR if SM is used to provision, include this in the cluster.json:

                "provision": {
                    "contrail_4": {
                        "contrail_controller_log_volumes": ["/var/log/contrail/controller:/var/log/contrail",
                            "/var/log/zookeeper:/var/log/zookeeper"],
                        "contrail_analytics_log_volumes": ["/var/log/contrail/analytics:/var/log/contrail"],
                        "contrail_analyticsdb_log_volumes":["/var/log/contrail/analyticsdb:/var/log/contrail"]
                    }
                }

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/30986
Committed: http://github.com/Juniper/contrail-ansible/commit/404d72815053e05da94a45c40c62b1fb87b0ee1a
Submitter: Zuul (<email address hidden>)
Branch: master

commit 404d72815053e05da94a45c40c62b1fb87b0ee1a
Author: Ramprakash <email address hidden>
Date: Wed May 3 16:44:02 2017 -0700

Closes-bug: #1688139 - Use separate mount points for the logs for controller, analytics, analyticsdb and agent containers to avoid uid clashes for the directories

Change-Id: If209d8683186f5c71ef0d927e69cdfa5b5f7bf4c

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.