Debugging in Python

Python Conquers The Universe

As a programmer, one of the first things that you need for serious program development is a debugger.

Python has a debugger, which is available as a module called pdb (for “Python DeBugger”, naturally!). Unfortunately, most discussions of pdb are not very useful to a Python newbie — most are very terse and simply rehash the description of pdb in the Python library reference manual. The discussion that I have found most accessible is in the first four pages of Chapter 27 of the Python 2.1 Bible.

So here is my own personal gentle introduction to using pdb. It assumes that you are not using any IDE — that you’re coding Python with a text editor and running your Python programs from the command line.

Some Other Debugger Resources

  • For information on the IDLE interactive debugger, see the IDLE documentation
  • For information on the Wing IDE debugger, see…

View original post 2,053 more words

Solving issue with Ceph cluster (devstack)

If this is your first time, just ./stack:

~/devstack$ ./stack.sh 

Otherwise  you need to check  your  Ceph cluster and if you have one, remove it with virsh:

What is libvirt? Libvirt is collection of software that provides a convenient way to manage virtual machines and other virtualization functionality, such as storage and network interface management. These software pieces include an API library, a daemon (libvirtd), and a command line utility (virsh).

To check we can just use this command:  virsh secret-list (No need to do it inside devstack directory) and remove it with : virsh secret-undefine <UUID>

~/devstack$ virsh secret-list
~/devstack$ virsh secret-undefine <uuid>

Captura de pantalla de 2016-07-06 22:33:07

Finally you will have something like this:

Captura de pantalla de 2016-07-06 22:17:08

In my case, i need to

~/devstack$ ./clear
~/devstack$ ./unstack

to completely solve the problem, but maybe you don’t.

 

A complete guide to start contributing

Thanks to my Outreachy’s partner Nisha !!

Though, there are developer and wiki guides on how to get started, I found them bit overwhelming as a beginner. After reading various docs and taking help from my mentor who is a core-contributor in OpenStack, I came up with the following easy-to-follow guide. If you still face any problems while setting up your environment, […]

via How to set up work environment to become an OpenStack Developer? — The Girl Next Door ❤