OpenStack Lab — Part 2: Packstack all-in-one

Welcome to the second part of the series of the blog, today we are going to look at installing and configuring OpenStack using packstack, which is provided by the RDO openstack-packstack RPM.

You will need to have your system up to the stage where all the RPMs, repositories, and base config of the system is up to follow this blog. See Part 1 of this topic for more information

Continue reading “OpenStack Lab — Part 2: Packstack all-in-one”

OpenStack Lab — Part 1: xCAT

Before I start, the contents of all files mentioned in this blog are available at (https://gitlab.arif-ali.co.uk/arif/openstack-lab). Also my assumption is that you would have some knowledge of most of the components in OpenStack. Finally, this will be in a few parts so that there’s not as much to take on

Over the past few months, I have been evaluating OpenStack, and trying a few things in a Proof of Concept(PoC) environment, to see how we can use this in the future. I came through many challenges and hurdles, but finally I got the core components working recently.

Continue reading “OpenStack Lab — Part 1: xCAT”

The mysteries of anaconda and kickstart

Problem

At work, I was trying to get a node installed remotely through kickstart such that I can create the partition table in a specific order. Unfortunately anaconda does not allow us to do that, and you could get disks partitioned not necessarily in the same order. i.e. I wanted the below

  • partition 1 == 10M
  • partition 2 ~ 50M with raid 2 across all 8 disks, with 6 Hot Spares
  • Partition 3 ~ 50G with raid 5 across all 8 disks, with 1 Hot Spare
  • Partition 4 everything else

Continue reading “The mysteries of anaconda and kickstart”

The wonders of gitlab

This is probably my first proper blog post, so here goes.

Over the last few years, I have accumulated many git and svn repositories for work and personal projects, and have always looked for a web GUI, and source code management, that all fitted nicely. In this time I have used SVN with webdav, and websvn which worked really well, but unfortunately died to death, as multi-user integration wasn’t there, and therefore colleagues in my team could not effectively contribute to the projects.

Continue reading “The wonders of gitlab”

ubuntu/debian local issues

If you ever have an issue similar to below on debian or ubuntu

svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_GB.UTF-8
svn: warning: please check that your locale name is correct

then run the following command to fix the problem, obviously choosing your locale, in my case for debian wheezy, I chose 122, which was `en_GB.UTF-8`

dpkg-reconfigure locales

Self-signed Certificate

First create a Private Key to sign the certificate

openssl genrsa -des3 -out server.key 1024

Create CSR

openssl req -new -out arif-ali.csr -key server.key \
-subj "/C=GB/ST=South Yorkshire/L=Sheffield/O=Example Inc/OU=Web Dept/CN=example.com" \
-out server.csr

Decrypt the private key

cp server.key server.key.org
openssl rsa -in server.key.org -out server.key

Sign the Certificate with the private key

openssl x509 -req -days 365 -in server.csr -signkey server.key \
-out server.crt

SSH Fingerprint

You can generate a fingerprint for a public key using ssh-keygen like so

ssh-keygen -lf /path/to/key.pub

Concrete example (if you use an RSA public key):

$ ssh-keygen -lf ~/.ssh/id_rsa.pub
2048 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff /Users/username/.ssh/id_rsa