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

Memory management

I realized if I have to write more about my work, I’ll have to throw around a lot of jargon and it’s not really fun if you haven’t yet had proper introduction to memory management terms or it’s been a while and you have trouble recollecting them. This post talks very briefly about some of […]

Thanks to my Outreachy’s partner :  The whatsit page — Tux-Mex

Let’s play with Cinder and RBD (part 1)

After you ./stack (you may have a cluster issue):

(1) You need to check out your ceph configuration and see if everything is ok.

~/devstack$sudo ceph -s
  cluster <uuid>
  health HEALTH_OK

To check the size of your cluster:

~/devstack$ceph df

Continue reading “Let’s play with Cinder and RBD (part 1)”

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 ❤