[Openstack] Issue in debugging OpenStack Swift

Luse, Paul E paul.e.luse at intel.com
Tue Jul 23 11:25:20 UTC 2013


HI Muhammad

If you’ve got full debug working well, I would love to replicate your environment (and suspect I’m not the only one).  If you have some time, it would be great if you could detail setup instructions and config options on this post.

Thx
Paul

From: Openstack [mailto:openstack-bounces+paul.e.luse=intel.com at lists.launchpad.net] On Behalf Of Muhammad Kazim
Sent: Tuesday, July 23, 2013 12:33 AM
To: Gareth
Cc: openstack at lists.launchpad.net
Subject: Re: [Openstack] Issue in debugging OpenStack Swift

Worked perfectly in the first attempt. Thanks a lot for the help. :)
On Tue, Jul 23, 2013 at 10:41 AM, Gareth <academicgareth at gmail.com<mailto:academicgareth at gmail.com>> wrote:
the key reason it here: https://github.com/openstack/swift/blob/master/swift/common/utils.py#L1047

you have many ways to stop flush IO; I prefer add a line "stdio_files = []" after line 1037

On Sun, Jul 21, 2013 at 1:58 AM, Muhammad Kazim <kazimalik at gmail.com<mailto:kazimalik at gmail.com>> wrote:
Hi all,

I wanted to debug Swift source code. I have a Devstack setup running on my machine that i have configured to only run keystone, mysql and swift.

I have used pdb to debug source code. I was able to debug python-swiftclient, middleware (common), and proxy-server code. However, when i try to debug Object Server of Swift, by issuing pdb.set_trace() call in diskwrite or any write function in /swift/obj/server.py (except constructor) and than issue a 'swift post' or 'swift upload' command from other terminal, the object server crashes. The screen of s-object shows an error in the line in which 'pdb.set_trace()' is called.

Can someone please guide me how can i debug the Swift s-object code in /swift/obj/server.py. Thanks.

Regards,
Muhammad Kazim
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



--
Gareth

Cloud Computing, OpenStack, Fitness, Basketball
OpenStack contributor
Company: UnitedStack<http://www.ustack.com>
My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me
and I'll donate $1 or ¥1 to an open organization you specify.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130723/eabb7131/attachment.html>


More information about the Openstack mailing list