Playing with docker on Fedora 20

cloud

To get familiar with docker I took a look to see what it would take to build and/or run various containers, it was surprisingly easy (all commands below were run as root)

Install/start and enable docker

yum install docker-io
systemctl start docker
systemctl enable docker

The instructions below go through creating 2 docker images (the first is based on busybox and the second is fedora), if you would just like to use one that has already been created you can download it from the docker registry and then just start using it.

docker pull fedora
docker images
docker run -t -i fedora:20 /bin/bash

If all you want to do is run this pre-built fedora image you can stop here.

On the other hand if you would like to get your hands dirty and create your own images then …
Continue reading “Playing with docker on Fedora 20”

Please follow and like us:

Fedora 18 qcow2 image

cloud

Looking for a Fedora 18 qcow2 image to use on openstack? I’ve put one here. Cloud init is configured to set the ssh public key for the user “fedora” who has full sudo access.

Simply download the file and use glance add

$ glance -d add name="Fedora 18" disk_format=qcow2 container_format=bare is_public=true < f18-x86_64-openstack-sda.qcow2

If you’d prefer to build your own one, I’ve included the kickstart file simply download it and run the commands

$ yum install -y appliance-tools qemu-img # I did this on Fedora 17
$ appliance-creator --name f18-x86_64-openstack --format qcow2 --config=f18-x86_64-openstack.ks
$ qemu-img convert -f qcow2 -c -O qcow2 f18-x86_64-openstack/f18-x86_64-openstack-sda.qcow2 f18-x86_64-openstack-sda.qcow2

The details above are a slightly altered version of a Fedora 17 image provided by Daniel Berrange http://berrange.fedorapeople.org/images/

Please follow and like us:

Introducing OpenStack Packstack

cloud

Installing and deploying OpenStack is a tricky business and its not uncommon for people to get bogged down at the early stages, the task gets even more difficult when you try to do more then an all in one installation.

In order to help people with this task I have been working on a tool that is capable of installing openstack in a distributed environment using some of the most common configurations. Packstack can be used to transform Fedora 17/18, RHEL 6 or CentOS 6 servers into a functional Openstack Folsom deployment. The tool ssh’s onto each server and apply’s puppet manifests to set openstack up. Below I give a brief outline of how todo this on Fedora 17

I’ll be installing openstack on 2 servers
s1 : keystone, glance, nova controller, cinder, swift proxy
s2 : nova compute, swift storage

Continue reading “Introducing OpenStack Packstack”

Please follow and like us:

Listing openstack keystone credentials

cloud

I often find myself trying to figure out what role and tenants certain users have on a keystone server and this for me usually comes down to running combinations of
keystone user-list
keystone tenant-list
keystone user-role-list

As an alternative I’ve put together a small script that list the relationship between users/tenants and roles in a table format

Continue reading “Listing openstack keystone credentials”

Please follow and like us:

rackspace cloud files from the command line

cloud

In my last post I demonstrated how to use the openstack nova client to control rackspace servers from the command line.

It is also possible to control your rackspace cloud files using the openstack swift client, the first thing we need to do is install the package (again these examples are using fedora 17)

> yum install openstack-swift

Next we need to create the file ~/rackspacerc_cloudfiles, this file will be used to setup our environment anytime we want to use swift, it should look something like this

Continue reading “rackspace cloud files from the command line”

Please follow and like us:

rackspace cloud servers from the command line

cloud

With rackspaces providing its compute service based on OpenStack, its possible to control your servers using the openstack nova client and its fairly simple to do.

You start by installing the openstack-novaclient (these examples are done on fedora 17). For now python-setuptools is needed here as a dependency.

> sudo yum install python-setuptools python-novaclient

Create the file ~/rackspacerc, this file will be used to setup our environment anytime we want to use nova, it should look something like this

export OS_USERNAME=username
export OS_PASSWORD=passwd
export OS_AUTH_URL=https://identity.api.rackspacecloud.com/v2.0/
export OS_REGION_NAME=DFW
export OS_TENANT_NAME=1234567
export NOVA_SERVICE_NAME=cloudServersOpenStack

A word about some of these settings and where to get their values

Continue reading “rackspace cloud servers from the command line”

Please follow and like us: