qualname values in logging.conf sample are bogus

Bug #1163075 reported by Jay Buffington
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Ankur Gupta

Bug Description

The values in the sample logging config file for qualname aren't valid:

    $ grep qualname etc/logging.cnf.sample
    qualname=glance-api
    qualname=glance-registry
    qualname=glance-combined

It looks like valid values for qualname are only names of modules (__name__). This isn't very well documented-- I had to go through the code to figure this out- and these values in the sample conf were misleading.

I'm not sure that it is possible to use one logging.conf file and have the registry service messages to go to one log file and logging for the api service to go to a different log file. I think you need to have a logger.conf for each service.

Revision history for this message
Mark Washenberger (markwash) wrote :

I don't think this file (etc/logging.cnf.sample) is even needed anymore, since we use openstack common logging.

Changed in glance:
status: New → Triaged
importance: Undecided → Medium
tags: added: low-hanging-fruit
Revision history for this message
Prateek (openstack1192) wrote :

Hi . It is my first time I am trying to contribute to the openstack community but I am sure I would be able to fix the bug.

Changed in glance:
assignee: nobody → Prateek (openstack1192)
Revision history for this message
Ankur Gupta (ankur-gupta-v) wrote :

Hi Prateek,
It looks this bug is assigned to you from a long time but no frther update.
So, I am starting working on it.

Changed in glance:
assignee: Prateek (openstack1192) → Ankur Gupta (ankur-gupta-v)
Changed in glance:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/132943

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/132943
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=48fcdf7ecfb5e264e1021cb1efff73a4716e38ab
Submitter: Jenkins
Branch: master

commit 48fcdf7ecfb5e264e1021cb1efff73a4716e38ab
Author: ankur <email address hidden>
Date: Thu Nov 6 10:38:52 2014 +0530

    Removal of unnecessary sample file from repository

    Sample file (etc/logging.cnf.sample) is not needed anymore,
    since we use openstack common logging now. So, I am removing this file from
    Glance repository.

    Closes-Bug: #1163075

    Change-Id: I7b769998983f34840d525bd3ead4dc38e03f4602

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: kilo-1 → 2015.1.0
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.