[Openstack] Issue in debugging OpenStack Swift

Muhammad Kazim kazimalik at gmail.com
Sat Jul 20 17:58:13 UTC 2013

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.

Muhammad Kazim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130720/94ad2302/attachment.html>

More information about the Openstack mailing list