messages in glance-manage purge are not formatted properly

Bug #1544437 reported by Abhishek Kekane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Dinesh Bhor

Bug Description

Info messages in glance-manage purge method are not formatting properly as it shows variable names in the message and not the corresponding values.

For example:

$ glance-manage db purge 1

2016-02-08 04:22:20.373 INFO glance.db.sqlalchemy.api [req-1bcebb2f-bc3a-468d-b4c5-5701ea2cfa19 None None] Deleted %(rows)d row(s) from table %(tbl)s

2016-02-08 04:22:20.374 INFO glance.db.sqlalchemy.api [req-1bcebb2f-bc3a-468d-b4c5-5701ea2cfa19 None None] Purging deleted rows older than %(age_in_days)d day(s) from table %(tbl)s

Changed in glance:
assignee: nobody → Dinesh Bhor (dinesh-bhor)
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/279391

Changed in glance:
status: New → In Progress
Changed in glance:
importance: Undecided → Critical
importance: Critical → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/279391
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=117642393a51b76d5285706835cfa240d4ef770b
Submitter: Jenkins
Branch: master

commit 117642393a51b76d5285706835cfa240d4ef770b
Author: Dinesh Bhor <email address hidden>
Date: Thu Feb 11 02:33:54 2016 -0800

    Fix message formatting in glance-manage purge

    Info messages in glance-manage purge method shows variable names
    in the message and not the corresponding values.

    Used actual variable names instead of local() method to show
    their values.

    Change-Id: Ie8600d43a638b34a39cc58b9d1869e91eafb102b
    Closes-Bug: #1544437

Changed in glance:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/glance 12.0.0.0b3

This issue was fixed in the openstack/glance 12.0.0.0b3 development milestone.

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.