Category Archives: debian

shared git repository over ssh

A git repository is configured to be shared between users from the same group with: # grep group /srv/repos/git/l2mesh.git/config shared = group The repository directory is set with the group sticky bit so that files created by a user have … Continue reading

Posted in debian | Leave a comment

realistic puppet tests with jenkins and OpenStack (part 1/2)

A git repository containing a puppet module is bound to a jenkins project. When the repository changes, jenkins boots a virgin puppetmaster OpenStack instance in a dedicated tenant. It runs the run-jenkins-test-in-openstack.sh script in the puppetmaster instance. In addition to … Continue reading

Posted in debian, jenkins, openstack, puppet | Leave a comment

creating a Debian GNU/Linux Wheezy puppet client for OpenStack

A Debian GNU/Linux wheezy image is booted and modified to set its hostname based on the content of the http://169.254.169.254/latest/meta-data/hostname metadata. The /etc/rc.local file is changed to run puppet agent –waitforcert 60 at boot time. The instance is then snapshoted … Continue reading

Posted in Essex, debian, openstack, puppet | Leave a comment

Configuring jenkins turnkeylinux on OpenStack

A turnkeylinux jenkins is installed to run tests related to the management of the the.re OpenStack cluster. It is configured to be used by registered users only from the web. An IRC bot is installed to allow interactions from the … Continue reading

Posted in Essex, debian, jenkins, openstack, turnkeylinux | Leave a comment

Interactions with the kvm monitor in OpenStack

For debug purposes, is is convenient to access the kvm monitor to gain information about the state of the instance: # python qmp-shell /var/lib/libvirt/qemu/instance-00000043.monitor Connected! (QEMU) query-commands [{u'name': u'qom-list-types'}, {u'name': u'change-vnc-password'}, ... (QEMU) query-vnc {u'family': u'ipv4', u'service': u'5900', u'clients': [], … Continue reading

Posted in Essex, debian, openstack | Leave a comment

Disaster recovery with kvm in OpenStack

A kvm process running an OpenStack instance with a volume attached to it becomes unresponsive. After manually investigating the cause of the problem, the kvm process is killed. The iscsi sessions is acknowledged to be lost and the disk is … Continue reading

Posted in Essex, debian, openstack | Leave a comment

Network boot an OpenStack instance

When an OpenStack instance is defined as a raw disk, the default libvirt XML description is set to boot from it, assuming it contains a boot record. The libvirt.xml.template file is modified to add an attempt to boot from the … Continue reading

Posted in Essex, debian, openstack | 2 Comments

packaging-farm for OpenStack Essex

The Essex OpenStack release is being packaged for Debian GNU/Linux wheezy upcoming release. Each new release of a package is committed to a git repository ( the keystone is an example ) by a member of the OpenStack Debian GNU/Linux … Continue reading

Posted in Essex, debian, openstack | Leave a comment

Migrating ganeti virtual machines to OpenStack (part 2 / 2)

A ganeti cluster hosts GNU/Linux based fully virtualized virtual machines, booting from a disk image with a boot loader and a partition table. The case of para-virtualized virtual machines has been covered in a previous post. An OpenStack LVM volume … Continue reading

Posted in Essex, debian, ganeti, openstack | Leave a comment

Minimal Debian GNU/Linux wheezy bootable image for OpenStack

A Debian GNU/Linux Wheezy Beta 2 AMI is uploaded to OpenStack. It really is an Ext4 file system that OpenStack will resize to use all the size of the primary disk of the instance. An AMI is made of three … Continue reading

Posted in Essex, Wheezy, debian, openstack | Leave a comment