Karan Singh

Code Never Lies, Comments Sometime Do !!

Live Demo : OpenStack and Ceph

| Comments

openstack and ceph live demonstration

Hey Guys , with this blog post i would like to share live demonstration screen cast that i have prepared using my openstack and Ceph environment.

What’s expected from this Demo

  • Creating OpenStack glance image stored on Ceph RBD
  • Creating OpenStack instance with Ephermal disk on Ceph RBD ( storing instance on Ceph )
  • Creating OpenStack Cinder volume on Ceph RBD
    • Attaching this volume to OpenStack instance
    • Mounting this volume and generating some load
  • OpenStack Instance LIVE MIGRATION across hypervisors

Environment Details

  • OpenStack RDO ( Kilo Release )
    • 2 Nodes deployment
      • Node1 - Controller + Network + Compute
      • Node2 - Compute
  • Ceph ( Fujitsu Eternus CD10000 Ceph storage appliance )
    • Release : Firefly ( 0.80.7 )
    • 5 node cluster
      • Node 1 : Dedicated management node ( ceph admin node )
      • Node 2 , 3 , 4 : Ceph monitor + OSD nodes
      • Node 5 : Ceph OSD node
  • OpenStack Glance, Cinder & Nova are configured to use Ceph as a storage backend

Architecture

openstack and ceph live demonstration

Demo Time !!!

Commands used during demo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
## Task 1 : Creating OpenStack glance image and making sure its stored on Ceph RBD

openstack image list
glance image-create --name='Fedora-22' --is-public='true' --disk-format='raw' --container-format='bare' < Fedora-Cloud-Base-22-20150521.x86_64.raw
openstack image list
rbd ls -p glance --id glance

## Task 2 : Creating OpenStack instance with Ephermal disk on Ceph RBD

openstack network list
openstack image list
openstack flavor list
openstack keypair list
openstack server list
openstack server create --image <glance_image_id> --flavor 2 --key-name <keypair_name> --nic net-id=<network_id> <Instance_name>
nova floating-ip-pool-list
nova add-floating-ip <instance_id> <floating_ip_address>
nova list
ssh [email protected]<floating_ip_address>

## Task 3 : Creating OpenStack Cinder volume on Ceph RBD

openstack volume create --size 10 --description "volume description" --type "ceph_storage" <volume_name>
openstack volume list
rbd ls -p cinder --id cinder
nova volume-attach  <instance_id> <cinder_volume_id> auto
openstack volume list
ssh [email protected]<floating_ip_address>
fdisk -l
mkfs.ext4 /dev/vdb
mount /dev/vdb /mnt
df -h

## Task 4 : OpenStack Instance LIVE MIGRATION across hypervisors

nova list
nova hypervisor-servers <hypervisor_1_name>
nova hypervisor-servers <hypervisor_2_name>
virsh list
ssh node2 virsh list
tail -f /var/log/nova-compute.log

## On openstack instance generate load
uptime
date
dd if=/dev/zero of=file1 bs=1M count=9000

## From hypervisor initiate live migration

nova live-migration <instance_id> <new_hypervisor_name>

## Once migration completes, verify instance new location

nova list
nova hypervisor-servers <hypervisor_1_name>
nova hypervisor-servers <hypervisor_2_name>
virsh list
ssh node2 virsh list

Live migration support for OpenStack instances is one of the showstopper feature of Ceph. That’s why Ceph is the most popular storage backend for OpenStack.

Comments