Ask Your Question
0

issues on debugging Mechanism Drivers on ML2

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

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

Comments

No update on that thread?

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

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

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

2 answers

Sort by » oldest newest most voted
0

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

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: http://lists.openstack.org/cgi-bin/ma... the irc channel: #openstack@freenode and of course this site.

Fell free to ask questions.

edit flag offensive delete link more
0

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

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!

Vic

edit flag offensive delete link more

Comments

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 -0500 )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 http://logging.apache.org/log4j/1.2/ for log4j.

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 144 times

Last updated: Jan 08 '15