issues on debugging Mechanism Drivers on ML2

asked 2014-05-15 10:13:59 -0600

ettorezugliani gravatar image

I'm having issues on debugging Mechanism Drivers on ML2. Post commit methods does't have any relevant test, so it's hard to understand Mech Driver's flow.

Can anyone help me with this issue? is there a mail list for me to follow?

edit retag flag offensive close merge delete


No update on that thread?

GLaupre gravatar imageGLaupre ( 2015-01-06 12:59:35 -0600 )edit

Sorry we learned how to do it but forgot to update here. Updating now.

ettorezugliani gravatar imageettorezugliani ( 2015-01-08 06:25:33 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-01-08 06:25:47 -0600

ettorezugliani gravatar image

You can debug on the fly using devstack. What you do is setup devstack, put a pdb at the location in wich you want to debug, use rejoin stack, go to the screen running the service you want, stop it and run it again. It should stop at pdb.

For the support part, there is the mailing list: the irc channel: #openstack@freenode and of course this site.

Fell free to ask questions.

edit flag offensive delete link more

answered 2015-01-08 10:09:50 -0600

9lives gravatar image

For my dev experience on openstack, the better way to debug the python code is using the python logging module, this is very convenient when you are debugging eventlet services, if you are using pdb you might run into troubles for the concurrent stuff.

Besides you can write some debug code to do debugging for certain scenario, but the logging module is your best assistant to find what is going wrong.:-)

Help that helps!


edit flag offensive delete link more


Thank you very much. I am not familiar with python, therefore I have some issue to debug efficiently ^^

GLaupre gravatar imageGLaupre ( 2015-01-08 19:40:39 -0600 )edit

if you familiar with log4j or java, you will find the python module is much like log4j.

You can find more on this link for log4j.

9lives gravatar image9lives ( 2015-01-08 19:58:28 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-05-15 10:13:59 -0600

Seen: 185 times

Last updated: Jan 08 '15