Flex pod driven by Openstack

Preview:

DESCRIPTION

Presentation of Akos Kuczi, Openstack Hungarian user group, 2014 january

Citation preview

FlexPod driven by OpenStack

akos.kuczi@nextiraone.eu

What is FlexPod?

(blue)

What is FlexPod?

FlexPod

Be Flexible!Be Multitenant!Be high available!Use multi protocol!Use the force FlexPod!There is no spoon Flexpod!OpenStack is your best friend!

Upbringing FlexPod

The friendship

Yeah, OpenStack is my

best friend! BecauseI provide Cinder backend

services for NFS and iSCSI. FlexPod

NFS & iSCSI both 7mode and Cluster mode

How can I do that?

Direct and Managed cinder drivers in GrizlyUnified cinder driver in Havana

FlexPod

My drivers (C-mode Direct iSCSI)cinder.volume.drivers.netapp.common.NetAppDrivernetapp_storage_protocol=iscsinetapp_storage_family=ontap_cluster

My drivers (C-mode Direct iSCSI)

Cinder scheduler

NetApp SSC&

NetApp volume driver

FlexVol & LUN

Volume provisioning

Calling cinder volume create API

Cinder volume manager

My drivers (C-mode Direct iSCSI)

Nova Compute

1

Cinder Volume driver FlexVol & LUN

5

Attach volume (in build state)

Cinder API

2

Cinder volume manager

4

3

My drivers (C-mode Direct NFS)

Cinder scheduler

2

NetApp SSC&

NetApp volume driver

FlexVol & volume mount

Volume provisioning

Calling cinder volume create API

1

3

Cinder volume manager

6

Thin provisioned file

45

67

My drivers (C-mode Direct NFS)

Nova Compute

1

Cinder Volume driver NFS mount

Attach volume (in build state)

Cinder API

2

Cinder volume manager

4

35

The real life

The real life 1/9On NetApp VSM – Create Volumesvserver-iscsi::> vol create -volume cinder_nfs01 -aggregate aggr1_n1 -size 4G (volume create)[Job 68] Job succeeded: Successfulvserver-iscsi::> volume efficiency on -volume cinder_nfs01vserver-iscsi::> volume efficiency modify -volume cinder_nfs01 -compression truevserver-iscsi::> efficiency policy create -policy nfs_schedule -schedule daily -enabled true -comment "Daily schedule for NFS Cinder volumes"vserver-iscsi::> vol create -volume vs_iscsi_luns -aggregate aggr1_n1 -size 14G (volume create)[Job 69] Job succeeded: SuccessfulSwitch to OpenStack – Create Volume types & NFS volumeroot@un2:~# cinder type-create NFS_TYPE root@un2:~# cinder type-create iSCSI_TYPEroot@un2:~# cinder type-key NFS_TYPE set storage_protocol=nfsroot@un2:~# cinder type-key iSCSI_TYPE set storage_protocol=iSCSIroot@un2:~# cinder create --volume-type NFS_TYPE --display-name NFS_VOL01 1

The real life 2/9On OpenStack node– Create Volume types & NFS volume continue

The real life 3/9On OpenStack node – Check NFS mount on Cinder Vol. Node & File base Volume

root@un4:~# mount |grep -i nfs192.168.130.244:/jproot/cinder_nfs01 on /var/cinder/mnt/9ee86d8d8bea25386f3fb64bf071bcf7 type nfs (rw,addr=192.168.130.244) root@un4:~# ls -la /var/cinder/mnt/9ee86d8d8bea25386f3fb64bf071bcf7total 12drwxr-xr-x 2 root daemon 4096 Jan 29 11:16 .drwxr-xr-x 4 cinder cinder 4096 Jan 29 01:33 ..drwxrwxrwx 9 root root 4096 Jan 29 11:05 .snapshot-rw-rw-rw- 1 root root 1073741824 Jan 29 11:16 volume-94d1428f-427f-43e7-9101-0408e472c1a8

The real life 4/9 On OpenStack node – Create iSCSI VOL

The real life 5/9On NetApp VSM - Checking of new LUN

vserver-iscsi::> lun showVserver Path State Mapped Type Size--------- ------------------------------- ------- -------- -------- --------vserver-iscsi /vol/vs_iscsi_luns/volume-3db5339c-0116-4328-a2d2-dfb156f0c761 online unmapped linux 1GB

The real life 6/9 On NOVA compute node – Attach NFS volume

The real life 7/9On NOVA Compute node – Checking of attached vdisk backend

root@un2:/# virsh domblklist 2Target Source------------------------------------------------vda /var/lib/nova/instances/c5b51cf8-869d-4a60-a859-c429fd1aa64b/diskvdb /var/lib/nova/mnt/9ee86d8d8bea25386f3fb64bf071bcf7/volume-94d1428f-427f-43e7-9101-0408e472c1a8

The real life 8/9No iSCSI disk:

root@un2:~# lsscsi[1:0:0:0] cd/dvd QEMU QEMU DVD-ROM 1.5. /dev/sr0

On NOVA compute node – Attach iSCSI volume

Select volume to attach :

Attach volume:

The real life 9/9 New iSCSI disk:

root@un2:~# lsscsi[1:0:0:0] cd/dvd QEMU QEMU DVD-ROM 1.5. /dev/sr0[2:0:0:0] disk NETAPP LUN C-Mode 8200 /dev/sda

On NOVA compute node – Attach iSCSI volume

Attached volumes:

On NOVA Compute node – Checking of attached iSCSI backendroot@un2:~# virsh domblklist 2Target Source------------------------------------------------vda /var/lib/nova/instances/c5b51cf8-869d-4a60-a859-c429fd1aa64b/diskvdb /var/lib/nova/mnt/9ee86d8d8bea25386f3fb64bf071bcf7/volume-94d1428f-427f-43e7-9101-0408e472c1a8

vdc /dev/disk/by-path/ip-192.168.130.243:3260-iscsi-iqn.1992-08.com.netapp:sn.37846a355b6f11e3ad89123478563412:vs.3-lun-0

THA K YOU!

akos.kuczi@nextiraone.eu

Recommended