Skip to main content

Posts

Showing posts from 2014

Unit testing OpenStack with tox

Testing is and will always be an integral part of any software development. OpenStack is no exception. In OpenStack, unit testing is done using tox. Installing tox, [apt-get | yum] install python-pip; pip install tox Tox has various tests defined in the envlist. One can open tox.ini for a complete list of envs defined. OpenStack defines, py27 and pep8 test. Former is for unittests and later for style checks. How to run tox and testr Tox can use used to list unit tests and execute all of them or any subset of them using regex. To run all tests, tox -e py27                        # you can chose any other                                                          ...

Devstack installation with cells in multiple machines

  Devstack is a testing and development package for OpenStack . The official devstack website has excellent but terse installation instructions, which could be daunting to a newbie. Normally, a traditional install is pretty straightforward but problems creep in when you have to go for some particular configuration or installation like cells or a simple code-test-debug setup, the information on the main site is insufficient. In this blog, I will enumerate the steps for setting up a cell-ular devstack installation with one parent and one child. Parent will not be instantiating any VMs s it's only a 'command centre'. 1. On both machines, install git and vim, clone the devstack repo using git. yum install git vim git clone https://git.openstack.org/openstack-dev/devstack 2. On both machines, open up the file 'local.conf' inside the cloned directory 'devstack' cd devstack; vim local.conf 3. Copy the parameters below to the file...

Hard disk partition not getting detected by Windows Explorer

I recently encountered a problem with my Toshiba external hard disk. While transferring files from the hard disk to my computer, my laptop shut down unexpectedly because of some hardware issues. When it came back, the particular partition in the external hard disk from which I was copying file was inaccessible! Windows explorer looked something like this - Notice that I had 3 partitions in the external hard disk (G:/, H:/ and I:/). Drive I:/ became invisible. I looked a further and found that computer management was able to detect the partition well, but it couldn't find out the format of the partition, and moreover there wasn't any letter assigned to that partition. Right clicking the partition and trying to assign a letter invariably ends up in error saying The operation failed to complete because the Disk Management console view is not up-to-date.  Refresh the view by using the refresh task.  If the problem persists close the Disk Management console, then rest...

Google Input Tools Offline Installers

Google offers excellent non-latin character input software which works on transliteration rather than explicit keyboards which is very hard to do specially when the US keyboard layout had virtually overtaken the computer industry. Google Input Tools (GIT) installer from the official site is online, i.e. it downloads a small stub and later depending upon the configuration and setting will download the larger installer. If someone needs an offline installer for GIT, you can download it from the following links, Hindi (Devnagri) : http://dl.google.com/transliteration-ime/1.0.4.0/googlehindiinputsetup.exe Malayalam (Malayalam) : http://dl.google.com/transliteration-ime/1.0.4.0/googlemalayalaminputsetup.exe Sanskrit (Devnagri) : http://dl.google.com/transliteration-ime/1.0.4.0/googlesanskritinputsetup.exe Basically, just replace the from the url and enter your desired language name.