get the log files into an accessible area

Bug #1519163 reported by Angus Salkeld
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-mesos
Confirmed
High
Angus Salkeld

Bug Description

A container's log files can be accessed from mesos *if* we place them in the right directory.

in kolla_mesos_start.py we need to automatically set the logfile in openstack configs, as follows:

# mesos passes this env into all containers
LOG_DIR = env('MESOS_SANDBOX', '/tmp')

logfile = os.path.join(LOG_DIR, '%s.log' % service_name)
then add "logfile" to the variables that get passed to jinja.

Angus Salkeld (asalkeld)
Changed in kolla-mesos:
importance: Undecided → High
status: New → Confirmed
Angus Salkeld (asalkeld)
Changed in kolla-mesos:
assignee: nobody → Angus Salkeld (asalkeld)
Revision history for this message
Angus Salkeld (asalkeld) wrote :

Then new "drop root" changes to kolla images make (what I initially had in mind) difficult.

the /mnt/mesos/sandbox is owned by root and other users can't create files there. So I can install a subdir, but then that is
not visible from the UI.

So the simplest short term solution is to configure the processes to log to stdout.

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.