[sheepdog-users] [Openstack] How to get debug logs in Openstack Cinder
Bhandaru, Malini K
malini.k.bhandaru at intel.com
Thu Feb 21 20:25:20 CET 2013
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 at lists.launchpad.net [mailto:openstack-bounces+malini.k.bhandaru=intel.com at lists.launchpad.net] On Behalf Of harryxiyou
Sent: Thursday, February 21, 2013 9:54 AM
To: openstack at lists.launchpad.net
Cc: cloudxy at googlegroups.com; 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 at lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
More information about the sheepdog-users
mailing list