Turn your Juju environment into a repeatable deployment.

A quick saturday night post. Often the process of preparing a Juju environment is not a one step task, you start by adding services, configuring them, relating and then horinzontally scaling by adding more units. Once you feel comfortable with your deployment, you would like to repeat it even in…

How to recover juju from a lost ~/.juju (OpenStack Provider)

If you have accidentally lost the ~/.juju directory or the host where your juju client runs, then the following procedure can help you to recover access to your environment. Note that this document covers the OpenStack provider, but could apply for others as well. We are assuming that the nodes…

Uvtool: uvt-kvm, easy cloud images on libvirt.

Time to take a look to uvtool. How? sudo add-apt-repository ppa:uvtool-dev/trunk sudo apt-get update sudo apt-get install libvirt-bin uvtool In the past, when i wanted to use a an ubuntu cloud image, Usually i used this method Boot a cloud image in kvm for convert the image format…

Maas: forcing import of boot-images

After following this recommended guide: http://astokes.org/running-maas-vagrant/ (kudos stokachu) i noticed that the "Import the boot images" step could be getting stuck on MaaS 1.5.4 with the following error message: The region controller does not know whether any boot images have been imported yet. If this…

Varnish purge cache

If you are using the setup that i proposed on my entry Enable varnish for your gears then you can change your Varnish default configuration for prevent your cached copy being purged, instead of this you can increase the default cache ttl to 1 week and invalidate the cache only…

Python: Mental notes about Asyncio

Here are some mentals notes after trying for a couple of hours the new Asyncio module based on the PEP 3156 spec. The Asyncio module is the last confirmation that the multithreading war is over on Python, unless some core developers are already implementing another approach like Transactional Memory / Automatic…