Bug 1035762

Summary: cinder-manage host list output show debug line
Product: Red Hat OpenStack Reporter: Yogev Rabl <yrabl>
Component: openstack-cinderAssignee: Eric Harney <eharney>
Status: CLOSED UPSTREAM QA Contact: Dafna Ron <dron>
Severity: low Docs Contact:
Priority: low    
Version: 4.0CC: abaron, eharney, yeylon
Target Milestone: ---   
Target Release: 5.0 (RHEL 7)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-13 17:03:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Yogev Rabl 2013-11-28 12:13:42 UTC
Description of problem:
Following the instructions of the volume migration manual, http://docs.openstack.org/admin-guide-cloud/content//volume-migration.html
When the debug flag is true in the cinder.conf file or I'm running the command: 
cinder-manage --debug host list the output will show:

cinder-manage --debug host list
host                            zone
2013-11-28 13:58:50.269 27677 DEBUG cinder.openstack.common.lockutils [req-6bc92ab2-447a-44f8-a6e2-d1c221d31e4f None None] Got semaphore "dbapi_backend" for method "__get_backend"... inner /usr/lib/python2.6/site-packages/cinder/openstack/common/lockutils.py:191
yrabl-glance01.qe.lab.tlv.redhat.com    nova
yrabl-glance01.qe.lab.tlv.redhat.com@lvm1       nova
yrabl-glance01.qe.lab.tlv.redhat.com@nfs1       nova
yrabl-glance01.qe.lab.tlv.redhat.com@gluster1   nova
yrabl-glance01.qe.lab.tlv.redhat.com@lvm2       nova


Version-Release number of selected component (if applicable):
openstack-cinder-2013.2-2.el6ost.noarch
python-cinderclient-1.0.6-2.el6ost.noarch
python-cinder-2013.2-2.el6ost.noarch

Red Hat Enterprise Linux Server release 6.5


How reproducible:
everytime 

Steps to Reproduce:
1. turn the debug flag to true or run the command with the --debug flag
2.
3.

Actual results:
the debug line appears 

Expected results:
no debug line.

Additional info:

Comment 2 Eric Harney 2013-12-02 15:28:53 UTC
This is currently the expected behavior, from "man cinder-manage" : "The cinder-manage.log file logs output from cinder-manage."

The question then is whether --debug should print to the console or only to the log file.  cinder-manage use is a little different from cinderclient commands, so I'm not sure that this is unreasonable behavior.

Comment 3 Yogev Rabl 2013-12-03 07:40:54 UTC
(In reply to Eric Harney from comment #2)
> This is currently the expected behavior, from "man cinder-manage" : "The
> cinder-manage.log file logs output from cinder-manage."
> 
> The question then is whether --debug should print to the console or only to
> the log file.  cinder-manage use is a little different from cinderclient
> commands, so I'm not sure that this is unreasonable behavior.

To answer the question, the --debug shouldn't print to the console but to the log in this case. the output is not informative and doesn't contribute.

Comment 4 Eric Harney 2013-12-03 13:33:27 UTC
(In reply to Yogev Rabl from comment #3)
> the output is not informative and doesn't contribute.

Which is why it only appears if you add --debug...

Comment 5 Eric Harney 2014-01-13 17:03:51 UTC
Bug was marked Invalid upstream and this is low sev/prio -- if we want to pursue this, it should happen there.