← Back to team overview

openstack team mailing list archive

Re: How to get debug logs in Openstack Cinder

 

The default log level may be your problem.
In /etc/cinder/cinder.conf , set the below to true. That might help you.

	
#
# Options defined in cinder.openstack.common.cfg:CommonConfigOpts
#
 
# Print debugging output (boolean value)
#debug=false
 
# Print more verbose output (boolean value)
#verbose=false


-----Original Message-----
From: openstack-bounces+malini.k.bhandaru=intel.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+malini.k.bhandaru=intel.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of harryxiyou
Sent: Thursday, February 21, 2013 9:54 AM
To: openstack@xxxxxxxxxxxxxxxxxxx
Cc: cloudxy@xxxxxxxxxxxxxxxx; Kang Hua; Lista sheepdog user
Subject: [Openstack] How to get debug logs in Openstack Cinder

Hi all,

I add some print logs for cinder/cinder/volume/drivers/sheepdog.py
like following.

[...]
 57     def create_volume(self, volume):
 58         """Creates a sheepdog volume"""
 59         LOG.debug(_('999 volume name is %s') % volume['name'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 60         self._try_execute('qemu-img', 'create',
 61                           "sheepdog:%s" % volume['name'],
 62                           '%sG' % volume['size'])
[...]

However, i could not catch this, LOG.debug(_('999 volume name is %s') % volume['name']), logs by 'screen -r'. How could i get the logs? Maybe i should print logs with other formats, right?
Has anyone add print logs for openstack? Please give me some suggestions. Thanks a lot ;-)

--
Thanks
Harry Wei

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Follow ups

References