## Task 1 : Creating OpenStack glance image and making sure its stored on Ceph RBDopenstack 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 RBDopenstack 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 fedora@<floating_ip_address>
## Task 3 : Creating OpenStack Cinder volume on Ceph RBDopenstack 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 fedora@<floating_ip_address>
fdisk -l
mkfs.ext4 /dev/vdb
mount /dev/vdb /mnt
df -h
## Task 4 : OpenStack Instance LIVE MIGRATION across hypervisorsnova 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 loaduptime
date
dd if=/dev/zero of=file1 bs=1M count=9000## From hypervisor initiate live migrationnova live-migration <instance_id> <new_hypervisor_name>
## Once migration completes, verify instance new locationnova 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.