Skip to content

Instantly share code, notes, and snippets.

@vkmc
vkmc / Quantum Floating-IPs
Created March 4, 2013 18:28
floating-ips listing, per tenant?
Floating IP listing
usage: quantum floatingip-list [-h] [-f {csv,table}] [-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--request-format {json,xml}] [-D] [-F FIELD]
List floating ips that belong to a given tenant.
optional arguments:
-h, --help show this help message and exit
Every developer needs to have an work environment as close as possible to the real deployment to get to know the code, improve it and work on it creating new features. The more flexible the software in which you are working, there are more possibilities to consider.
Thus, after nearly three months of working on OpenStack, I found myself in the midst of an incredible mess of clouds of different versions, implemented in different ways across multiple operating systems.
After a while looking for solutions to organize my deployments and improve my productivity, I came across the concept of <em>cloud managers</em>. RightScale was one of the first to caught my attention and, as it provides support for OpenStack, I decided to see how it could fit my needs.
<!--more-->
<h4>Cloud details</h4>
@vkmc
vkmc / dnsquery.c
Last active July 23, 2016 14:42
DNS Query using UDP sockets
//DNS Query Program on Linux
//Author : Silver Moon ([email protected])
//Dated : 29/4/2009
//Header Files
#include<stdio.h> //printf
#include<string.h> //strlen
#include<stdlib.h> //malloc
#include<sys/socket.h> //you know what this is for
#include<arpa/inet.h> //inet_addr , inet_ntoa , ntohs etc
@vkmc
vkmc / dnsquery.c
Last active December 17, 2015 06:28
Proyecto 1 - Redes de Computadoras
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h> // Linux socket interface
#include <arpa/inet.h> // ?
#include <netinet/in.h> // ?
#include <unistd.h>
#include <sys/types.h>
#include <regex.h>
@vkmc
vkmc / Marconi's setup
Created June 16, 2013 19:49
venv creation/activation + setup developing server
vkmc@havana:/opt/stack/marconi$ virtualenv marconi
New python executable in marconi/bin/python
Installing distribute.............................................................................................................................................................................................done.
Installing pip...............done.
vkmc@havana:/opt/stack/marconi$ source marconi/bin/activate
(marconi)vkmc@havana:/opt/stack/marconi$ python setup.py develop
Installed /tmp/easy_install-fWU_4I/pbr-0.5.16/d2to1-0.2.10-py2.7.egg
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitreview'
@vkmc
vkmc / marconi-setup
Last active December 19, 2015 18:29 — forked from anonymous/marconi-setup
## setting up
vkmc@havana:/opt/stack/marconi$ virtualenv marconi
New python executable in marconi/bin/python
Installing distribute..............................................................................................................................................................................................done.
Installing pip...............done.
vkmc@havana:/opt/stack/marconi$ source marconi/bin/activate
(marconi)vkmc@havana:/opt/stack/marconi$ python setup.py develop
running develop
running egg_info
@vkmc
vkmc / marconi-setup
Created July 15, 2013 12:37
virtualenv --distribute --python=python2.7 --no-site-packages marconi
vkmc@havana:~$ virtualenv --distribute --python=python2.7 --no-site-packages marconi
Running virtualenv with interpreter /usr/bin/python2.7
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in marconi/bin/python2.7
Also creating executable in marconi/bin/python
Installing distribute.............................................................................................................................................................................................done.
Installing pip...............done.
vkmc@havana:~$ source marconi/bin/activate
@vkmc
vkmc / gist:5b80c7e1332d8f2c7f81
Last active August 29, 2015 13:57
"Add a new storage backend to the OpenStack Message Queuing Service" proposal for Google Summer of Code 2014.
@vkmc
vkmc / Marconi troubleshoot
Created May 3, 2014 00:25
Marconi troubleshoot for rookie developers
# Install
> No handlers found for marconi.client (...)
This happens because the current user cannot create the log file (for the default configuration in /var/log/marconi/server.log). To solve it,
- Create the folder - sudo mkdir /var/log/marconi
- Create the file - sudo touch /var/log/marconi/server.log
- Run sudo marconi-server -v
# Messages
@vkmc
vkmc / gist:51d0b9b8175c8cdce305
Last active August 29, 2015 14:01
Storage backend selection for Marconi
- Swift
Pros: Better (the best in fact) integration with OpenStack. Easy to deploy and operate.
Cons: Sharding? https://blueprints.launchpad.net/swift/+spec/container-sharding
- RethinkDB
Pros: Flexible schemas and scalability. Similar to MongoDB but aims to overcome scalability and practical limitation of the latter. Easy to setup and learn. Written in C++ like Mongo.