Skip to content

Instantly share code, notes, and snippets.


Gonéri Le Bouder goneri

View GitHub Profile

Keybase proof

I hereby claim:

  • I am goneri on github.
  • I am goneri ( on keybase.
  • I have a public key whose fingerprint is 1FF3 68E8 0199 1373 1705 B8AF 049E D9B9 4765 572E

To claim this, I am signing this object:

goneri / gist:713620
Created Nov 24, 2010
View gist:713620
"DEVICEID" : "aofr08093-2010-09-17-23-20-34",
"PID" : "1",
"CPUUSAGE" : "0.0",
"CMD" : "init [2]",
goneri / create RHEL deploy-ramdisk-ironic.tar
Last active Jan 3, 2016
Create deploy-ramdisk-ironic RAM disk
View create RHEL deploy-ramdisk-ironic.tar
env DIB_LOCAL_IMAGE=/home/goneri/Downloads/rhel-guest-image-7.2-20151102.0.x86_64.qcow2 ./bin/ramdisk-image-create -o deploy.ramdisk --ramdisk-element dracut-ramdisk ironic-agent rhel7
mv deploy.ramdisk.vmlinuz deploy-ramdisk-ironic.kernel
mv deploy.ramdisk.initramfs deploy-ramdisk-ironic.initramfs
tar cfv deploy-ramdisk-ironic.tar deploy-ramdisk-ironic.initramfs deploy-ramdisk-ironic.kernel
import os
import subprocess
from osp_deployer.config import Settings
from auto_common import Ssh
from auto_common import Scp
from jinja2 import Template
from novaclient import client as novaclient
goneri / gist:6638262
Last active Feb 8, 2016
A light wrapper around GLPI webservice.
View gist:6638262
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import xmlrpclib
class GLPI:
def __init__(self, url=None, login=None, password=None):
View gist:6c5c0fd8c16114955104
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import xmlrpclib
class GLPI:
def __init__(self, url=None, login=None, password=None):
source stackrc
ip_address_list=$(nova list|sed -n 's,.*ctlplane=\([0-9.]\+\).*,\1,p')
for ip in ${ip_address_list}; do
ssh -o stricthostkeychecking=no heat-admin@${ip} sudo sosreport --batch -p system,virt,openstack,network,kernel,services,storage,security
ssh -o stricthostkeychecking=no heat-admin@${ip} "sudo find /var/tmp -name 'sosreport-*' -exec chmod 664 {} \;"
scp -o stricthostkeychecking=no heat-admin@${ip}:/var/tmp/sosreport-* /var/tmp
sudo sosreport --batch
View gist:d0722d48dae8806071a7d327ce4bbccb
subscription-manager repos '--disable=*' --enable=rhel-server-rhscl-7-rpms --enable=rhel-7-server-rpms --enable=rhel-7-server-optional-rpms --enab│··········································································
yum install -y rh-python34
goneri / run
Last active May 18, 2016
run rally on a fresh OSP8 installation
View run
sudo yum install -y openstack-rally
source ~/overcloudrc
mkdir ~/.rally
git clone ~/.rally/plugins
curl|tar xfz -
glance image-create --name "CentOS-7-x86_64-GenericCloud" --disk-format qcow2 --container-format bare --is-public True --progress < CentOS-7-x86_64-GenericCloud-*.raw
curl | tar zfxv -
View dci-ui
[ -d venv ] || virtualenv -p /usr/bin/python3 venv
[ -d dci-control-server ] || git clone
[ -d dci-ui ] || git clone
. venv/bin/activate
pip install -e dci-control-server