fuelmenu doesn't write logs

Bug #1596646 reported by Dmitry Guryanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Dmitry Guryanov
Mitaka
Fix Released
Medium
Dmitry Guryanov

Bug Description

It seems fuelmenu should write logs to /var/log/fuelmenu.log, but it doesn't. There is no such file after running fuelmenu.

Changed in fuel:
importance: Undecided → Medium
assignee: nobody → Dmitry Guryanov (dguryanov)
milestone: none → 10.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-menu (master)

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

Changed in fuel:
status: New → In Progress
tags: added: area-python module-fuelmenu
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-menu (master)

Reviewed: https://review.openstack.org/334623
Committed: https://git.openstack.org/cgit/openstack/fuel-menu/commit/?id=e7f0250488185a308766440462313b4a39b9a1f7
Submitter: Jenkins
Branch: master

commit e7f0250488185a308766440462313b4a39b9a1f7
Author: Dmitry Guryanov <email address hidden>
Date: Mon Jun 27 21:23:12 2016 +0300

    fix logging in fuelmenu

    If logging.basicConfig is called after logging.getLogger
    then it will not work properly. So we have to call
    basicConfig before imports.

    Change-Id: I663aad3cc55925e09ebb3df916cd60cae196c350
    Closes-Bug: #1596646

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-menu (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/365747

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-menu (stable/mitaka)

Reviewed: https://review.openstack.org/365747
Committed: https://git.openstack.org/cgit/openstack/fuel-menu/commit/?id=bcb0c3b2f5747512ea1c0e552cbca5288066c78c
Submitter: Jenkins
Branch: stable/mitaka

commit bcb0c3b2f5747512ea1c0e552cbca5288066c78c
Author: Dmitry Guryanov <email address hidden>
Date: Mon Sep 5 19:45:23 2016 +0300

    fix logging in fuelmenu

    If logging.basicConfig is called after logging.getLogger
    then it will not work properly. So we have to call
    basicConfig before imports.

    Change-Id: I88779187c4bed0f3950d988364ed2f49edc4c9f2
    Closes-Bug: #1596646

tags: added: on-verification
Revision history for this message
ElenaRossokhina (esolomina) wrote :

Verified on 9.2 snapshot #410.
shotgun2 report -http://paste.openstack.org/show/586651/

Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

Verified on snapshot #413.

[root@nailgun ~]# ll /var/log/fuelmenu.log
-rw-r--r--. 1 root root 592 Oct 20 09:23 /var/log/fuelmenu.log
[root@nailgun ~]# fuelmenu

[root@nailgun ~]# ll /var/log/fuelmenu.log
-rw-r--r--. 1 root root 9141 Oct 21 07:49 /var/log/fuelmenu.log
[root@nailgun ~]# rm /var/log/fuelmenu.log
[root@nailgun ~]# fuelmenu

[root@nailgun ~]# ll /var/log/fuelmenu.log
-rw-r--r--. 1 root root 7680 Oct 21 07:51 /var/log/fuelmenu.log
[root@nailgun ~]#

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.